Skip to main content

Java Web start problem

Please note these forums are being decommissioned and use the new and improved forums at
1 reply [Last post]
Joined: 2013-03-27

I am developping a program which builds scenegraphs. You can find it here :
Deployment is from Java Web Start.
Scenes saving/reading is made with SceneGraphFileReader/Writer. And all this works fine when running from the IDE (Netbeans) but from JWStart I can't open a saved scene and get error message : Error Loading State Class pointer...
line 1505 where error occurs contains :
BranchGroup decorBg = reader.readBranchGraph(0)[0];
Any idea?
Thank you for help
jf Pauly

bug.txt9.69 KB

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2013-03-27

I could fix the problem looking a comment in file :
package; file : class Controller
Here is part of code :
* When running the application within webstart this may not be the
* correct ClassLoader. If Java 3D is not installed in the local vm and
* is instead installed by webstart then this definitely is NOT the correct
* classloader, in this case Thread.getCurrent().getClass().getClassLoader()
* would probably be a good default. The user can also set their preferred
* classloader by calling setClassLoader in SceneGraph[Stream|File]Reader.
protected ClassLoader classLoader = ClassLoader.getSystemClassLoader();
Finally it works with one line inserted after SceneGraphFileReader definition :