On 03/02/15 00:46, Stian Soiland-Reyes wrote:
Ouch.. seems like a bug in Maven (or more likely) this magic
org.rzo.yajsw.os.posix.PosixProcess used by org.everit.osgi.

I guess setting it manually with -Djna.nosys=true didn't help either?


Another reason to have a quick look at the PAX Exam (JENA-879) - which
I'm in the middle of now. It's much more complicated.. :-(

On 2 February 2015 at 20:34, Andy Seaborne <[email protected]> wrote:

-Djna.nosys=true  Changes the error ...

(deleting vast amount of my m2 repo does not help)

(2 different traces below, 2 different JVMs:

openjdk-8 with mvn -Djna.nosys=true and with java-8-oracle (with and without -D)
------------------------------------------------------------------------
...
bsd env NMON=cmdkV
bsd env EXINIT=set ai aw warn
bsd env XDG_VTNR=7
bsd env XDG_RUNTIME_DIR=/run/user/1000
bsd env HOME=/home/afs
bsd env GNOME_KEYRING_PID=2785
/usr/lib/jvm/default-java/bin/java -Djna_tmpdir=/tmp/eosgi-363281406525354060-tmp -classpath /mnt/disk1/afs/m2/repo/org/rzo/yajsw/wrapper/11.11/wrapper-11.11.jar:/mnt/disk1/afs/m2/repo/net/java/dev/jna/jna/3.4.0/jna-3.4.0.jar -Dwrapperx.pipeStreams=true org.rzo.yajsw.os.posix.bsd.AppStarter ./runConsole.sh
started process -1
exit code bsd process 1
Exception in thread "main" java.lang.Error:

There is an incompatible JNA native library installed on this system.
To resolve this issue you may do one of the following:
 - remove or uninstall the offending library
 - set the system property jna.nosys=true
 - set jna.boot.library.path to include the path to the version of the
   jnidispatch library included with the JNA jar file you are using

    at com.sun.jna.Native.<clinit>(Native.java:142)
at org.rzo.yajsw.os.posix.PosixProcess$CLibrary.<clinit>(PosixProcess.java:60)
    at org.rzo.yajsw.os.posix.bsd.AppStarter.main(AppStarter.java:14)
[ERROR] Error reading from input stream. Stopping redirection.
java.io.IOException: Stream closed
at java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:170)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:336)
    at java.io.FilterInputStream.read(FilterInputStream.java:107)
at org.everit.osgi.dev.maven.DaemonStreamRedirector$PollerRunnable.run(DaemonStreamRedirector.java:62)
    at java.lang.Thread.run(Thread.java:745)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 19.186 s
[INFO] Finished at: 2015-02-03T08:34:36+00:00
[INFO] Final Memory: 25M/284M
[INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.everit.osgi.dev:eosgi-maven-plugin:3.1.0:integration-test (integration-test) on project jena-osgi-test: Test Process of environment felix finished with exit code 1 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[WARNING] Stopping test process: -1


------------------------------------------------------------------------
bsd env XDG_RUNTIME_DIR=/run/user/1000
bsd env HOME=/home/afs
bsd env GNOME_KEYRING_PID=2785
/usr/lib/jvm/java-8-oracle//bin/java -Djna_tmpdir=/tmp/eosgi-8727996463447348875-tmp -classpath /mnt/disk1/afs/m2/repo/org/rzo/yajsw/wrapper/11.11/wrapper-11.11.jar:/mnt/disk1/afs/m2/repo/net/java/dev/jna/jna/3.4.0/jna-3.4.0.jar -Dwrapperx.pipeStreams=true org.rzo.yajsw.os.posix.bsd.AppStarter ./runConsole.sh
started process 6882
calling exec
openjdk version "1.8.0_40-internal"
OpenJDK Runtime Environment (build 1.8.0_40-internal-b09)
OpenJDK 64-Bit Server VM (build 25.40-b13, mixed mode)
YAJSW: yajsw-stable-11.11
OS   : Linux/3.16.0-28-generic/amd64
JVM : Oracle Corporation/1.8.0_40-internal//usr/lib/jvm/java-8-openjdk-amd64/jre/64
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at org.rzo.yajsw.boot.WrapperExeBooter.main(WrapperExeBooter.java:43)
Caused by: java.lang.Error:

There is an incompatible JNA native library installed on this system.
To resolve this issue you may do one of the following:
 - remove or uninstall the offending library
 - set the system property jna.nosys=true
 - set jna.boot.library.path to include the path to the version of the
   jnidispatch library included with the JNA jar file you are using

    at com.sun.jna.Native.<clinit>(Native.java:142)
    at com.sun.jna.Pointer.<clinit>(Pointer.java:42)
    at com.sun.jna.PointerType.<init>(PointerType.java:25)
    at com.sun.jna.ptr.ByReference.<init>(ByReference.java:32)
    at com.sun.jna.ptr.IntByReference.<init>(IntByReference.java:22)
    at com.sun.jna.ptr.IntByReference.<init>(IntByReference.java:18)
    at org.rzo.yajsw.os.posix.PosixProcess.<init>(PosixProcess.java:43)
at org.rzo.yajsw.os.posix.OperatingSystemPosix.setWorkingDir(OperatingSystemPosix.java:12)
    at org.rzo.yajsw.WrapperExe.main(WrapperExe.java:170)
    ... 5 more
exit code bsd process 0
[INFO] Analyzing test results...
[INFO]
-------------------------------------------------------
Test environment finished: equinox
-------------------------------------------------------

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO]
-------------------------------------------------------
I N T E G R A T I O N   T E S T S   ( O S G I)
-------------------------------------------------------

Results:

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[ERROR] Error at test environment 'felix'. Expected test number is 4 while 0 number of tests ran. [ERROR] Error at test environment 'equinox'. Expected test number is 4 while 0 number of tests ran. [INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.169 s
[INFO] Finished at: 2015-02-03T08:41:48+00:00
[INFO] Final Memory: 25M/580M
[INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.everit.osgi.dev:eosgi-maven-plugin:3.1.0:integration-test (integration-test) on project jena-osgi-test: Number of expected tests 8 while 0 tests ran. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[WARNING] Stopping test process: 6815
[WARNING] Stopping test process: 6882

Reply via email to