Starting with the integration of JNR in 1.518, the login CLI command fails on Windows:

      hudson.util.IOException2: remote file operation failed: C:\Documents and Settings\Jesse Glick\.hudson\cli-credentials at hudson.remoting.Channel@1a8afc3:CLI channel from /127.0.0.1
              at hudson.FilePath.act(FilePath.java:905)
              at hudson.FilePath.act(FilePath.java:882)
              at hudson.cli.ClientAuthenticationCache.save(ClientAuthenticationCache.java:109)
              at hudson.cli.ClientAuthenticationCache.set(ClientAuthenticationCache.java:97)
              at hudson.cli.LoginCommand.run(LoginCommand.java:37)
              at ...
      Caused by: java.io.IOException: Remote call on CLI channel from /127.0.0.1 failed
              at hudson.remoting.Channel.call(Channel.java:723)
              at hudson.FilePath.act(FilePath.java:898)
              ... 24 more
      Caused by: java.lang.NoClassDefFoundError: jnr/ffi/util/ref/internal/Finalizer$ShutDown
              at java.lang.Class.getDeclaredMethods0(Native Method)
              at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
              at java.lang.Class.getMethod0(Unknown Source)
              at java.lang.Class.getMethod(Unknown Source)
              at jnr.ffi.util.ref.FinalizableReferenceQueue.getStartFinalizer(FinalizableReferenceQueue.java:292)
              at jnr.ffi.util.ref.FinalizableReferenceQueue.<clinit>(FinalizableReferenceQueue.java:90)
              at jnr.ffi.provider.jffi.NativeFinalizer.<init>(NativeFinalizer.java:9)
              at jnr.ffi.provider.jffi.NativeFinalizer$SingletonHolder.<clinit>(NativeFinalizer.java:12)
              at jnr.ffi.provider.jffi.NativeFinalizer.getInstance(NativeFinalizer.java:16)
              at jnr.ffi.provider.jffi.TransientNativeMemory$Magazine.<init>(TransientNativeMemory.java:110)
              at jnr.ffi.provider.jffi.TransientNativeMemory.allocate(TransientNativeMemory.java:53)
              at jnr.ffi.provider.jffi.NativeMemoryManager.allocateDirect(NativeMemoryManager.java:45)
              at jnr.ffi.Memory.allocateDirect(Memory.java:124)
              at jnr.posix.WString$1.toNative(WString.java:33)
              at jnr.posix.WString$1.toNative(WString.java:26)
              at jnr.posix.WindowsLibC$jnr$ffi$0._wchmod(Unknown Source)
              at jnr.posix.WindowsPOSIX.chmod(WindowsPOSIX.java:136)
              at jnr.posix.CheckedPOSIX.chmod(CheckedPOSIX.java:49)
              at jnr.posix.LazyPOSIX.chmod(LazyPOSIX.java:51)
              at hudson.cli.ClientAuthenticationCache$2.invoke(ClientAuthenticationCache.java:121)
              at hudson.cli.ClientAuthenticationCache$2.invoke(ClientAuthenticationCache.java:109)
              at ...
      Caused by: java.lang.ClassNotFoundException: jnr.ffi.util.ref.internal.Finalizer$ShutDown
              at java.net.URLClassLoader$1.run(Unknown Source)
              at ...
              ... 31 more

          [JENKINS-19192] CLI login command fails on Windows

          Jesse Glick added a comment -

          Jesse Glick added a comment - Upstream fix: https://github.com/jnr/jnr-ffi/pull/5

          Code changed in jenkins
          User: Jesse Glick
          Path:
          core/src/main/java/hudson/cli/ClientAuthenticationCache.java
          http://jenkins-ci.org/commit/jenkins/5e69a978cc7b608107063f4cded2a34ba495c7ee
          Log:
          [FIXED JENKINS-19192] LoginCommand failed on Windows after introduction of JNR.
          Root cause of class loading error (on jnr.ffi.util.ref.internal.Finalizer$ShutDown) still unclear,
          but easy fix is to simplify ClientAuthenticationCache.save to use FilePath.chmod,
          which at least for now relies on hudson.util.jna.GNUCLibrary rather than JNR.

          (cherry picked from commit 707629b03f96c9d210e9e0b89ea3c62b2ed37bb4)

          Conflicts:
          changelog.html

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: core/src/main/java/hudson/cli/ClientAuthenticationCache.java http://jenkins-ci.org/commit/jenkins/5e69a978cc7b608107063f4cded2a34ba495c7ee Log: [FIXED JENKINS-19192] LoginCommand failed on Windows after introduction of JNR. Root cause of class loading error (on jnr.ffi.util.ref.internal.Finalizer$ShutDown) still unclear, but easy fix is to simplify ClientAuthenticationCache.save to use FilePath.chmod, which at least for now relies on hudson.util.jna.GNUCLibrary rather than JNR. (cherry picked from commit 707629b03f96c9d210e9e0b89ea3c62b2ed37bb4) Conflicts: changelog.html

          Code changed in jenkins
          User: Jesse Glick
          Path:
          core/pom.xml
          http://jenkins-ci.org/commit/jenkins/f9ddeaad718fde9d9056119ef55311f541e0f8f5
          Log:
          JENKINS-19192 Note.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: core/pom.xml http://jenkins-ci.org/commit/jenkins/f9ddeaad718fde9d9056119ef55311f541e0f8f5 Log: JENKINS-19192 Note.

          dogfood added a comment -

          Integrated in jenkins_main_trunk #2877
          JENKINS-19192 Note. (Revision f9ddeaad718fde9d9056119ef55311f541e0f8f5)

          Result = SUCCESS
          Jesse Glick : f9ddeaad718fde9d9056119ef55311f541e0f8f5
          Files :

          • core/pom.xml

          dogfood added a comment - Integrated in jenkins_main_trunk #2877 JENKINS-19192 Note. (Revision f9ddeaad718fde9d9056119ef55311f541e0f8f5) Result = SUCCESS Jesse Glick : f9ddeaad718fde9d9056119ef55311f541e0f8f5 Files : core/pom.xml

          Code changed in jenkins
          User: Jesse Glick
          Path:
          core/pom.xml
          http://jenkins-ci.org/commit/jenkins/53ce4f0fa74bc2c71cd249635452ade2c7118256
          Log:
          JENKINS-19192 Using JNR 3.0.1 which includes JNR-FFI 1.0.7; 1.0.6 has the backported fix for Guava #1505, the root cause.
          So this upgrade ought to prevent a recurrence of the issue in case some other code refers to JNR from the CLI.
          (As yet untested, and we do not especially want to send JNR over the CLI channel anyway for performance reasons.)

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: core/pom.xml http://jenkins-ci.org/commit/jenkins/53ce4f0fa74bc2c71cd249635452ade2c7118256 Log: JENKINS-19192 Using JNR 3.0.1 which includes JNR-FFI 1.0.7; 1.0.6 has the backported fix for Guava #1505, the root cause. So this upgrade ought to prevent a recurrence of the issue in case some other code refers to JNR from the CLI. (As yet untested, and we do not especially want to send JNR over the CLI channel anyway for performance reasons.)

          dogfood added a comment -

          Integrated in jenkins_main_trunk #2881
          JENKINS-19192 Using JNR 3.0.1 which includes JNR-FFI 1.0.7; 1.0.6 has the backported fix for Guava #1505, the root cause. (Revision 53ce4f0fa74bc2c71cd249635452ade2c7118256)

          Result = SUCCESS
          Jesse Glick : 53ce4f0fa74bc2c71cd249635452ade2c7118256
          Files :

          • core/pom.xml

          dogfood added a comment - Integrated in jenkins_main_trunk #2881 JENKINS-19192 Using JNR 3.0.1 which includes JNR-FFI 1.0.7; 1.0.6 has the backported fix for Guava #1505, the root cause. (Revision 53ce4f0fa74bc2c71cd249635452ade2c7118256) Result = SUCCESS Jesse Glick : 53ce4f0fa74bc2c71cd249635452ade2c7118256 Files : core/pom.xml

          Jesse Glick added a comment -

          53ce4f0fa74bc2c71cd249635452ade2c7118256 ought to be backported to 1.532.1 I think, as apparently the older version has a transitive SNAPSHOT dependency.

          Jesse Glick added a comment - 53ce4f0fa74bc2c71cd249635452ade2c7118256 ought to be backported to 1.532.1 I think, as apparently the older version has a transitive SNAPSHOT dependency.

          Code changed in jenkins
          User: Jesse Glick
          Path:
          core/pom.xml
          http://jenkins-ci.org/commit/jenkins/ca35f24293761dcf13541196e3340c5cf761a88f
          Log:
          JENKINS-19192 Using JNR 3.0.1 which includes JNR-FFI 1.0.7; 1.0.6 has the backported fix for Guava #1505, the root cause.
          So this upgrade ought to prevent a recurrence of the issue in case some other code refers to JNR from the CLI.
          (As yet untested, and we do not especially want to send JNR over the CLI channel anyway for performance reasons.)

          (cherry picked from commit 53ce4f0fa74bc2c71cd249635452ade2c7118256)

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: core/pom.xml http://jenkins-ci.org/commit/jenkins/ca35f24293761dcf13541196e3340c5cf761a88f Log: JENKINS-19192 Using JNR 3.0.1 which includes JNR-FFI 1.0.7; 1.0.6 has the backported fix for Guava #1505, the root cause. So this upgrade ought to prevent a recurrence of the issue in case some other code refers to JNR from the CLI. (As yet untested, and we do not especially want to send JNR over the CLI channel anyway for performance reasons.) (cherry picked from commit 53ce4f0fa74bc2c71cd249635452ade2c7118256)

          Code changed in jenkins
          User: Jesse Glick
          Path:
          core/pom.xml
          http://jenkins-ci.org/commit/jenkins/47c254aa32ef8f846f07a0200dee5b4bf10571c1
          Log:
          JENKINS-19192 Using JNR 3.0.1 which includes JNR-FFI 1.0.7; 1.0.6 has the backported fix for Guava #1505, the root cause.
          So this upgrade ought to prevent a recurrence of the issue in case some other code refers to JNR from the CLI.
          (As yet untested, and we do not especially want to send JNR over the CLI channel anyway for performance reasons.)

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: core/pom.xml http://jenkins-ci.org/commit/jenkins/47c254aa32ef8f846f07a0200dee5b4bf10571c1 Log: JENKINS-19192 Using JNR 3.0.1 which includes JNR-FFI 1.0.7; 1.0.6 has the backported fix for Guava #1505, the root cause. So this upgrade ought to prevent a recurrence of the issue in case some other code refers to JNR from the CLI. (As yet untested, and we do not especially want to send JNR over the CLI channel anyway for performance reasons.)

          dogfood added a comment -

          Integrated in jenkins_main_trunk #3715
          JENKINS-19192 Using JNR 3.0.1 which includes JNR-FFI 1.0.7; 1.0.6 has the backported fix for Guava #1505, the root cause. (Revision 47c254aa32ef8f846f07a0200dee5b4bf10571c1)

          Result = SUCCESS
          Jesse Glick : 47c254aa32ef8f846f07a0200dee5b4bf10571c1
          Files :

          • core/pom.xml

          dogfood added a comment - Integrated in jenkins_main_trunk #3715 JENKINS-19192 Using JNR 3.0.1 which includes JNR-FFI 1.0.7; 1.0.6 has the backported fix for Guava #1505, the root cause. (Revision 47c254aa32ef8f846f07a0200dee5b4bf10571c1) Result = SUCCESS Jesse Glick : 47c254aa32ef8f846f07a0200dee5b4bf10571c1 Files : core/pom.xml

            jglick Jesse Glick
            jglick Jesse Glick
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: