java.lang.ClassCircularityError: hudson/logging/LogRecorder

Jenkins JIRA | Yoann Dubreuil | 2 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    With support bundle plugin installed, when I create a new logger and let the logger classname field empty, Jenkins crashes when I click Save button. On save, Jenkins starts to write tons of exception logs and is not responsible anymore. Killing the JVM is the only way to stop it doing this. Logged exception looks like this one: {code} Exception in thread "RequestHandlerThread[#10]" java.lang.ClassCircularityError: hudson/logging/LogRecorder at com.cloudbees.jenkins.support.impl.JenkinsLogs$CustomHandler.publish(JenkinsLogs.java:507) 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 org.eclipse.jetty.util.log.JavaUtilLog.warn(JavaUtilLog.java:70) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:698) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77) 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:745) {code} On 1.580, faulty configuration is saved on disk. To restart the instance, faulty configuration file {{$JENKINS_HOME/log/<faulty>.xml}} must be removed. On 1.606, configuration is not saved, so restarting the instance works.

    Jenkins JIRA | 2 years ago | Yoann Dubreuil
    java.lang.ClassCircularityError: hudson/logging/LogRecorder
  2. 0

    With support bundle plugin installed, when I create a new logger and let the logger classname field empty, Jenkins crashes when I click Save button. On save, Jenkins starts to write tons of exception logs and is not responsible anymore. Killing the JVM is the only way to stop it doing this. Logged exception looks like this one: {code} Exception in thread "RequestHandlerThread[#10]" java.lang.ClassCircularityError: hudson/logging/LogRecorder at com.cloudbees.jenkins.support.impl.JenkinsLogs$CustomHandler.publish(JenkinsLogs.java:507) 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 org.eclipse.jetty.util.log.JavaUtilLog.warn(JavaUtilLog.java:70) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:698) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77) 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:745) {code} On 1.580, faulty configuration is saved on disk. To restart the instance, faulty configuration file {{$JENKINS_HOME/log/<faulty>.xml}} must be removed. On 1.606, configuration is not saved, so restarting the instance works.

    Jenkins JIRA | 2 years ago | Yoann Dubreuil
    java.lang.ClassCircularityError: hudson/logging/LogRecorder

    Root Cause Analysis

    1. java.lang.ClassCircularityError

      hudson/logging/LogRecorder

      at com.cloudbees.jenkins.support.impl.JenkinsLogs$CustomHandler.publish()
    2. com.cloudbees.jenkins
      JenkinsLogs$CustomHandler.publish
      1. com.cloudbees.jenkins.support.impl.JenkinsLogs$CustomHandler.publish(JenkinsLogs.java:507)
      1 frame
    3. Java RT
      Logger.log
      1. java.util.logging.Logger.log(Logger.java:616)
      2. java.util.logging.Logger.doLog(Logger.java:641)
      3. java.util.logging.Logger.log(Logger.java:730)
      3 frames
    4. Jetty
      JavaUtilLog.warn
      1. org.eclipse.jetty.util.log.JavaUtilLog.warn(JavaUtilLog.java:70)
      1 frame
    5. GWT dev
      SelectChannelEndPoint$1.run
      1. org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:698)
      2. org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
      2 frames
    6. winstone
      BoundedExecutorService$1.run
      1. winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
      1 frame
    7. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames