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

Jenkins 1.568 can not start when monitoring plugin is installed

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • monitoring-plugin
    • None

      After upgrading to Jenkins version 1.568 it can not start.
      The following is the last entry in the log file no matter how long I wait.

      Exception in thread "Thread-3" java.lang.ClassCircularityError: java/util/logging/LogRecord
      at net.bull.javamelody.LoggingHandler.publish(LoggingHandler.java:109)
      at java.util.logging.Logger.log(Logger.java:616)
      at java.util.logging.Logger.doLog(Logger.java:641)
      at java.util.logging.Logger.log(Logger.java:730)
      at winstone.Logger.logInternal(Logger.java:157)
      at winstone.Logger.log(Logger.java:165)

      Stopping Jenkins again and deleting file ./plugins/monitoring.jpi and folder ./plugins/monitoring/ allows me to get Jenkins running again, so that can work as a workaround

          [JENKINS-23442] Jenkins 1.568 can not start when monitoring plugin is installed

          Leung Wong added a comment -

          I have the same issue.
          I was running Jenkins 1.609.1 and then when I upgraded to 1.609.2.
          I could only start Jenkins again after I removed monitoring plugin.

          log4j:WARN No appenders could be found for logger (net.bull.javamelody).
          log4j:WARN Please initialize the log4j system properly.
          Exception in thread "pool-6-thread-8" java.lang.ClassCircularityError: java/util/logging/LogRecord
          at net.bull.javamelody.LoggingHandler.publish(LoggingHandler.java:109)
          at java.util.logging.Logger.log(Logger.java:610)
          at java.util.logging.Logger.doLog(Logger.java:631)
          at java.util.logging.Logger.log(Logger.java:720)
          at jenkins.InitReactorRunner$1.onTaskFailed(InitReactorRunner.java:71)
          at org.jvnet.hudson.reactor.ReactorListener$Aggregator.onTaskFailed(ReactorListener.java:99)
          at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
          at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
          at java.lang.Thread.run(Thread.java:744)

          Leung Wong added a comment - I have the same issue. I was running Jenkins 1.609.1 and then when I upgraded to 1.609.2. I could only start Jenkins again after I removed monitoring plugin. log4j:WARN No appenders could be found for logger (net.bull.javamelody). log4j:WARN Please initialize the log4j system properly. Exception in thread "pool-6-thread-8" java.lang.ClassCircularityError: java/util/logging/LogRecord at net.bull.javamelody.LoggingHandler.publish(LoggingHandler.java:109) at java.util.logging.Logger.log(Logger.java:610) at java.util.logging.Logger.doLog(Logger.java:631) at java.util.logging.Logger.log(Logger.java:720) at jenkins.InitReactorRunner$1.onTaskFailed(InitReactorRunner.java:71) at org.jvnet.hudson.reactor.ReactorListener$Aggregator.onTaskFailed(ReactorListener.java:99) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744)

          evernat added a comment -

          As said above, the monitoring plugin currently bundles the slf4j-api.
          Can you try a new build of the monitoring plugin without the slf4j-api?

          monitoring.hpi is attached and is the same as v1.56 except slf4j-api.
          You can install it in your Jenkins with Manage Jenkins / Manage plugins / Advanced / Upload plugin.

          evernat added a comment - As said above, the monitoring plugin currently bundles the slf4j-api. Can you try a new build of the monitoring plugin without the slf4j-api? monitoring.hpi is attached and is the same as v1.56 except slf4j-api. You can install it in your Jenkins with Manage Jenkins / Manage plugins / Advanced / Upload plugin.

          Christian Wutte added a comment - - edited

          I tried the attached monitoring.hpi file with Jenkins 1.618. Unfortunately the problem and the exception remains.

          Christian Wutte added a comment - - edited I tried the attached monitoring.hpi file with Jenkins 1.618. Unfortunately the problem and the exception remains.

          Problem is still occurring.

          moodysma moodysma added a comment - Problem is still occurring.

          evernat added a comment -

          After reading JENKINS-27669, perhaps it is needed to preload the java.util.logging.LogRecord class, before net.bull.javamelody.LoggingHandler.publish(...) is called.

          @jbrejner A possible cause triggering the issue for you may be that you have also the "Logging plugin" installed.

          evernat added a comment - After reading JENKINS-27669 , perhaps it is needed to preload the java.util.logging.LogRecord class, before net.bull.javamelody.LoggingHandler.publish(...) is called. @ jbrejner A possible cause triggering the issue for you may be that you have also the "Logging plugin" installed.

          Code changed in jenkins
          User: evernat
          Path:
          src/main/java/org/jvnet/hudson/plugins/monitoring/PluginImpl.java
          http://jenkins-ci.org/commit/monitoring-plugin/0ad60da0038048ca69672022e54434cb3c5c87a3
          Log:
          try to fix JENKINS-23442 (ClassCircularityError: java/util/logging/LogRecord)

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: evernat Path: src/main/java/org/jvnet/hudson/plugins/monitoring/PluginImpl.java http://jenkins-ci.org/commit/monitoring-plugin/0ad60da0038048ca69672022e54434cb3c5c87a3 Log: try to fix JENKINS-23442 (ClassCircularityError: java/util/logging/LogRecord)

          Jesse Glick added a comment -

          So now resolved/fixed?

          Jesse Glick added a comment - So now resolved/fixed?

          evernat added a comment -

          The code changed in the plugin is a tentative fix without having reproduced the issue myself.
          So, I would like a confirmation from a user before saying that it is fixed.

          To everyone:
          You can test the fix by downloading a nightly build here:
          https://javamelody.ci.cloudbees.com/job/jenkins%20plugin/ws/target/monitoring.hpi

          evernat added a comment - The code changed in the plugin is a tentative fix without having reproduced the issue myself. So, I would like a confirmation from a user before saying that it is fixed. To everyone: You can test the fix by downloading a nightly build here: https://javamelody.ci.cloudbees.com/job/jenkins%20plugin/ws/target/monitoring.hpi

          Anders Kielsholm added a comment - - edited

          It seems to be working for us, we had the same problem before. And now, after installing the snapshot it doesn't hang anymore (and we can acess /monitoring)

          Anders Kielsholm added a comment - - edited It seems to be working for us, we had the same problem before. And now, after installing the snapshot it doesn't hang anymore (and we can acess /monitoring)

          evernat added a comment -

          Thanks Anders for the confirmation.

          evernat added a comment - Thanks Anders for the confirmation.

            Unassigned Unassigned
            jbrejner Jens Brejner
            Votes:
            7 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:
              Resolved: