Uploaded image for project: 'Nuxeo ECM Build/Test Environment'
  1. Nuxeo ECM Build/Test Environment
  2. NXBT-3659

Fix nApps Jenkins agent version to run with jdk11

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Jenkins X

      Description

      The napps Jenkins has auto upgraded to Jenkins 2.361.1 and is broken, we can see in the agent logs:

      Sep 19, 2022 2:36:37 PM hudson.remoting.jnlp.Main$CuiListener status                                                                                                                                    │
      │ INFO: Remote identity confirmed: ed:a8:83:09:2a:8d:1d:ec:e4:9c:66:dc:68:6e:6f:1c                                                                                                                        │
      │ Sep 19, 2022 2:36:37 PM hudson.remoting.jnlp.Main$CuiListener status                                                                                                                                    │
      │ INFO: Connected                                                                                                                                                                                         │
      │ Sep 19, 2022 2:36:37 PM hudson.remoting.UserRequest perform                                                                                                                                             │
      │ WARNING: LinkageError while performing UserRequest:hudson.slaves.SlaveComputer$SlaveVersion@2072aacd                                                                                                    │
      │ java.lang.UnsupportedClassVersionError: Failed to load hudson.slaves.SlaveComputer$SlaveVersion                                                                                                         │
      │     at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:387)                                                                                                                      │
      │     at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:309)                                                                                                                          │
      │     at java.lang.ClassLoader.loadClass(ClassLoader.java:419)                                                                                                                                            │
      │     at java.lang.ClassLoader.loadClass(ClassLoader.java:352)                                                                                                                                            │
      │     at java.lang.Class.forName0(Native Method)                                                                                                                                                          │
      │     at java.lang.Class.forName(Class.java:348)                                                                                                                                                          │
      │     at hudson.remoting.MultiClassLoaderSerializer$Input.resolveClass(MultiClassLoaderSerializer.java:132)                                                                                               │
      │     at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1923)                                                                                                                          │
      │     at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1806)                                                                                                                             │
      │     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2097)                                                                                                                        │
      │     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1625)                                                                                                                               │
      │     at java.io.ObjectInputStream.readObject(ObjectInputStream.java:465)                                                                                                                                 │
      │     at java.io.ObjectInputStream.readObject(ObjectInputStream.java:423)                                                                                                                                 │
      │     at hudson.remoting.UserRequest.deserialize(UserRequest.java:290)                                                                                                                                    │
      │     at hudson.remoting.UserRequest.perform(UserRequest.java:189)                                                                                                                                        │
      │     at hudson.remoting.UserRequest.perform(UserRequest.java:54)                                                                                                                                         │
      │     at hudson.remoting.Request$2.run(Request.java:369)                                                                                                                                                  │
      │     at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)                                                                                                          │
      │     at java.util.concurrent.FutureTask.run(FutureTask.java:266)                                                                                                                                         │
      │     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)                                                                                                                  │
      │     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)                                                                                                                  │
      │     at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:117)                                                                                                                                     │
      │     at java.lang.Thread.run(Thread.java:748)                                                                                                                                                            │
      │ Caused by: java.lang.UnsupportedClassVersionError: hudson/slaves/SlaveComputer$SlaveVersion has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of t │
      │     at java.lang.ClassLoader.defineClass1(Native Method)                                                                                                                                                │
      │     at java.lang.ClassLoader.defineClass(ClassLoader.java:757)                                                                                                                                          │
      │     at java.lang.ClassLoader.defineClass(ClassLoader.java:636)                                                                                                                                          │
      │     at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:385)                                                                                                                      │
      │     ... 22 more                                                                                                                                                                                         │
      │                                                                                                                                                                                                         │
      │ Sep 19, 2022 2:36:37 PM hudson.remoting.jnlp.Main$CuiListener status                                                                                                                                    │
      │ INFO: Terminated        
      

      Following https://www.jenkins.io/blog/2022/06/28/require-java-11/, we need to upgrade the jenkins agent image version to be able to work with the updated jenkins in the napps CI

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                PagerDuty