Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Created September 18, 2012 15:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/3743618 to your computer and use it in GitHub Desktop.
Save anonymous/3743618 to your computer and use it in GitHub Desktop.
Failed jffi sparc test
# ant -Dtest=StructTest
Buildfile: /root/jffi/build.xml
-pre-init:
-init-vars:
-post-init:
-init:
-pre-jar:
-pre-compile:
-do-compile:
-generate-version-source:
[echo] Generating Version.java
-generate-version:
[javac] Compiling 1 source file to /root/jffi/build/classes
-compile-java:
-generate-native-headers:
-build-native-library:
[exec] gmake: Nothing to be done for `all'.
-post-compile:
compile:
-do-jar:
[jar] Building jar: /root/jffi/dist/jffi.jar
-build-platform-jar:
[echo] platform=sparc-SunOS
-assemble-native-jar:
-assemble-final-jar:
[jar] Updating jar: /root/jffi/dist/jffi-complete.jar
[jar] Warning: selected jar files include a META-INF/INDEX.LIST which will be replaced by a newly generated one.
-post-jar:
jar:
BUILD SUCCESSFUL
Total time: 3 seconds
root@buildslave-sparc-01:~/jffi# ant runtest -Dtest=StructTest
Buildfile: /root/jffi/build.xml
-pre-init:
-init-vars:
-post-init:
-init:
-pre-compile:
-do-compile:
-generate-version-source:
[echo] Generating Version.java
-generate-version:
[javac] Compiling 1 source file to /root/jffi/build/classes
-compile-java:
-generate-native-headers:
-build-native-library:
[exec] gmake: Nothing to be done for `all'.
-post-compile:
compile:
-pre-compile-test:
-do-compile-test:
-build-native-testlib:
[exec] gmake: Nothing to be done for `all'.
-post-compile-test:
-compile-test:
ensure-test-name:
runtest:
[junit] Running com.kenai.jffi.StructTest
[junit] Testsuite: com.kenai.jffi.StructTest
[junit] Tests run: 14, Failures: 0, Errors: 14, Time elapsed: 0.075 sec
[junit] Tests run: 14, Failures: 0, Errors: 14, Time elapsed: 0.075 sec
[junit]
[junit] Testcase: s8UsingForeign took 0.015 sec
[junit] Caused an ERROR
[junit] null
[junit] java.lang.ExceptionInInitializerError
[junit] at com.kenai.jffi.Foreign.getInstance(Unknown Source)
[junit] at com.kenai.jffi.StructTest.s8UsingForeign(Unknown Source)
[junit] Caused by: java.lang.RuntimeException: java.lang.UnsatisfiedLinkError: could not locate stub library in jar file. Tried [jni/sparc-SunOS/libjffi-1.2.so, /jni/sparc-SunOS/libjffi-1.2.so]
[junit] at com.kenai.jffi.Init.load(Unknown Source)
[junit] at com.kenai.jffi.Foreign$InstanceHolder.getInstanceHolder(Unknown Source)
[junit] at com.kenai.jffi.Foreign$InstanceHolder.<clinit>(Unknown Source)
[junit] Caused by: java.lang.UnsatisfiedLinkError: could not locate stub library in jar file. Tried [jni/sparc-SunOS/libjffi-1.2.so, /jni/sparc-SunOS/libjffi-1.2.so]
[junit] at com.kenai.jffi.internal.StubLoader.getStubLibraryStream(Unknown Source)
[junit] at com.kenai.jffi.internal.StubLoader.loadFromJar(Unknown Source)
[junit] at com.kenai.jffi.internal.StubLoader.load(Unknown Source)
[junit] at com.kenai.jffi.internal.StubLoader.<clinit>(Unknown Source)
[junit] at java.lang.Class.forName0(Native Method)
[junit] at java.lang.Class.forName(Class.java:247)
[junit]
[junit] Testcase: s8UsingStruct took 0.003 sec
[junit] Caused an ERROR
[junit] Could not initialize class com.kenai.jffi.Foreign$InstanceHolder
[junit] java.lang.NoClassDefFoundError: Could not initialize class com.kenai.jffi.Foreign$InstanceHolder
[junit] at com.kenai.jffi.Foreign.getInstance(Unknown Source)
[junit] at com.kenai.jffi.Struct.<init>(Unknown Source)
[junit] at com.kenai.jffi.StructTest.s8UsingStruct(Unknown Source)
[junit]
[junit] Testcase: s8s32UsingForeign took 0 sec
[junit] Caused an ERROR
[junit] Could not initialize class com.kenai.jffi.Foreign$InstanceHolder
[junit] java.lang.NoClassDefFoundError: Could not initialize class com.kenai.jffi.Foreign$InstanceHolder
[junit] at com.kenai.jffi.Foreign.getInstance(Unknown Source)
[junit] at com.kenai.jffi.StructTest.s8s32UsingForeign(Unknown Source)
[junit]
[junit] Testcase: s8s32UsingStruct took 0 sec
[junit] Caused an ERROR
[junit] Could not initialize class com.kenai.jffi.Foreign$InstanceHolder
[junit] java.lang.NoClassDefFoundError: Could not initialize class com.kenai.jffi.Foreign$InstanceHolder
[junit] at com.kenai.jffi.Foreign.getInstance(Unknown Source)
[junit] at com.kenai.jffi.Struct.<init>(Unknown Source)
[junit] at com.kenai.jffi.StructTest.s8s32UsingStruct(Unknown Source)
[junit]
[junit] Testcase: s8s32ReturnWithDefaultBuffer took 0 sec
[junit] Caused an ERROR
[junit] Could not initialize class com.kenai.jffi.Foreign$InstanceHolder
[junit] java.lang.NoClassDefFoundError: Could not initialize class com.kenai.jffi.Foreign$InstanceHolder
[junit] at com.kenai.jffi.Foreign.getInstance(Unknown Source)
[junit] at com.kenai.jffi.Struct.<init>(Unknown Source)
[junit] at com.kenai.jffi.StructTest.s8s32ReturnWithDefaultBuffer(Unknown Source)
[junit]
[junit] Testcase: s8s32ReturnWithProvidedBuffer took 0 sec
[junit] Caused an ERROR
[junit] Could not initialize class com.kenai.jffi.Foreign$InstanceHolder
[junit] java.lang.NoClassDefFoundError: Could not initialize class com.kenai.jffi.Foreign$InstanceHolder
[junit] at com.kenai.jffi.Foreign.getInstance(Unknown Source)
[junit] at com.kenai.jffi.Struct.<init>(Unknown Source)
[junit] at com.kenai.jffi.StructTest.s8s32ReturnWithProvidedBuffer(Unknown Source)
[junit]
[junit] Testcase: s8s32ReturnWithProvidedBufferAndOffset took 0 sec
[junit] Caused an ERROR
[junit] Could not initialize class com.kenai.jffi.Foreign$InstanceHolder
[junit] java.lang.NoClassDefFoundError: Could not initialize class com.kenai.jffi.Foreign$InstanceHolder
[junit] at com.kenai.jffi.Foreign.getInstance(Unknown Source)
[junit] at com.kenai.jffi.Struct.<init>(Unknown Source)
[junit] at com.kenai.jffi.StructTest.s8s32ReturnWithProvidedBufferAndOffset(Unknown Source)
[junit]
[junit] Testcase: structS8S32ParameterFromArray took 0.01 sec
[junit] Caused an ERROR
[junit] Could not initialize class com.kenai.jffi.Foreign$InstanceHolder
[junit] java.lang.NoClassDefFoundError: Could not initialize class com.kenai.jffi.Foreign$InstanceHolder
[junit] at com.kenai.jffi.Foreign.getInstance(Unknown Source)
[junit] at com.kenai.jffi.Library.openLibrary(Unknown Source)
[junit] at com.kenai.jffi.Library.getCachedInstance(Unknown Source)
[junit] at com.kenai.jffi.UnitHelper$LibraryHolder.<clinit>(Unknown Source)
[junit] at com.kenai.jffi.UnitHelper.findSymbol(Unknown Source)
[junit] at com.kenai.jffi.StructTest.structS8S32ParameterFromArray(Unknown Source)
[junit]
[junit] Testcase: structS8S32ParameterFromPointer took 0.001 sec
[junit] Caused an ERROR
[junit] Could not initialize class com.kenai.jffi.UnitHelper$LibraryHolder
[junit] java.lang.NoClassDefFoundError: Could not initialize class com.kenai.jffi.UnitHelper$LibraryHolder
[junit] at com.kenai.jffi.UnitHelper.findSymbol(Unknown Source)
[junit] at com.kenai.jffi.StructTest.structS8S32ParameterFromPointer(Unknown Source)
[junit]
[junit] Testcase: structS8S32ParameterFromArrayAndS32 took 0 sec
[junit] Caused an ERROR
[junit] Could not initialize class com.kenai.jffi.UnitHelper$LibraryHolder
[junit] java.lang.NoClassDefFoundError: Could not initialize class com.kenai.jffi.UnitHelper$LibraryHolder
[junit] at com.kenai.jffi.UnitHelper.findSymbol(Unknown Source)
[junit] at com.kenai.jffi.StructTest.structS8S32ParameterFromArrayAndS32(Unknown Source)
[junit]
[junit] Testcase: structS8S32ParameterFromPointerAndS32 took 0 sec
[junit] Caused an ERROR
[junit] Could not initialize class com.kenai.jffi.UnitHelper$LibraryHolder
[junit] java.lang.NoClassDefFoundError: Could not initialize class com.kenai.jffi.UnitHelper$LibraryHolder
[junit] at com.kenai.jffi.UnitHelper.findSymbol(Unknown Source)
[junit] at com.kenai.jffi.StructTest.structS8S32ParameterFromPointerAndS32(Unknown Source)
[junit]
[junit] Testcase: structS8S32ParameterFromArrayAndS64 took 0 sec
[junit] Caused an ERROR
[junit] Could not initialize class com.kenai.jffi.UnitHelper$LibraryHolder
[junit] java.lang.NoClassDefFoundError: Could not initialize class com.kenai.jffi.UnitHelper$LibraryHolder
[junit] at com.kenai.jffi.UnitHelper.findSymbol(Unknown Source)
[junit] at com.kenai.jffi.StructTest.structS8S32ParameterFromArrayAndS64(Unknown Source)
[junit]
[junit] Testcase: structS8S32ParameterFromPointerAndS64 took 0.001 sec
[junit] Caused an ERROR
[junit] Could not initialize class com.kenai.jffi.UnitHelper$LibraryHolder
[junit] java.lang.NoClassDefFoundError: Could not initialize class com.kenai.jffi.UnitHelper$LibraryHolder
[junit] at com.kenai.jffi.UnitHelper.findSymbol(Unknown Source)
[junit] at com.kenai.jffi.StructTest.structS8S32ParameterFromPointerAndS64(Unknown Source)
[junit]
[junit] Testcase: s8s32_set took 0 sec
[junit] Caused an ERROR
[junit] Could not initialize class com.kenai.jffi.UnitHelper$LibraryHolder
[junit] java.lang.NoClassDefFoundError: Could not initialize class com.kenai.jffi.UnitHelper$LibraryHolder
[junit] at com.kenai.jffi.UnitHelper.findSymbol(Unknown Source)
[junit] at com.kenai.jffi.StructTest.s8s32_set(Unknown Source)
[junit]
[junit] Test com.kenai.jffi.StructTest FAILED
BUILD SUCCESSFUL
Total time: 3 seconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment