rogene
10-15-2007, 12:33 AM
I am experiencing a runtime error with my Applet since updating to 0.3.0. The application version of the code runs fine. I get the same error regardless of whether I compile/package under linux or vista, and the exception is thrown in multiple browsers and Java's AppletViewer.
FWIW, I started this thread under 0.3.0 Release Announcements, and I am moving it here as it seems to be non-related to the JOGL dist issue.
Exception in thread "AWT-EventQueue-2" java.lang.ExceptionInInitializerError
at gov.nasa.worldwind.WorldWind.createConfi gurationComponent(Unknown Source)
at gov.nasa.worldwind.WorldWind.initialize( Unknown Source)
at gov.nasa.worldwind.WorldWind.<init>(Unkn own Source)
at gov.nasa.worldwind.WorldWind.<clinit>(Un known Source)
at gov.nasa.worldwind.awt.WorldWindowGLCanv as.<init>(Unknown Source)
at DemoApplet.init(DemoApplet.java:24)
at org.jdesktop.applet.util.JNLPAppletLaunc her.startSubApplet(JNLPAppletLauncher.ja va:1889)
at org.jdesktop.applet.util.JNLPAppletLaunc her.access$200(JNLPAppletLauncher.java:6 50)
at org.jdesktop.applet.util.JNLPAppletLaunc her$5.run(JNLPAppletLauncher.java:1261)
at java.awt.event.InvocationEvent.dispatch( InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQ ueue.java:597)
at java.awt.EventDispatchThread.pumpOneEven tForFilters(EventDispatchThread.java:273 )
at java.awt.EventDispatchThread.pumpEventsF orFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsF orHierarchy(EventDispatchThread.java:173 )
at java.awt.EventDispatchThread.pumpEvents( EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents( EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDi spatchThread.java:121)
Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission gov.nasa.worldwind.config.file read)
at java.security.AccessControlContext.check Permission(AccessControlContext.java:323 )
at java.security.AccessController.checkPerm ission(AccessController.java:546)
at java.lang.SecurityManager.checkPermissio n(SecurityManager.java:532)
at java.lang.SecurityManager.checkPropertyA ccess(SecurityManager.java:1285)
at java.lang.System.getProperty(System.java :688)
at gov.nasa.worldwind.Configuration.initial izeCustom(Unknown Source)
at gov.nasa.worldwind.Configuration.<init>( Unknown Source)
at gov.nasa.worldwind.Configuration.<clinit >(Unknown Source)
After commenting out all but the most basic function in my applet (to eliminate self-induced errors) without success, I tried running the WWJ Applet Demo and it is also throwing an error that appears to be related insofar as both are initialization errors.
Applet.init
subapplet.classname = applet.WWJApplet
subapplet.displayname = WWJ Applet
Applet.start
java.lang.NoClassDefFoundError: Could not initialize class gov.nasa.worldwind.WorldWind
at gov.nasa.worldwind.awt.WorldWindowGLCanv as.<init>(Unknown Source)
at applet.WWJApplet.init(Unknown Source)
at org.jdesktop.applet.util.JNLPAppletLaunc her.startSubApplet(JNLPAppletLauncher.ja va:1889)
at org.jdesktop.applet.util.JNLPAppletLaunc her.access$200(JNLPAppletLauncher.java:6 50)
at org.jdesktop.applet.util.JNLPAppletLaunc her$5.run(JNLPAppletLauncher.java:1261)
at java.awt.event.InvocationEvent.dispatch( InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQ ueue.java:597)
at java.awt.EventDispatchThread.pumpOneEven tForFilters(EventDispatchThread.java:273 )
at java.awt.EventDispatchThread.pumpEventsF orFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsF orHierarchy(EventDispatchThread.java:173 )
at java.awt.EventDispatchThread.pumpEvents( EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents( EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDi spatchThread.java:121)
Has anyone else tried running the 0.3.0 applet? It would be nice to confirm.
Is there anything different in how I should be installing this version that might account for the error? (e.g. do I need to configure my web server in a particular manner which the 0.2.0 version did not require?)
Thanks much!
FWIW, I started this thread under 0.3.0 Release Announcements, and I am moving it here as it seems to be non-related to the JOGL dist issue.
Exception in thread "AWT-EventQueue-2" java.lang.ExceptionInInitializerError
at gov.nasa.worldwind.WorldWind.createConfi gurationComponent(Unknown Source)
at gov.nasa.worldwind.WorldWind.initialize( Unknown Source)
at gov.nasa.worldwind.WorldWind.<init>(Unkn own Source)
at gov.nasa.worldwind.WorldWind.<clinit>(Un known Source)
at gov.nasa.worldwind.awt.WorldWindowGLCanv as.<init>(Unknown Source)
at DemoApplet.init(DemoApplet.java:24)
at org.jdesktop.applet.util.JNLPAppletLaunc her.startSubApplet(JNLPAppletLauncher.ja va:1889)
at org.jdesktop.applet.util.JNLPAppletLaunc her.access$200(JNLPAppletLauncher.java:6 50)
at org.jdesktop.applet.util.JNLPAppletLaunc her$5.run(JNLPAppletLauncher.java:1261)
at java.awt.event.InvocationEvent.dispatch( InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQ ueue.java:597)
at java.awt.EventDispatchThread.pumpOneEven tForFilters(EventDispatchThread.java:273 )
at java.awt.EventDispatchThread.pumpEventsF orFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsF orHierarchy(EventDispatchThread.java:173 )
at java.awt.EventDispatchThread.pumpEvents( EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents( EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDi spatchThread.java:121)
Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission gov.nasa.worldwind.config.file read)
at java.security.AccessControlContext.check Permission(AccessControlContext.java:323 )
at java.security.AccessController.checkPerm ission(AccessController.java:546)
at java.lang.SecurityManager.checkPermissio n(SecurityManager.java:532)
at java.lang.SecurityManager.checkPropertyA ccess(SecurityManager.java:1285)
at java.lang.System.getProperty(System.java :688)
at gov.nasa.worldwind.Configuration.initial izeCustom(Unknown Source)
at gov.nasa.worldwind.Configuration.<init>( Unknown Source)
at gov.nasa.worldwind.Configuration.<clinit >(Unknown Source)
After commenting out all but the most basic function in my applet (to eliminate self-induced errors) without success, I tried running the WWJ Applet Demo and it is also throwing an error that appears to be related insofar as both are initialization errors.
Applet.init
subapplet.classname = applet.WWJApplet
subapplet.displayname = WWJ Applet
Applet.start
java.lang.NoClassDefFoundError: Could not initialize class gov.nasa.worldwind.WorldWind
at gov.nasa.worldwind.awt.WorldWindowGLCanv as.<init>(Unknown Source)
at applet.WWJApplet.init(Unknown Source)
at org.jdesktop.applet.util.JNLPAppletLaunc her.startSubApplet(JNLPAppletLauncher.ja va:1889)
at org.jdesktop.applet.util.JNLPAppletLaunc her.access$200(JNLPAppletLauncher.java:6 50)
at org.jdesktop.applet.util.JNLPAppletLaunc her$5.run(JNLPAppletLauncher.java:1261)
at java.awt.event.InvocationEvent.dispatch( InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQ ueue.java:597)
at java.awt.EventDispatchThread.pumpOneEven tForFilters(EventDispatchThread.java:273 )
at java.awt.EventDispatchThread.pumpEventsF orFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsF orHierarchy(EventDispatchThread.java:173 )
at java.awt.EventDispatchThread.pumpEvents( EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents( EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDi spatchThread.java:121)
Has anyone else tried running the 0.3.0 applet? It would be nice to confirm.
Is there anything different in how I should be installing this version that might account for the error? (e.g. do I need to configure my web server in a particular manner which the 0.2.0 version did not require?)
Thanks much!