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

Could not initialize class EventDispatcherFactory

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Trivial
    • Resolution: Fixed
    • Component/s: sse-gateway-plugin
    • Labels:
      None
    • Environment:
      Jenkins LTS 2.32.3
    • Similar Issues:

      Description

      a 500 error occasionally appears showing the error message: "Could not initialize class org.jenkinsci.plugins.ssegateway.sse.EventDispatcherFactory"

      A reload of the page always solves the issue.

      The logs show the complete stacktrace to be:

      java.lang.NoClassDefFoundError: Could not initialize class org.jenkinsci.plugins.ssegateway.sse.EventDispatcherFactory
      {{ at org.jenkinsci.plugins.ssegateway.sse.EventDispatcher$SSEHttpSessionListener.sessionDestroyed(EventDispatcher.java:384)}}
      {{ at jenkins.JenkinsHttpSessionListener.sessionDestroyed(JenkinsHttpSessionListener.java:63)}}
      {{ at org.eclipse.jetty.server.session.AbstractSessionManager.removeSession(AbstractSessionManager.java:775)}}
      {{ at org.eclipse.jetty.server.session.AbstractSession.invalidate(AbstractSession.java:326)}}
      {{ at org.eclipse.jetty.server.session.AbstractSession.access(AbstractSession.java:278)}}
      {{ at org.eclipse.jetty.server.session.AbstractSessionManager.access(AbstractSessionManager.java:173)}}
      {{ at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:164)}}
      {{ at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)}}
      {{ at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)}}
      {{ at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)}}
      {{ at org.eclipse.jetty.server.Server.handle(Server.java:499)}}
      {{ at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)}}
      {{ at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)}}
      {{ at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)}}
      {{ at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)}}
      {{ at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)}}
      {{ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)}}
      {{ at java.lang.Thread.run(Thread.java:745)}}

        Attachments

          Activity

          Hide
          tfennelly Tom FENNELLY added a comment -

          Thanks for reporting this. The issue here is really just a log being made at too high a severity level. I'll turn down the logging in this case to be a DEBUG log.

          This fix will be in v 1.16 of the plugin.

          Show
          tfennelly Tom FENNELLY added a comment - Thanks for reporting this. The issue here is really just a log being made at too high a severity level. I'll turn down the logging in this case to be a DEBUG log. This fix will be in v 1.16 of the plugin.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: tfennelly
          Path:
          src/main/java/org/jenkinsci/plugins/ssegateway/sse/EventDispatcher.java
          http://jenkins-ci.org/commit/sse-gateway-plugin/7a86ea949c5772ba450e89f034d41cc56da1545e
          Log:
          JENKINS-42611: don't throw exceptiosn in session cleanup

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: tfennelly Path: src/main/java/org/jenkinsci/plugins/ssegateway/sse/EventDispatcher.java http://jenkins-ci.org/commit/sse-gateway-plugin/7a86ea949c5772ba450e89f034d41cc56da1545e Log: JENKINS-42611 : don't throw exceptiosn in session cleanup
          Show
          tfennelly Tom FENNELLY added a comment - PR:  https://github.com/jenkinsci/sse-gateway-plugin/pull/19
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Tom Fennelly
          Path:
          src/main/java/org/jenkinsci/plugins/ssegateway/sse/EventDispatcher.java
          http://jenkins-ci.org/commit/sse-gateway-plugin/f911d2fe03d3c53704dc38669f662c65a04e48c6
          Log:
          JENKINS-42611: don't throw exceptiosn in session cleanup (#19)

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Tom Fennelly Path: src/main/java/org/jenkinsci/plugins/ssegateway/sse/EventDispatcher.java http://jenkins-ci.org/commit/sse-gateway-plugin/f911d2fe03d3c53704dc38669f662c65a04e48c6 Log: JENKINS-42611 : don't throw exceptiosn in session cleanup (#19)
          Hide
          tfennelly Tom FENNELLY added a comment -

          Fix will be in 1.16 of the plugin. I don't think this issue warrants a release on its own.

          Show
          tfennelly Tom FENNELLY added a comment - Fix will be in 1.16 of the plugin. I don't think this issue warrants a release on its own.
          Hide
          ollierob Ollie Robertshaw added a comment -

          We are getting this issue on logon attempts and it doesn't go away on refresh - please can you consider doing a release, it's been 9 months since the last! Thanks.

          Show
          ollierob Ollie Robertshaw added a comment - We are getting this issue on logon attempts and it doesn't go away on refresh - please can you consider doing a release, it's been 9 months since the last! Thanks.
          Hide
          docwhat Christian Höltje added a comment -

          Yeah Tom FENNELLY hasn't been around a while. 1.16 has been pending for more than a year.

          Show
          docwhat Christian Höltje added a comment - Yeah Tom FENNELLY hasn't been around a while. 1.16 has been pending for more than a year.

            People

            • Assignee:
              tfennelly Tom FENNELLY
              Reporter:
              emanuelez emanuelez
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: