[Qt-jambi-interest] path with blanks results in java.lang.ExceptionInInitializerError

Sönke Brummerloh soenke.brummerloh at offis.de
Mon Aug 18 15:26:10 CEST 2008


Hello all,

with Qt-Jambi 4.4.0_01 I get the following Exception when trying to 
start my application:

--------------------------------------------------------------------------------------------
Exception in thread "main" java.lang.ExceptionInInitializerError 
at com.trolltech.qt.QtJambiObject.<clinit>(QtJambiObject.java:40)
Caused by: java.lang.RuntimeException: Loading library failed, progress 
so far:
Unpacking .jar file: 
'file:/home/testuser/Desktop/test%20me/testapp/lib/qtjambi-linux32-gcc-4.4.0_01.jar'

         at 
com.trolltech.qt.internal.NativeLibraryManager.loadNativeLibrary(NativeLibraryManager.java:420)
         at 
com.trolltech.qt.internal.NativeLibraryManager.loadQtLibrary(NativeLibraryManager.java:352)
         at com.trolltech.qt.Utilities.loadQtLibrary(Utilities.java:120)
         at com.trolltech.qt.Utilities.loadQtLibrary(Utilities.java:116)
         at 
com.trolltech.qt.QtJambi_LibraryInitializer.<clinit>(QtJambi_LibraryInitializer.java:36)
         ... 1 more
Caused by: java.lang.RuntimeException: Failed to unpack native 
libraries, progress so far:
Unpacking .jar file: 
'file:/home/testuser/Desktop/test%20me/testapp/lib/qtjambi-linux32-gcc-4.4.0_01.jar'

         at 
com.trolltech.qt.internal.NativeLibraryManager.unpack(NativeLibraryManager.java:365)
         at 
com.trolltech.qt.internal.NativeLibraryManager.loadLibrary_helper(NativeLibraryManager.java:426)
         at 
com.trolltech.qt.internal.NativeLibraryManager.loadNativeLibrary(NativeLibraryManager.java:415)
         ... 5 more
Caused by: java.lang.NullPointerException
         at 
com.trolltech.qt.internal.NativeLibraryManager.readDeploySpec(NativeLibraryManager.java:483)
         at 
com.trolltech.qt.internal.NativeLibraryManager.unpackJarFile_helper(NativeLibraryManager.java:570)
         at 
com.trolltech.qt.internal.NativeLibraryManager.unpackJarFile(NativeLibraryManager.java:249)
         at 
com.trolltech.qt.internal.NativeLibraryManager.unpack_helper(NativeLibraryManager.java:382)
         at 
com.trolltech.qt.internal.NativeLibraryManager.unpack(NativeLibraryManager.java:360)
         ... 7 more
--------------------------------------------------------------------------------------------

The path to the jar-files is /home/testuser/Desktop/test me/testapp/lib/

The Exception occurs if the path to the platform specific qtjambi 
jar-file contains one or more blanks (here between "test" and "me"). It 
occurs on Linux as well as on Microsoft Windows.

My question are:
Is this a bug in Qt-Jambi? Is there a way in Qt-Jambi 4.4 to use a path 
to the Qt-Jambi jar-files containing blanks?

Best regards,
Soenke



More information about the Qt-jambi-interest mailing list