java.lang.UnsatisfiedLinkError: Native library (com/sun/jna/hp-ux-ia64n/libjnidispatch.so) not found in resource path ([file:/hudson_workspace/workspace/HTS-ProcCleanerCI/target/surefire/surefirebooter7685486171447239626.jar])

Jenkins JIRA | Pavel Janoušek | 1 year ago
  1. 0

    org.jvnet.hudson.test.JenkinsRule contains static initialization block with: {code} if (!Functions.isWindows()) { try { GNUCLibrary.LIBC.unsetenv("MAVEN_OPTS"); GNUCLibrary.LIBC.unsetenv("MAVEN_DEBUG_OPTS"); } catch (Exception e) { LOGGER.log(Level.WARNING,"Failed to cancel out MAVEN_OPTS",e); } } {code} This part of code doesn't work as expected in the situation when loading "c" library fails. The exception can't be caught in the static block. Above means a testsuite can't be executed on by JNA un-supported platform when JenkinsRule is used (obviously by many plug-ins). Stacktrace looks similar like: {code} java.lang.UnsatisfiedLinkError: Native library (com/sun/jna/hp-ux-ia64n/libjnidispatch.so) not found in resource path ([file:/hudson_workspace/workspace/HTS-ProcCleanerCI/target/surefire/surefirebooter7685486171447239626.jar]) at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:776) at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:736) at com.sun.jna.Native.<clinit>(Native.java:131) at org.jvnet.hudson.test.JenkinsRule.<clinit>(JenkinsRule.java:2129) at org.jenkinsci.plugins.proccleaner.PsCleanerTest.<init>(PsCleanerTest.java:68) {code} PsCleanerTest.java:68 : @Rule public JenkinsRule j = new JenkinsRule(); JenkinsRule.java:2129 : GNUCLibrary.LIBC.unsetenv("MAVEN_OPTS");

    Jenkins JIRA | 1 year ago | Pavel Janoušek
    java.lang.UnsatisfiedLinkError: Native library (com/sun/jna/hp-ux-ia64n/libjnidispatch.so) not found in resource path ([file:/hudson_workspace/workspace/HTS-ProcCleanerCI/target/surefire/surefirebooter7685486171447239626.jar])
  2. 0

    org.jvnet.hudson.test.JenkinsRule contains static initialization block with: {code} if (!Functions.isWindows()) { try { GNUCLibrary.LIBC.unsetenv("MAVEN_OPTS"); GNUCLibrary.LIBC.unsetenv("MAVEN_DEBUG_OPTS"); } catch (Exception e) { LOGGER.log(Level.WARNING,"Failed to cancel out MAVEN_OPTS",e); } } {code} This part of code doesn't work as expected in the situation when loading "c" library fails. The exception can't be caught in the static block. Above means a testsuite can't be executed on by JNA un-supported platform when JenkinsRule is used (obviously by many plug-ins). Stacktrace looks similar like: {code} java.lang.UnsatisfiedLinkError: Native library (com/sun/jna/hp-ux-ia64n/libjnidispatch.so) not found in resource path ([file:/hudson_workspace/workspace/HTS-ProcCleanerCI/target/surefire/surefirebooter7685486171447239626.jar]) at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:776) at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:736) at com.sun.jna.Native.<clinit>(Native.java:131) at org.jvnet.hudson.test.JenkinsRule.<clinit>(JenkinsRule.java:2129) at org.jenkinsci.plugins.proccleaner.PsCleanerTest.<init>(PsCleanerTest.java:68) {code} PsCleanerTest.java:68 : @Rule public JenkinsRule j = new JenkinsRule(); JenkinsRule.java:2129 : GNUCLibrary.LIBC.unsetenv("MAVEN_OPTS");

    Jenkins JIRA | 1 year ago | Pavel Janoušek
    java.lang.UnsatisfiedLinkError: Native library (com/sun/jna/hp-ux-ia64n/libjnidispatch.so) not found in resource path ([file:/hudson_workspace/workspace/HTS-ProcCleanerCI/target/surefire/surefirebooter7685486171447239626.jar])
  3. 0

    tess4j under windows 10

    Stack Overflow | 11 months ago | Albert Hendriks
    java.lang.UnsatisfiedLinkError: Failed to create temporary file for /com/sun/jna/win32-x86-64/jnidispatch.dll library: Toegang geweigerd
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Bug 255079 – java.lang.UnsatisfiedLinkError: Native library libjnidispatch.so not found

    netbeans.org | 11 months ago
    java.lang.UnsatisfiedLinkError: Native library (com/sun/jna/linux-sparcv9/libjnidispatch.so) not found in resource path (/ws/ntrunk/builds/trunk/biweekly/build22.0/sparc-Linux/install/lib/netbeans/platform/lib/boot.jar:/ws/ntrunk/builds/trunk/biweekly/build22.0/sparc-Linux/install/lib/netbeans/platform/lib/org-openide-modules.jar:/ws/ntrunk/builds/trunk/biweekly/build22.0/sparc-Linux/install/lib/netbeans/platform/lib/org-openide-util.jar:/ws/ntrunk/builds/trunk/biweekly/build22.0/sparc-Linux/install/lib/netbeans/platform/lib/org-openide-util-lookup.jar:/ws/ntrunk/builds/trunk/biweekly/build22.0/sparc-Linux/install/lib/netbeans/platform/lib/org-openide-util-ui.jar:/ws/ntrunk/tools/JDK/sparc-Linux/jdk1.7.0_80/lib/dt.jar:/ws/ntrunk/tools/JDK/sparc-Linux/jdk1.7.0_80/lib/tools.jar)
  6. 0

    tess4j under windows 10

    pr8x.com | 11 months ago
    java.lang.UnsatisfiedLinkError: Failed to create temporary file for /com/sun/jna/win32-x86-64/jnidispatch.dll library: Toegang geweigerd

  1. gehel 13 times, last 8 months ago
22 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.UnsatisfiedLinkError

    Native library (com/sun/jna/hp-ux-ia64n/libjnidispatch.so) not found in resource path ([file:/hudson_workspace/workspace/HTS-ProcCleanerCI/target/surefire/surefirebooter7685486171447239626.jar])

    at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath()
  2. Java Native Access
    Native.<clinit>
    1. com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:776)
    2. com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:736)
    3. com.sun.jna.Native.<clinit>(Native.java:131)
    3 frames
  3. Hudson :: Test Framework
    JenkinsRule.<clinit>
    1. org.jvnet.hudson.test.JenkinsRule.<clinit>(JenkinsRule.java:2129)
    1 frame
  4. org.jenkinsci.plugins
    PsCleanerTest.<init>
    1. org.jenkinsci.plugins.proccleaner.PsCleanerTest.<init>(PsCleanerTest.java:68)
    1 frame