Re: Jogl in a webstart application
Posted by Andreas on Jul 22, 2013; 3:10pm
URL: https://forum.jogamp.org/Jogl-in-a-webstart-application-tp4029613p4029648.html
I tried the hole day to get it work. I found the reason why it worked on windows. I forgot to update to Oracle Java 1.7 Update 25. Now it is not working on windows and linux ;-)
I changed the manifest of all jar file (my application, java3d, jogl, gluegen). So there is everywhere a:
Codebase: *
Permissions: all-permission
All jars are in one jnlp file and all Warnings (Codebase, Permissions) are gone.
It is working locally but not from the server.
I'm getting the following from Linux:
Log started: Mo, 22 Jul 2013 17:00:09 +0200
Java Web Start 10.25.2.15
JRE-Version verwenden
1.7.0_25-b15 Java HotSpot(TM) 64-Bit Server VM
No user *.properties file found.
3D [dev] 1.6.0-pre7-daily-experimental daily
JNLPClassLoader: Finding library libjawt.so
JNLPClassLoader: Finding library libjawt.so
JNLPClassLoader: Finding library liblibGL.so.1.so
JNLPClassLoader: Finding library liblibGLESv1_CM.so.2.so
JNLPClassLoader: Finding library liblibGLESv1_CM.so.so
JNLPClassLoader: Finding library libGLESv1_CM.so
JNLPClassLoader: Finding library libGLES_CM.so
JNLPClassLoader: Finding library libGLES_CL.so
JNLPClassLoader: Finding library liblibGLESv1_CM.so
JNLPClassLoader: Finding library liblibGLES_CM.so
JNLPClassLoader: Finding library liblibGLES_CL.so
JNLPClassLoader: Finding library liblibEGL.so.1.so
JNLPClassLoader: Finding library liblibGLESv2.so.2.so
JNLPClassLoader: Finding library liblibEGL.so.1.so
java.lang.IllegalArgumentException: java.lang.NullPointerException
at jogamp.nativewindow.NativeWindowFactoryImpl.getAWTNativeWindow(NativeWindowFactoryImpl.java:99)
And this error log from Windows:
Log started: Mo, 22 Jul 2013 17:03:38 +0200
Java Web Start 10.25.2.17
JRE-Version verwenden
1.7.0_25-b17 Java HotSpot(TM) Client VM
No user *.properties file found.
3D [dev] 1.6.0-pre7-daily-experimental daily
JNLPClassLoader: Finding library jawt.dll
JNLPClassLoader: Finding library jawt.dll
JNLPClassLoader: Finding library OpenGL32.dll
JNLPClassLoader: Finding library libGLESv1_CM.so.2.dll
JNLPClassLoader: Finding library libGLESv1_CM.so.dll
JNLPClassLoader: Finding library GLESv1_CM.dll
JNLPClassLoader: Finding library GLES_CM.dll
JNLPClassLoader: Finding library GLES_CL.dll
JNLPClassLoader: Finding library libGLESv1_CM.dll
JNLPClassLoader: Finding library libGLES_CM.dll
JNLPClassLoader: Finding library libGLES_CL.dll
JNLPClassLoader: Finding library libEGL.so.1.dll
JNLPClassLoader: Finding library libEGL.so.dll
JNLPClassLoader: Finding library EGL.dll
JNLPClassLoader: Finding library libEGL.dll
JNLPClassLoader: Finding library libGLESv2.so.2.dll
JNLPClassLoader: Finding library libGLESv2.so.dll
JNLPClassLoader: Finding library GLESv2.dll
JNLPClassLoader: Finding library GLES20.dll
JNLPClassLoader: Finding library GLESv2_CM.dll
JNLPClassLoader: Finding library libGLESv2.dll
JNLPClassLoader: Finding library libGLESv2_CM.dll
JNLPClassLoader: Finding library libGLES20.dll
JNLPClassLoader: Finding library libEGL.so.1.dll
JNLPClassLoader: Finding library libEGL.so.dll
JNLPClassLoader: Finding library EGL.dll
JNLPClassLoader: Finding library libEGL.dll
java.lang.IllegalArgumentException: java.lang.NullPointerException
at jogamp.nativewindow.NativeWindowFactoryImpl.getAWTNativeWindow(NativeWindowFactoryImpl.java:99)
at jogamp.nativewindow.NativeWindowFactoryImpl.getNativeWindowImpl(NativeWindowFactoryImpl.java:65)
at javax.media.nativewindow.NativeWindowFactory.getNativeWindow(NativeWindowFactory.java:566)
at javax.media.j3d.JoglPipeline.createNewContext(JoglPipeline.java:6279)
at javax.media.j3d.Canvas3D.createNewContext(Canvas3D.java:4608)
at javax.media.j3d.Canvas3D.createNewContext(Canvas3D.java:2379)
at javax.media.j3d.Renderer.doWork(Renderer.java:879)
at javax.media.j3d.J3dThread.run(J3dThread.java:270)
Caused by: java.lang.NullPointerException
at com.sun.deploy.cache.DeployCacheHandler.get(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at sun.net.www.protocol.jar.URLJarFile.retrieve(Unknown Source)
at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source)
at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)
at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)
at com.sun.jnlp.JNLPCachedJarURLConnection.connect(Unknown Source)
at com.sun.jnlp.JNLPCachedJarURLConnection.getJarFile(Unknown Source)
at com.sun.deploy.security.DeployURLClassPath$JarLoader.getJarFile(Unknown Source)
at com.sun.deploy.security.DeployURLClassPath$JarLoader.access$1000(Unknown Source)
at com.sun.deploy.security.DeployURLClassPath$JarLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.deploy.security.DeployURLClassPath$JarLoader.ensureOpen(Unknown Source)
at com.sun.deploy.security.DeployURLClassPath$JarLoader.<init>(Unknown Source)
at com.sun.deploy.security.DeployURLClassPath$JarLoader$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.deploy.security.DeployURLClassPath$JarLoader.getResource(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.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(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.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(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.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.jogamp.common.util.ReflectionUtil.getClassImpl(ReflectionUtil.java:81)
at com.jogamp.common.util.ReflectionUtil.getConstructor(ReflectionUtil.java:90)
at jogamp.nativewindow.NativeWindowFactoryImpl.getAWTNativeWindow(NativeWindowFactoryImpl.java:95)
... 7 more
DefaultRenderingErrorListener.errorOccurred:
CONTEXT_CREATION_ERROR: Renderer: Error creating Canvas3D graphics context
graphicsDevice = D3DGraphicsDevice[screen=0]
canvas = javax.media.j3d.Canvas3D[canvas0,0,0,900x400]
GLDrawableFactory.shutdownImpl: Catched java.lang.IllegalStateException during factory shutdown #2/2 jogamp.opengl.egl.EGLDrawableFactory
Now it opens the 3DView very short and then closes the application.