Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-14351

Outdated JRuby libs

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Issue Links

            Activity

            Hide
            makr Matthias Kraft added a comment -

            Raised to blocker, see related links.

            Show
            makr Matthias Kraft added a comment - Raised to blocker, see related links.
            Hide
            jglick 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.)

            Show
            jglick 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.)
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            changelog.html
            core/pom.xml
            core/src/main/java/hudson/Util.java
            core/src/main/java/hudson/cli/ClientAuthenticationCache.java
            core/src/main/java/hudson/os/PosixAPI.java
            core/src/main/java/hudson/os/PosixException.java
            core/src/main/java/hudson/tools/ZipExtractionInstaller.java
            core/src/main/java/hudson/util/IOUtils.java
            core/src/main/java/hudson/util/jna/GNUCLibrary.java
            http://jenkins-ci.org/commit/jenkins/2a1d1631bd4d3e6d37d82295089d70e229ea0548
            Log:
            [FIXED JENKINS-14351] jna-posix → jnr-posix upgrade (opt in).

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: changelog.html core/pom.xml core/src/main/java/hudson/Util.java core/src/main/java/hudson/cli/ClientAuthenticationCache.java core/src/main/java/hudson/os/PosixAPI.java core/src/main/java/hudson/os/PosixException.java core/src/main/java/hudson/tools/ZipExtractionInstaller.java core/src/main/java/hudson/util/IOUtils.java core/src/main/java/hudson/util/jna/GNUCLibrary.java http://jenkins-ci.org/commit/jenkins/2a1d1631bd4d3e6d37d82295089d70e229ea0548 Log: [FIXED JENKINS-14351] jna-posix → jnr-posix upgrade (opt in).
            Hide
            dogfood dogfood added a comment -

            Integrated in jenkins_main_trunk #2565
            [FIXED JENKINS-14351] jna-posix → jnr-posix upgrade (opt in). (Revision 2a1d1631bd4d3e6d37d82295089d70e229ea0548)

            Result = SUCCESS
            Jesse Glick : 2a1d1631bd4d3e6d37d82295089d70e229ea0548
            Files :

            • core/src/main/java/hudson/cli/ClientAuthenticationCache.java
            • core/pom.xml
            • core/src/main/java/hudson/util/IOUtils.java
            • core/src/main/java/hudson/Util.java
            • core/src/main/java/hudson/tools/ZipExtractionInstaller.java
            • core/src/main/java/hudson/os/PosixAPI.java
            • core/src/main/java/hudson/os/PosixException.java
            • changelog.html
            • core/src/main/java/hudson/util/jna/GNUCLibrary.java
            Show
            dogfood dogfood added a comment - Integrated in jenkins_main_trunk #2565 [FIXED JENKINS-14351] jna-posix → jnr-posix upgrade (opt in). (Revision 2a1d1631bd4d3e6d37d82295089d70e229ea0548) Result = SUCCESS Jesse Glick : 2a1d1631bd4d3e6d37d82295089d70e229ea0548 Files : core/src/main/java/hudson/cli/ClientAuthenticationCache.java core/pom.xml core/src/main/java/hudson/util/IOUtils.java core/src/main/java/hudson/Util.java core/src/main/java/hudson/tools/ZipExtractionInstaller.java core/src/main/java/hudson/os/PosixAPI.java core/src/main/java/hudson/os/PosixException.java changelog.html core/src/main/java/hudson/util/jna/GNUCLibrary.java
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Oliver Gondža
            Path:
            core/pom.xml
            core/src/main/java/hudson/Util.java
            core/src/main/java/hudson/cli/ClientAuthenticationCache.java
            core/src/main/java/hudson/os/PosixAPI.java
            core/src/main/java/hudson/os/PosixException.java
            core/src/main/java/hudson/tools/ZipExtractionInstaller.java
            core/src/main/java/hudson/util/IOUtils.java
            core/src/main/java/hudson/util/jna/GNUCLibrary.java
            http://jenkins-ci.org/commit/jenkins/2ec80ffd3f98c34a1afc1d68f05270a96105338b
            Log:
            Revert "[FIXED JENKINS-14351] jna-posix → jnr-posix upgrade (opt in)."

            This reverts commit 1732164817db39b9da338e1f9d9357287534a05a.

            Introduced JENKINS-19192 that is too new to be backported.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oliver Gondža Path: core/pom.xml core/src/main/java/hudson/Util.java core/src/main/java/hudson/cli/ClientAuthenticationCache.java core/src/main/java/hudson/os/PosixAPI.java core/src/main/java/hudson/os/PosixException.java core/src/main/java/hudson/tools/ZipExtractionInstaller.java core/src/main/java/hudson/util/IOUtils.java core/src/main/java/hudson/util/jna/GNUCLibrary.java http://jenkins-ci.org/commit/jenkins/2ec80ffd3f98c34a1afc1d68f05270a96105338b Log: Revert " [FIXED JENKINS-14351] jna-posix → jnr-posix upgrade (opt in)." This reverts commit 1732164817db39b9da338e1f9d9357287534a05a. Introduced JENKINS-19192 that is too new to be backported.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            core/pom.xml
            core/src/main/java/hudson/Util.java
            core/src/main/java/hudson/cli/ClientAuthenticationCache.java
            core/src/main/java/hudson/os/PosixAPI.java
            core/src/main/java/hudson/os/PosixException.java
            core/src/main/java/hudson/tools/ZipExtractionInstaller.java
            core/src/main/java/hudson/util/IOUtils.java
            core/src/main/java/hudson/util/jna/GNUCLibrary.java
            http://jenkins-ci.org/commit/jenkins/f1ece6a1b3c47df063ffd0fb40862979c94b95cf
            Log:
            [FIXED JENKINS-14351] jna-posix → jnr-posix upgrade (opt in).
            (cherry picked from commit 2a1d1631bd4d3e6d37d82295089d70e229ea0548)

            Conflicts:
            changelog.html

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: core/pom.xml core/src/main/java/hudson/Util.java core/src/main/java/hudson/cli/ClientAuthenticationCache.java core/src/main/java/hudson/os/PosixAPI.java core/src/main/java/hudson/os/PosixException.java core/src/main/java/hudson/tools/ZipExtractionInstaller.java core/src/main/java/hudson/util/IOUtils.java core/src/main/java/hudson/util/jna/GNUCLibrary.java http://jenkins-ci.org/commit/jenkins/f1ece6a1b3c47df063ffd0fb40862979c94b95cf Log: [FIXED JENKINS-14351] jna-posix → jnr-posix upgrade (opt in). (cherry picked from commit 2a1d1631bd4d3e6d37d82295089d70e229ea0548) Conflicts: changelog.html

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: