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

CLI login command fails on Windows

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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

        Attachments

          Issue Links

            Activity

            Hide
            dogfood 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
            Show
            dogfood 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
            Hide
            jglick 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.

            Show
            jglick 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.
            Hide
            scm_issue_link 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)

            Show
            scm_issue_link 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)
            Hide
            scm_issue_link 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.)

            Show
            scm_issue_link 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.)
            Hide
            dogfood 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
            Show
            dogfood 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

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: