jQuery in Action, 2nd edition*
The moose likes Applets and the fly likes Applet crashes even before loading ... basic: exception: null. ->sun.plugin2.applet.Plugin2ClassLoad Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Applet crashes even before loading ... basic: exception: null. ->sun.plugin2.applet.Plugin2ClassLoad" Watch "Applet crashes even before loading ... basic: exception: null. ->sun.plugin2.applet.Plugin2ClassLoad" New topic
Author

Applet crashes even before loading ... basic: exception: null. ->sun.plugin2.applet.Plugin2ClassLoad

cy tg
Greenhorn

Joined: Jan 09, 2014
Posts: 1
Applet does not work anymore

I've had this applet working just fine before, albeit some time ago .. Now when I want to load it on my page i get


basic: Plugin2ClassLoader.addURL parent called for http://localhost:8080/about-1.0/SunScreben2.jar
basic: exception: null.
java.lang.NullPointerException
at sun.plugin2.applet.Plugin2ClassLoader.getTrustedCodeSources(Unknown Source)
at com.sun.deploy.security.CPCallbackHandler$ParentCallback.strategy(Unknown Source)
at com.sun.deploy.security.CPCallbackHandler$ParentCallback.openClassPathElement(Unknown Source)
at com.sun.deploy.security.DeployURLClassPath$JarLoader.getJarFile(Unknown Source)
at com.sun.deploy.security.DeployURLClassPath$JarLoader.access$1000(Unknown Source)
at com.sun.deploy.security.DeployURLClassPath$JarLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)


in the console.
I've tried different things, deployJava.js the good old <applet> tag and no matter what, it gives me the same thing.
To debug it i've tried giving in bogus class name, bogus archive, and it gives the same error. Example

<applet width=100 height=150 MAYSCRIPT
code="hojinc.applet.TestApplet.class"
archive="TestApplet.jar"
codebase="http://127.0.0.1:8080/about-1.0/">
</applet>

Same error all browsers, the code is correct and the jar is downloadable if you address it directly.
Now i am on Java7u45 ... has something broken between then and now or am I doing something horrible wrong.. (this code USED to work with wicket.)

I am signing the jar with my own testcert but even so I can see the browser contacting verisign(sysinternals)! (whats up with that? I didnt ask for that ?)..

Thanks ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Applet crashes even before loading ... basic: exception: null. ->sun.plugin2.applet.Plugin2ClassLoad
 
Similar Threads
Help launching an applet created in Netbeans environment
Cannot load applet
Applet jar will not load. Peculiar.
Applet Sign Problem
java.io.IOException: open HTTP connection failed: