Posted by
runiter on
Feb 20, 2014; 2:20am
URL: https://forum.jogamp.org/Canvas3D-resize-problem-tp4031602p4031662.html
Ok, you asked for a test case, here is a test case. It's basically the HelloWorld of Java3D which doesn't work anymore. Note that I also no longer rename the packages but that didn't solve the problem either.
The test case is:
final SimpleUniverse universe = new SimpleUniverse();
final BranchGroup group = new BranchGroup();
group.addChild(new ColorCube(0.3));
universe.getViewingPlatform().setNominalViewingTransform();
universe.addBranchGraph(group);
You can try it here:
http://www.runiter.com/webstart/test_gc3/grapher.jnlpThe Jogl (which includes that file that causes Zip error) in above example is set to point to this extension:
http://jogamp.org/deployment/archive/rc/v2.1.4/jogl-all-awt.jnlpThe exception is this:
java.lang.IllegalArgumentException: java.lang.reflect.InvocationTargetException
at jogamp.nativewindow.NativeWindowFactoryImpl.getAWTNativeWindow(NativeWindowFactoryImpl.java:107)
at jogamp.nativewindow.NativeWindowFactoryImpl.getNativeWindowImpl(NativeWindowFactoryImpl.java:66)
at javax.media.nativewindow.NativeWindowFactory.getNativeWindow(NativeWindowFactory.java:583)
at javax.media.j3d.JoglPipeline.createNewContext(JoglPipeline.java:6374)
at javax.media.j3d.Canvas3D.createNewContext(Canvas3D.java:4611)
at javax.media.j3d.Canvas3D.createNewContext(Canvas3D.java:2381)
at javax.media.j3d.Renderer.doWork(Renderer.java:881)
at javax.media.j3d.J3dThread.run(J3dThread.java:271)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at jogamp.nativewindow.NativeWindowFactoryImpl.getAWTNativeWindow(NativeWindowFactoryImpl.java:105)
... 7 more
Caused by: java.lang.NullPointerException
at sun.awt.SunToolkit.getSystemEventQueueImplPP(Unknown Source)
at sun.awt.SunToolkit.getSystemEventQueueImplPP(Unknown Source)
at sun.awt.SunToolkit.getSystemEventQueueImpl(Unknown Source)
at java.awt.Toolkit.getEventQueue(Unknown Source)
at java.awt.EventQueue.isDispatchThread(Unknown Source)
at com.jogamp.common.util.awt.AWTEDTExecutor.invoke(AWTEDTExecutor.java:48)
at com.jogamp.nativewindow.awt.JAWTWindow$JAWTComponentListener.<init>(JAWTWindow.java:166)
at com.jogamp.nativewindow.awt.JAWTWindow$JAWTComponentListener.<init>(JAWTWindow.java:127)
at com.jogamp.nativewindow.awt.JAWTWindow.<init>(JAWTWindow.java:119)
at jogamp.nativewindow.jawt.windows.WindowsJAWTWindow.<init>(WindowsJAWTWindow.java:60)
... 12 more
DefaultRenderingErrorListener.errorOccurred:
CONTEXT_CREATION_ERROR: Renderer: Error creating Canvas3D graphics context
graphicsDevice = Win32GraphicsDevice[screen=0]
canvas = javax.media.j3d.Canvas3D[canvas0,0,0,240x217]
java.lang.IllegalStateException: zip file closed
at java.util.zip.ZipFile.ensureOpen(Unknown Source)
at java.util.zip.ZipFile.getEntry(Unknown Source)
at java.util.jar.JarFile.getEntry(Unknown Source)
at com.sun.deploy.cache.CachedJarFile.getEntry(Unknown Source)
at java.util.jar.JarFile.getJarEntry(Unknown Source)
at com.sun.deploy.security.DeployURLClassPath$JarLoader.getResource(Unknown Source)
at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at javax.media.j3d.GeometryRetained.<init>(GeometryRetained.java:80)
at javax.media.j3d.GeometryArrayRetained.<init>(GeometryArrayRetained.java:363)
at javax.media.j3d.QuadArrayRetained.<init>(QuadArrayRetained.java:40)
at javax.media.j3d.QuadArray.createRetained(QuadArray.java:159)
at javax.media.j3d.SceneGraphObject.<init>(SceneGraphObject.java:114)
at javax.media.j3d.NodeComponent.<init>(NodeComponent.java:49)
at javax.media.j3d.Geometry.<init>(Geometry.java:63)
at javax.media.j3d.GeometryArray.<init>(GeometryArray.java:787)
at javax.media.j3d.GeometryArray.<init>(GeometryArray.java:617)
at javax.media.j3d.GeometryArray.<init>(GeometryArray.java:472)
at javax.media.j3d.QuadArray.<init>(QuadArray.java:60)
at com.sun.j3d.utils.geometry.ColorCube.<init>(ColorCube.java:140)
at runiter.grapher.MainApplication.main(MainApplication.java:116)
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.doLaunchApp(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
#### Java Web Start Error:
#### Shutdown in progress