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

intermittent NoClassDefFoundError: Could not initialize class hudson.model.Hudson$MasterComputer

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Critical Critical
    • core
    • None
    • LTS 2.303.1

      About half of the times Jenkins fails to start.

      The web UI displays:

      java.lang.NoClassDefFoundError: Could not initialize class hudson.model.Hudson$MasterComputer
        at jenkins.model.Jenkins.createComputer(Jenkins.java:3222)
        at hudson.model.AbstractCIBase.createNewComputerForNode(AbstractCIBase.java:162)
        at hudson.model.AbstractCIBase.updateComputer(AbstractCIBase.java:148)
        at hudson.model.AbstractCIBase.access$000(AbstractCIBase.java:48)
        at hudson.model.AbstractCIBase$2.run(AbstractCIBase.java:254)
        at hudson.model.Queue._withLock(Queue.java:1398)
        at hudson.model.Queue.withLock(Queue.java:1274)
        at hudson.model.AbstractCIBase.updateComputerList(AbstractCIBase.java:240)
        at jenkins.model.Jenkins.updateComputerList(Jenkins.java:1670)
        at jenkins.model.Jenkins.<init>(Jenkins.java:1023)
        at hudson.model.Hudson.<init>(Hudson.java:86)
        at hudson.model.Hudson.<init>(Hudson.java:82)
        at hudson.WebAppMain$3.run(WebAppMain.java:298)
      Caused: hudson.util.HudsonFailedToLoad
        at hudson.WebAppMain$3.run(WebAppMain.java:312)
      

      The log contains dozens of exceptions and stacktraces.

      Restarting often resolves the problem until the next time the service is restarted.

      This occurred after upgrading from 2.263.3 to 2.303.1

      The server was already running with OpenJDK11. That has not changed.

       

      Even a successful start results in 82345 lines of logging including 86 to 279 exceptions

            Unassigned Unassigned
            bram_mertens Bram Mertens
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: