Win 7 - 1.7.0_07-b11 - InvalidKeyException - Wrong Key Usage on all applets

classic Classic list List threaded Threaded
30 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Re: Win 7 - 1.7.0_07-b11 - InvalidKeyException - Wrong Key Usage on all applets

runiter
so none of the jars that JOGL 2 jnlp points to are signed with a real certificate?
okay, then I guess I will download and sign them and host a copy in our own website.
Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D
Reply | Threaded
Open this post in threaded view
|

Re: Win 7 - 1.7.0_07-b11 - InvalidKeyException - Wrong Key Usage on all applets

runiter
This file seem to be corrupted. WinRar give error when trying to open it:

http://jogamp.org/deployment/archive/rc/v2.0-rc11/jar/jogl-all.jar

Can you verify that please?
Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D
Reply | Threaded
Open this post in threaded view
|

Re: Win 7 - 1.7.0_07-b11 - InvalidKeyException - Wrong Key Usage on all applets

runiter
So I downloaded and signed all the files but I get the following error when running my application:

java.lang.UnsatisfiedLinkError: jogamp.opengl.windows.wgl.WGL.dispatch_wglGetProcAddress1(Ljava/lang/String;J)J
        at jogamp.opengl.windows.wgl.WGL.dispatch_wglGetProcAddress1(Native Method)
        at jogamp.opengl.windows.wgl.WGL.wglGetProcAddress(WGL.java:276)
        at jogamp.opengl.windows.wgl.WindowsWGLDynamicLibraryBundleInfo.toolGetProcAddress(WindowsWGLDynamicLibraryBundleInfo.java:57)
        at com.jogamp.common.os.DynamicLibraryBundle.toolDynamicLookupFunction(DynamicLibraryBundle.java:349)
        at com.jogamp.common.os.DynamicLibraryBundle.dynamicLookupFunction(DynamicLibraryBundle.java:376)
        at com.jogamp.gluegen.runtime.opengl.GLProcAddressResolver.resolve(GLProcAddressResolver.java:53)
        at com.jogamp.gluegen.runtime.ProcAddressTable.setEntry(ProcAddressTable.java:151)
        at com.jogamp.gluegen.runtime.ProcAddressTable.reset(ProcAddressTable.java:127)
        at jogamp.opengl.windows.wgl.WindowsWGLDrawableFactory.<init>(WindowsWGLDrawableFactory.java:104)
        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 com.jogamp.common.util.ReflectionUtil.createInstance(ReflectionUtil.java:171)
        at com.jogamp.common.util.ReflectionUtil.createInstance(ReflectionUtil.java:193)
        at com.jogamp.common.util.ReflectionUtil.createInstance(ReflectionUtil.java:213)
        at com.jogamp.common.util.ReflectionUtil.createInstance(ReflectionUtil.java:235)
        at javax.media.opengl.GLDrawableFactory.initSingletonImpl(GLDrawableFactory.java:157)
        at javax.media.opengl.GLDrawableFactory.initSingleton(GLDrawableFactory.java:122)
        at javax.media.opengl.GLProfile.initProfilesForDefaultDevices(GLProfile.java:1413)
        at javax.media.opengl.GLProfile.access$100(GLProfile.java:76)
        at javax.media.opengl.GLProfile$1.run(GLProfile.java:174)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.media.opengl.GLProfile.initSingleton(GLProfile.java:140)
        at javax.media.opengl.GLProfile.getProfileMap(GLProfile.java:1887)
        at javax.media.opengl.GLProfile.get(GLProfile.java:818)
        at javax.media.opengl.GLProfile.get(GLProfile.java:847)
        at javax.media.opengl.GLProfile.getMaxFixedFunc(GLProfile.java:653)
        at com.ardor3d.framework.jogl.CapsUtil.getCapsForSettings(CapsUtil.java:34)
        at com.ardor3d.framework.jogl.JoglAwtCanvas.<init>(JoglAwtCanvas.java:38)
        at org.concord.energy3d.scene.SceneManager.<init>(SceneManager.java:210)
        at org.concord.energy3d.scene.SceneManager.<clinit>(SceneManager.java:152)
        at org.concord.energy3d.MainApplication.main(MainApplication.java:27)
        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)


The above seem to happen after loading OpenGL32.dll:

JNLPClassLoader: Finding library jawt.dll
JNLPClassLoader: Finding library jawt.dll
JNLPClassLoader: Finding library OpenGL32.dll
#### Java Web Start Error:
#### java.lang.UnsatisfiedLinkError: jogamp.opengl.windows.wgl.WGL.dispatch_wglGetProcAddress1(Ljava/lang/String;J)J

Any ideas what may be causing it?
Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D
Reply | Threaded
Open this post in threaded view
|

Re: Win 7 - 1.7.0_07-b11 - InvalidKeyException - Wrong Key Usage on all applets

gouessej
Administrator
I use the unsigned JARs and I sign them myself with a self made certificate.

I don't reproduce your problem but I'm under GNU Linux.

Edit.: I can update my game tomorrow so that it uses the RC11 too. If it works, you will just have to compare my script with yours to understand what is wrong in your deployment.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Win 7 - 1.7.0_07-b11 - InvalidKeyException - Wrong Key Usage on all applets

Sven Gothel
Administrator
In reply to this post by runiter
On 11/02/2012 08:11 PM, runiter [via jogamp] wrote:
> so none of the jars that JOGL 2 jnlp points to are signed with a real
> certificate?

The JARs (but demos, tests) of jogamp.org are signed w/ a valid certificate.

~Sven


signature.asc (907 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Win 7 - 1.7.0_07-b11 - InvalidKeyException - Wrong Key Usage on all applets

runiter
So looks like there is no problem with the signature in my project now. There is another problem but I will start a new forum question for that since it's unrelated to signature.
Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D
Reply | Threaded
Open this post in threaded view
|

Re: Win 7 - 1.7.0_07-b11 - InvalidKeyException - Wrong Key Usage on all applets

Xerxes Rånby
This issue is now fixed by installing the latest java update.

Java(TM) Platform SE 7 U17
    Fil: npjp2.dll
    Version: 10.17.2.2
    Next Generation Java Plug-in 10.17.2 for Mozilla browsers

Java 7u17 for Windows distributed from www.java.com are now able to load the JogAmp applets and JNLP web-start applications and pass the certificate check without any tweaks of the default install.
Reply | Threaded
Open this post in threaded view
|

Re: Win 7 - 1.7.0_07-b11 - InvalidKeyException - Wrong Key Usage on all applets

gouessej
Administrator
It's a very good piece of news and I hope it works with OpenJDK for Windows too even though only a few people use it.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Win 7 - 1.7.0_07-b11 - InvalidKeyException - Wrong Key Usage on all applets

runiter
I just checked and it's not completely fixed yet :( For my webstart application it still doesn't work if "Enable online certification verification" is selected. Luckily this option is off by default.

In case anyone likes to test this, here is my webtart url:

http://www.runiter.com/webstart/gc3/grapher.jnlp
Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D
Reply | Threaded
Open this post in threaded view
|

Re: Win 7 - 1.7.0_07-b11 - InvalidKeyException - Wrong Key Usage on all applets

gouessej
Administrator
Maybe there is a problem with your application but it works, it is really fixed. My colleagues use a trusted certificate and one of them confirmed we don't have to modify this parameter any more.
Julien Gouesse | Personal blog | Website
12