ExceptionInInitializerError

that’s what i get when launching my app via java web start, the line causing the error is:
SimpleUniverse u = new SimpleUniverse();
and this is not simplified!!!
it’s the second line in my main method!!! the first just prints “starting…” and works.
I’m driving crazy! >:( :’(

If you’ve a bit courage, you can web start it (6mb).
(Does it work on your machine? Do you have the same error?)

And who has an idea why this happen?!? ???

works fine

what?! really?! :o ??? :o

bump… why on earth doesn’t it work here then?! :-X

Just the app is launched 3 times.

Maybe it’s because I have Java3D installed?

The webpage tells me to download java webstart when running mozilla 1.6, eventhough I have it installed :).
It starts on IE though and there I get this (I don’t hava Java Java3D installed if that was required).


java.lang.ExceptionInInitializerError

      at javax.media.j3d.VirtualUniverse.<clinit>(VirtualUniverse.java:229)

      at jocus.pong.Pong.main(Pong.java:436)

      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 com.sun.javaws.Launcher.executeApplication(Unknown Source)

      at com.sun.javaws.Launcher.executeMainClass(Unknown Source)

      at com.sun.javaws.Launcher.continueLaunch(Unknown Source)

      at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)

      at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)

      at com.sun.javaws.Launcher.run(Unknown Source)

      at java.lang.Thread.run(Unknown Source)

Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup)

      at java.security.AccessControlContext.checkPermission(Unknown Source)

      at java.security.AccessController.checkPermission(Unknown Source)

      at java.lang.SecurityManager.checkPermission(Unknown Source)

      at java.lang.SecurityManager.checkAccess(Unknown Source)

      at java.lang.ThreadGroup.checkAccess(Unknown Source)

      at java.lang.ThreadGroup.getParent(Unknown Source)

      at javax.media.j3d.MasterControl$34.run(MasterControl.java:3522)

      at java.security.AccessController.doPrivileged(Native Method)

      at javax.media.j3d.MasterControl.<clinit>(MasterControl.java:3515)

      ... 13 more

doh! didn’t notice I was in the java3d forum. Hope it might be of some help anyway :stuck_out_tongue:

I found where it went wrong (but not why). It seems either java3d doesn’t like to be loaded in a sub jnlp file, or this sub jnlp file was wrong. I don’t know.
Anyway, it seems to work when everything is put in one jnlp file.

I am having this same exact problem. I have the java3d jars in a seperate jnlp file (this file contains all the jars that are not signed like jinput for instance). Does the j3d jars need to be signed and have all-permissions set? If so, why?

Thanks

Here is my error …


ion in thread "Thread-22" java.lang.ExceptionInInitializerError
        at javax.media.j3d.VirtualUniverse.<clinit>(VirtualUniverse.java:259)
        at javax.media.j3d.GraphicsConfigTemplate3D.getBestConfiguration(GraphicsConfigTemplate3D.java:302)
        at java.awt.GraphicsDevice.getBestConfiguration(GraphicsDevice.java:146)
....
Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup)
        at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
        at java.security.AccessController.checkPermission(AccessController.java:427)
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
        at java.lang.SecurityManager.checkAccess(SecurityManager.java:712)
        at java.lang.ThreadGroup.checkAccess(ThreadGroup.java:288)
        at java.lang.ThreadGroup.getParent(ThreadGroup.java:138)
        at javax.media.j3d.MasterControl$15.run(MasterControl.java:3462)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.media.j3d.MasterControl.<clinit>(MasterControl.java:3455)
        ... 9 more

I still wasn’t ever able to figure out what was going on; however, the nice folks at sun seem to have a jnlp and bandwidth for downloading it.
So instead of deploying your own J3D, just use the following in your jnlp file.


<extension href="http://download.java.net/media/java3d/webstart/release/java3d-latest.jnlp"/>