Author Topic: Java 7u45 + LWJGL Applet = Access denied org.lwjgl.util.Debug  (Read 3269 times)

Offline atreyu64

  • byte
  • *
  • Posts: 44
    • View Profile
Java 7u45 + LWJGL Applet = Access denied org.lwjgl.util.Debug
« on: October 20, 2013, 10:22:36 pm »
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: [Select]
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


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 !

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11769
    • View Profile
    • http://www.jpct.net
Re: Java 7u45 + LWJGL Applet = Access denied org.lwjgl.util.Debug
« Reply #1 on: October 21, 2013, 08:29:32 pm »
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.

Offline atreyu64

  • byte
  • *
  • Posts: 44
    • View Profile
Re: Java 7u45 + LWJGL Applet = Access denied org.lwjgl.util.Debug
« Reply #2 on: November 01, 2013, 08:47:58 pm »
Applets do work in Chrome, as well as java webstart.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11769
    • View Profile
    • http://www.jpct.net
Re: Java 7u45 + LWJGL Applet = Access denied org.lwjgl.util.Debug
« Reply #3 on: November 01, 2013, 11:44:23 pm »
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.

Offline atreyu64

  • byte
  • *
  • Posts: 44
    • View Profile
Re: Java 7u45 + LWJGL Applet = Access denied org.lwjgl.util.Debug
« Reply #4 on: November 01, 2013, 11:51:00 pm »
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.  :-\

Offline atreyu64

  • byte
  • *
  • Posts: 44
    • View Profile
Re: Java 7u45 + LWJGL Applet = Access denied org.lwjgl.util.Debug
« Reply #5 on: November 19, 2013, 11:03:07 am »
For those who are interested, LWJGL has fixed the problem. Now I use JPCT + LWJGL 2.9.1 (nightly build of november 16) and my applet works fine again.