[CLOSED] Applets using LWJGL through OpenJDK/IcedTea fail.

Started by bartwe, December 24, 2011, 00:06:24

Previous topic - Next topic

bartwe

I posted a bug against icedtea on this:

http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=842

the problem happens in LWJGLUtil.java on the line:
final String osName = getPrivilegedProperty("os.name");

The problem occurs using the ubuntu 11 install when browsing to http://lwjgl.org/applet/ and other lwjgl applets.

MatthiasM suggested patching to suppress the access denied in this case.

 private static String getPrivilegedProperty(final String property_name) {
       try {
           return AccessController.doPrivileged(new PrivilegedAction<String>() {
               public String run() {
                   return System.getProperty(property_name);
               }
           });
       } catch (Exception e) {
           e.printStackTrace();
           return System.getProperty(property_name);
       }
   }


A quick google shows lots of jnlp + icedtea + lwjgl issues.

Matzon


bartwe

No i'm affraid i'm failing in building my own jars using ant.

This was merely a suggestion based upon the observation that gettin "os.name" without an attempt at elevated rights should complete without trouble.

I doubt the reason the http://lwjgl.org/applet/ fails has anything to do with lwjgl btw.

kappa

This is related to a problem with how the security manager works on the IcedTea Web Plugin, so yeh nothing to do with LWJGL code. There is another bug report here which highlights the issue in more detail. The IcedTea maintainers already have a fix for the LWJGL issue however they have not been applied it yet because they are waiting for some more security related architecture changes to go in before applying it.

Currently its aimed to be included in the IcedTea-Web 2.0 release, as shown by the RoadMap here.