Java-Gaming.org Hi !
Featured games (81)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (576)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  ExceptionInInitializerError  (Read 2666 times)
0 Members and 1 Guest are viewing this topic.
Offline misterX

Junior Duke




java forever!


« Posted 2004-02-05 12:22:21 »

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!  Angry Cry

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?!?  Huh
Offline Herkules

Senior Duke




Friendly fire isn't friendly!


« Reply #1 - Posted 2004-02-05 13:56:43 »

works fine

HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
Offline misterX

Junior Duke




java forever!


« Reply #2 - Posted 2004-02-05 14:07:09 »

what?! really?! Shocked  Huh  Shocked

*bump*... why on earth doesn't it work here then?!  Lips Sealed
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Herkules

Senior Duke




Friendly fire isn't friendly!


« Reply #3 - Posted 2004-02-05 15:20:21 »

Just the app is launched 3 times.

Maybe it's because I have Java3D installed?

HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
Offline DrBizzar0

Junior Duke




Raj raj!


« Reply #4 - Posted 2004-02-05 17:22:54 »

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

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44  
45  
46  
47  
48  
49  
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 Tongue
Offline misterX

Junior Duke




java forever!


« Reply #5 - Posted 2004-02-06 09:28:57 »

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.
Offline Conzar

Junior Duke




There is nothing common about common sense


« Reply #6 - Posted 2008-02-01 05:27:00 »

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 ...
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
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

Ubuntu
Offline Conzar

Junior Duke




There is nothing common about common sense


« Reply #7 - Posted 2008-02-02 20:47:13 »

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.

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

Ubuntu
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Longarmx (37 views)
2014-10-17 03:59:02

Norakomi (28 views)
2014-10-16 15:22:06

Norakomi (24 views)
2014-10-16 15:20:20

lcass (27 views)
2014-10-15 16:18:58

TehJavaDev (52 views)
2014-10-14 00:39:48

TehJavaDev (54 views)
2014-10-14 00:35:47

TehJavaDev (42 views)
2014-10-14 00:32:37

BurntPizza (64 views)
2014-10-11 23:24:42

BurntPizza (36 views)
2014-10-11 23:10:45

BurntPizza (77 views)
2014-10-11 22:30:10
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!