There seems to be problems with JRuby libs which are too old. Under some circumstances you'll get

      Failed to load native POSIX impl; falling back on Java impl. Stacktrace follows.
      java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native
      at org.jruby.ext.posix.POSIXFactory.loadLibC(POSIXFactory.java:96)
      at org.jruby.ext.posix.POSIXFactory.loadLinuxPOSIX(POSIXFactory.java:65)
      at org.jruby.ext.posix.POSIXFactory.getPOSIX(POSIXFactory.java:24)
      at hudson.os.PosixAPI.<clinit>(PosixAPI.java:40)
      ...

      as stacktrace. As reported on http://jira.codehaus.org/browse/JRUBY-6712 this seems to be a problem of a too old JRuby version with outdated libs.

          [JENKINS-14351] Outdated JRuby libs

          Oli B. created issue -
          Oli B. made changes -
          Link New: This issue is related to JENKINS-13341 [ JENKINS-13341 ]
          Matthias Kraft made changes -
          Link New: This issue is blocking JENKINS-15682 [ JENKINS-15682 ]

          Raised to blocker, see related links.

          Matthias Kraft added a comment - Raised to blocker, see related links.
          Matthias Kraft made changes -
          Priority Original: Major [ 3 ] New: Blocker [ 1 ]

          Jesse Glick added a comment -

          1.0.3 is the last version of jna-posix. For jnr-posix, 2.0 changes package names so would be quite incompatible; even

          diff --git a/core/pom.xml b/core/pom.xml
          index 6d1495b..5d046d5 100644
          --- a/core/pom.xml
          +++ b/core/pom.xml
          @@ -114,8 +114,8 @@ THE SOFTWARE.
           
               <dependency>
                 <groupId>org.jruby.ext.posix</groupId>
          -      <artifactId>jna-posix</artifactId>
          -      <version>1.0.3</version>
          +      <artifactId>jnr-posix</artifactId>
          +      <version>1.1.9</version>
               </dependency>
               <dependency>
                 <groupId>org.kohsuke</groupId>
          

          fails to compile due to some apparently incompatible API changes.

          May not be practical to update this library; rather, any symptoms caused by use of the older library on some platforms should be addressed by falling back to use of some other library, or plain Java code. (Generally all of these functions are considered optional, so it is a matter of making sure the fallback code works.)

          Jesse Glick added a comment - 1.0.3 is the last version of jna-posix. For jnr-posix, 2.0 changes package names so would be quite incompatible; even diff --git a/core/pom.xml b/core/pom.xml index 6d1495b..5d046d5 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -114,8 +114,8 @@ THE SOFTWARE. <dependency> <groupId> org.jruby.ext.posix </groupId> - <artifactId> jna-posix </artifactId> - <version> 1.0.3 </version> + <artifactId> jnr-posix </artifactId> + <version> 1.1.9 </version> </dependency> <dependency> <groupId> org.kohsuke </groupId> fails to compile due to some apparently incompatible API changes. May not be practical to update this library; rather, any symptoms caused by use of the older library on some platforms should be addressed by falling back to use of some other library, or plain Java code. (Generally all of these functions are considered optional, so it is a matter of making sure the fallback code works.)
          Jesse Glick made changes -
          Jesse Glick made changes -
          Link New: This issue is blocking JENKINS-13202 [ JENKINS-13202 ]
          Jesse Glick made changes -
          Assignee New: Jesse Glick [ jglick ]
          Jesse Glick made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]

            jglick Jesse Glick
            javatux Oli B.
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: