JOGL 2.0.2 and Netbeans RCP Applications

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

JOGL 2.0.2 and Netbeans RCP Applications

Andreas
Hi,

if I use JOGL 2.0.2 in a module of a Netbeans Platform application I'm getting a "Catched IOException: java.net.URISyntaxException: Illegal character in opaque part at index 7: file:C:\...\build\cluster\modules\ext\gluegen-rt-natives-windows-amd64.jar, while TempJarCache.bootstrapNativeLib() of jar:file:/.../build/cluster/modules/ext/ + gluegen-rt-natives-windows-amd64.jar)

This happens only in case of Windows since JOGL 2.0.2. It was working during the JOGL 2 RCs.

Can someone help me please?

Andreas
Reply | Threaded
Open this post in threaded view
|

Re: JOGL 2.0.2 and Netbeans RCP Applications

Wade Walker
Administrator
Not sure why it worked before, but "file:C:\...\build" does look like a very strange path -- did you specify it with three dots in your Netbeans project settings somehow?
Reply | Threaded
Open this post in threaded view
|

Re: JOGL 2.0.2 and Netbeans RCP Applications

gouessej
Administrator
In reply to this post by Andreas
There are spaces in this path, then it is not a valid URI, rather use new File("..............").toURI(). In my humble opinion, this is a JogAmp bug.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: JOGL 2.0.2 and Netbeans RCP Applications

Andreas
Is there anything I can do to get my program work again? Bug Report or changing of properties?
Reply | Threaded
Open this post in threaded view
|

Re: JOGL 2.0.2 and Netbeans RCP Applications

Andreas
I tried the RCs. The last one, which is working is 2.0.2-RC11. Since RC12 I can see this behaviour.
Reply | Threaded
Open this post in threaded view
|

Re: JOGL 2.0.2 and Netbeans RCP Applications

gouessej
Administrator
Thanks. There is already a report about a similar bug.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: JOGL 2.0.2 and Netbeans RCP Applications

Andreas
Today I tried the new Jogl 2.1.0 and there is still the same problem and Jogl 2.0.2 RC11 is working without any error..

java.lang.UnsatisfiedLinkError: Can't load library: C:\Users\hauffe\Desktop\elamx2\gluegen-rt.dll
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1828)
        at java.lang.Runtime.load0(Runtime.java:792)
        at java.lang.System.load(System.java:1059)
        at com.jogamp.common.jvm.JNILibLoaderBase.loadLibraryInternal(JNILibLoaderBase.java:548)
        at com.jogamp.common.jvm.JNILibLoaderBase.access$000(JNILibLoaderBase.java:64)
        at com.jogamp.common.jvm.JNILibLoaderBase$DefaultAction.loadLibrary(JNILibLoaderBase.java:95)
        at com.jogamp.common.jvm.JNILibLoaderBase.loadLibrary(JNILibLoaderBase.java:412)
        at com.jogamp.common.os.DynamicLibraryBundle$GlueJNILibLoader.loadLibrary(DynamicLibraryBundle.java:387)
        at com.jogamp.common.os.Platform$1.run(Platform.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.jogamp.common.os.Platform.<clinit>(Platform.java:173)
        at javax.media.opengl.GLProfile.<clinit>(GLProfile.java:82)
        at jogamp.opengl.ThreadingImpl$1.run(ThreadingImpl.java:90)
        at jogamp.opengl.ThreadingImpl$1.run(ThreadingImpl.java:74)
        at java.security.AccessController.doPrivileged(Native Method)
        at jogamp.opengl.ThreadingImpl.<clinit>(ThreadingImpl.java:73)
        at javax.media.opengl.Threading.disableSingleThreading(Threading.java:138)
        at javax.media.j3d.JoglPipeline.initialize(JoglPipeline.java:117)
        at javax.media.j3d.Pipeline.createPipeline(Pipeline.java:91)
        at javax.media.j3d.MasterControl.loadLibraries(MasterControl.java:832)
        at javax.media.j3d.VirtualUniverse.<clinit>(VirtualUniverse.java:274)
        at javax.media.j3d.GraphicsConfigTemplate3D.getBestConfiguration(GraphicsConfigTemplate3D.java:316)
        at java.awt.GraphicsDevice.getBestConfiguration(GraphicsDevice.java:207)
        at de.elamx.view3d.GraphicsConfigHolder.init(GraphicsConfigHolder.java:32)
        at de.elamx.view3d.Installer.restored(Installer.java:14)
        at org.netbeans.core.startup.NbInstaller.loadCode(NbInstaller.java:471)
[catch] at org.netbeans.core.startup.NbInstaller.loadImpl(NbInstaller.java:394)
        at org.netbeans.core.startup.NbInstaller.access$000(NbInstaller.java:105)
        at org.netbeans.core.startup.NbInstaller$1.run(NbInstaller.java:346)
        at org.openide.filesystems.FileUtil$2.run(FileUtil.java:435)
        at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:127)
        at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:609)
        at org.openide.filesystems.FileUtil.runAtomicAction(FileUtil.java:419)
        at org.openide.filesystems.FileUtil.runAtomicAction(FileUtil.java:439)
        at org.netbeans.core.startup.NbInstaller.load(NbInstaller.java:343)
        at org.netbeans.ModuleManager.enable(ModuleManager.java:1194)
        at org.netbeans.ModuleManager.enable(ModuleManager.java:1017)
        at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:340)
        at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:276)
        at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:301)
        at org.netbeans.core.startup.Main.getModuleSystem(Main.java:181)
        at org.netbeans.core.startup.Main.getModuleSystem(Main.java:150)
        at org.netbeans.core.startup.Main.start(Main.java:307)
        at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:123)
        at java.lang.Thread.run(Thread.java:722)
Catched IOException: java.net.URISyntaxException: Illegal character in opaque part at index 7: file:C:\Users\hauffe\Desktop\elamx2\elamx2\modules\ext\gluegen-rt-natives-windows-amd64.jar, while addNativeJarLibsImpl(classFromJavaJar class com.jogamp.common.os.Platform, classJarURI jar:file:/C:/Users/hauffe/Desktop/elamx2/elamx2/modules/ext/gluegen-rt.jar!/com/jogamp/common/os/Platform.class, nativeJarBaseName gluegen-rt-natives-windows-amd64.jar): [ file:/C:/Users/hauffe/Desktop/elamx2/elamx2/modules/ext/gluegen-rt.jar -> file:/C:/Users/hauffe/Desktop/elamx2/elamx2/modules/ext/ ] + gluegen-rt-natives-windows-amd64.jar -> slim: jar:file:/C:/Users/hauffe/Desktop/elamx2/elamx2/modules/ext/gluegen-rt-natives-windows-amd64.jar!/
Reply | Threaded
Open this post in threaded view
|

Re: JOGL 2.0.2 and Netbeans RCP Applications

gouessej
Administrator
This pathname seems to denote an invalid URI. When the string starts with "file:", we should use File.toURI().

Edit.: URIs don't support backslashes.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: JOGL 2.0.2 and Netbeans RCP Applications

Andreas
In reply to this post by Andreas
So is there something I can do to get it work or is it a jogl bug?
Reply | Threaded
Open this post in threaded view
|

Re: JOGL 2.0.2 and Netbeans RCP Applications

Xerxes Rånby
Please file a bug-report; preferable with instructions on how to setup an example Netbeans RCP Application that can expose the bug using the JogAmp gluegen
I believe this is a windows specific bug:
\ is illegal to use in URI these needs to be replaced by /
URI uses / for path separator on all OS, windows included.

This bug is different compared to Bug 820 because the \ are not supposed to be escaped, instead they need to be replaced by the correct URI path separator for windows compatibility.
Reply | Threaded
Open this post in threaded view
|

Re: JOGL 2.0.2 and Netbeans RCP Applications

Xerxes Rånby
In reply to this post by Andreas
Andreas wrote
Today I tried the new Jogl 2.1.0 and there is still the same problem and Jogl 2.0.2 RC11 is working without any error..
...
Catched IOException: java.net.URISyntaxException: Illegal character in opaque part at index 7: file:C:\Users\hauffe\Desktop\elamx2\elamx2\modules\ext\gluegen-rt-natives-windows-amd64.jar, while addNativeJarLibsImpl(classFromJavaJar class com.jogamp.common.os.Platform, classJarURI jar:file:/C:/Users/hauffe/Desktop/elamx2/elamx2/modules/ext/gluegen-rt.jar!/com/jogamp/common/os/Platform.class, nativeJarBaseName gluegen-rt-natives-windows-amd64.jar): [ file:/C:/Users/hauffe/Desktop/elamx2/elamx2/modules/ext/gluegen-rt.jar -> file:/C:/Users/hauffe/Desktop/elamx2/elamx2/modules/ext/ ] + gluegen-rt-natives-windows-amd64.jar -> slim: jar:file:/C:/Users/hauffe/Desktop/elamx2/elamx2/modules/ext/gluegen-rt-natives-windows-amd64.jar!/
Please include the complete logfile, the stacktrace from
URISyntaxException: Illegal character in opaque part at index 7: file:C:\Users\hauffe\Desktop\elamx2\elamx2\modules\ext\gluegen-rt-natives-windows-amd64.jar, while addNativeJarLibsImpl
will include the code line we are interested in, but its not included in your report.

Cheers
Xerxes
Reply | Threaded
Open this post in threaded view
|

Re: JOGL 2.0.2 and Netbeans RCP Applications

Andreas