jPCT - a 3d engine for Java > Bugs

Java 7u45 + LWJGL Applet = Access denied org.lwjgl.util.Debug

(1/2) > >>

atreyu64:
Hi,

After updating java to 7u45, I cannot launch my Applet anymore.
It seems to come from a jar signature problem, as discussed in the LWJGL forum : http://lwjgl.org/forum/index.php/topic,5206.0.html
The solution suggested by Pignic sounds a little bit tricky, does anyone have another idea ?

Here is what I get when I launch my applet using java 7u45 :


--- Code: ---Loading Texture...from InputStream
Software renderer disposed
Using LWJGL's AWTGLCanvas
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)
at org.lwjgl.util.applet.AppletLoader$4.getPermissions(AppletLoader.java:1206)
at java.security.SecureClassLoader.getProtectionDomain(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.threed.jpct.GLHelper.findMode(GLHelper.java:67)
at com.threed.jpct.AWTGLRenderer.init(AWTGLRenderer.java:59)
at com.threed.jpct.FrameBuffer.enableRenderer(FrameBuffer.java:1134)
at com.threed.jpct.FrameBuffer.enableGLCanvasRenderer(FrameBuffer.java:723)
at com.faceausud.tm3d.TopoMapApplet.init(TopoMapApplet.java:53)
at com.faceausud.neouvielle.NeouvielleApplet.access$0(NeouvielleApplet.java:1)
at com.faceausud.neouvielle.NeouvielleApplet$MainPanel$1$1.run(NeouvielleApplet.java:74)
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)
... 22 more
Exception in thread "Thread-18" java.lang.ExceptionInInitializerError
at org.lwjgl.Sys.createImplementation(Sys.java:124)
at org.lwjgl.Sys.<clinit>(Sys.java:111)
at org.lwjgl.opengl.Display.<clinit>(Display.java:135)
at com.threed.jpct.GLHelper.findMode(GLHelper.java:67)
at com.threed.jpct.AWTGLRenderer.init(AWTGLRenderer.java:59)
at com.threed.jpct.FrameBuffer.enableRenderer(FrameBuffer.java:1134)
at com.threed.jpct.FrameBuffer.enableGLCanvasRenderer(FrameBuffer.java:723)
at com.faceausud.tm3d.TopoMapApplet.init(TopoMapApplet.java:53)
at com.faceausud.neouvielle.NeouvielleApplet.access$0(NeouvielleApplet.java:1)
at com.faceausud.neouvielle.NeouvielleApplet$MainPanel$1$1.run(NeouvielleApplet.java:74)
Caused by: java.security.AccessControlException: access denied ("java.util.PropertyPermission" "org.lwjgl.util.Debug" "read")
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at sun.plugin2.applet.AWTAppletSecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
at java.lang.System.getProperty(Unknown Source)
at java.lang.Boolean.getBoolean(Unknown Source)
at org.lwjgl.LWJGLUtil$4.run(LWJGLUtil.java:454)
at org.lwjgl.LWJGLUtil$4.run(LWJGLUtil.java:452)
at java.security.AccessController.doPrivileged(Native Method)
at org.lwjgl.LWJGLUtil.getPrivilegedBoolean(LWJGLUtil.java:452)
at org.lwjgl.LWJGLUtil.<clinit>(LWJGLUtil.java:265)
... 10 more

--- End code ---


I agree this is more a LWJGL issue than a JPCT bug, but my LWJGL forum account is still awaiting admin approval...

Thanks in advance guys !

EgonOlsen:
I really don't know. This should be solved by the LJWGL guys. Personally, i consider applets as dead as webstart (because it doesn't work in Chrome), so my last attempts are ages ago.

atreyu64:
Applets do work in Chrome, as well as java webstart.

EgonOlsen:
Webstart doesn't work in Chrome by default like it does in any other browser. You have to download a jnlp at least once and assign javaws as program to open it with. You don't have to do that any others browser, where it just works. But that's actually not the problem...webstart was great when it came out, i really liked it. But it never took off, Sun released some versions of Java with really broken webstart implementations ...and it's just dead now.

atreyu64:
Well, for now LWJGL works fine with jnlp but doesn't with applets. I hope this will be fixed by LWJGL team, I still have no access to their forum.  :-\

Navigation

[0] Message Index

[#] Next page

Go to full version