InvocationTargetException when running applet locally
Mickey Segal
java3 at segal.org
Fri Oct 18 20:44:24 UTC 2013
Thanks. I didn't know that some Exceptions were not visible until the trace level was set higher.
There is nothing here that jumps out to me as something that I can fix, so I will go ahead and file the bug report. I'll probably wait a day in case anyone else has something important to add.
Workarounds are welcome at any time, though.
It would be nice to have the ability to add comments to a bug report as we did in the Sun era, since then one could add useful information later. But at least I can post updates to my version at http://www.segal.org/java/SignedAppletTest/ and reference that in the bug report, allowing both the Oracle people and those doing Web searches to find the problem.
-----Original Message-----
From: Bernd Eckenfels [mailto:bernd-2013 at eckenfels.net]
Sent: Friday, October 18, 2013 4:11 PM
I get this in the detail view:
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at sun.plugin2.applet.Plugin2ClassLoader.defineClassHelper(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.access$100(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.initAppletAdapter(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown
Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
... 14 more
Caused by: java.lang.NullPointerException
at sun.plugin2.applet.Plugin2ClassLoader.loadAllowedCodebases(Unknown
Source)
at sun.plugin2.applet.Plugin2ClassLoader.getPermissions(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.getPermissions(Unknown Source)
at java.security.SecureClassLoader.getProtectionDomain(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
... 18 more
I got a warning (before the crash) that the permissions settings is
missing and this might not work in future versions. But it is in the JAR
(and I added to the applet tag) and it did not help. This version is
really bad :-/
More information about the security-dev
mailing list