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

Linux agent installer does not work on Java 11

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Not A Defect
    • core

    Description

      While testing JENKINS-57071 I noticed that the installers do not work at all when the agent is run on Java 11:

      SEVERE: Failed to load Jenkins.class
      java.lang.NoClassDefFoundError: Bootstrap pseudo-classloader disabled: java.sql.Date via null
              at org.apache.commons.beanutils.ConvertUtilsBean.class$(ConvertUtilsBean.java:157)
              at org.apache.commons.beanutils.ConvertUtilsBean.registerOther(ConvertUtilsBean.java:708)
              at org.apache.commons.beanutils.ConvertUtilsBean.deregister(ConvertUtilsBean.java:580)
              at org.apache.commons.beanutils.ConvertUtilsBean.<init>(ConvertUtilsBean.java:164)
              at org.kohsuke.stapler.Stapler.<clinit>(Stapler.java:1065)
              at hudson.model.Node$Mode.<clinit>(Node.java:597)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.base/java.lang.reflect.Method.invoke(Method.java:566)
              at java.base/java.lang.Class.getEnumConstantsShared(Class.java:3554)
              at java.base/java.lang.Class.getEnumConstants(Class.java:3530)
              at jenkins.model.Jenkins.<clinit>(Jenkins.java:5248)
              at hudson.model.Computer.<clinit>(Computer.java:1772)
              at hudson.os.SU$UnixSu.start(SU.java:166)
              at hudson.os.SU.start(SU.java:97)
              at hudson.os.SU.execute(SU.java:128)
              at org.jenkinsci.modules.systemd_slave_installer.SystemdSlaveInstaller.install(SystemdSlaveInstaller.java:48)
              at org.jenkinsci.modules.slave_installer.impl.InstallerGui$1$1$1.run(InstallerGui.java:108)
      

      Attachments

        Issue Links

          Activity

            basil Basil Crow added a comment -

            jglick Do you have a link to code or documentation for this Linux agent installer? I've never heard of it and have no idea what it does or how to test it.

            basil Basil Crow added a comment - jglick Do you have a link to code or documentation for this Linux agent installer? I've never heard of it and have no idea what it does or how to test it.
            jglick Jesse Glick added a comment -

            When an inbound agent is launched using the Java Web Start GUI, an extension point is activated which sends code to the agent adding a menu item letting you install the agent as a service. Not something that is often used, I suppose, and if we drop JWS support altogether (Java 11 no longer bundles it, though you can download a third-party kit) then there would be no more GUI-mode agent and we could delete the agent installer modules altogether. Discussion: https://github.com/jenkinsci/remoting/pull/507#issuecomment-1030341067

            jglick Jesse Glick added a comment - When an inbound agent is launched using the Java Web Start GUI, an extension point is activated which sends code to the agent adding a menu item letting you install the agent as a service. Not something that is often used, I suppose, and if we drop JWS support altogether (Java 11 no longer bundles it, though you can download a third-party kit) then there would be no more GUI-mode agent and we could delete the agent installer modules altogether. Discussion: https://github.com/jenkinsci/remoting/pull/507#issuecomment-1030341067
            basil Basil Crow added a comment -

            As of JENKINS-51820, there is no longer a Linux agent installer to speak of.

            basil Basil Crow added a comment - As of JENKINS-51820 , there is no longer a Linux agent installer to speak of.

            People

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

              Dates

                Created:
                Updated:
                Resolved: