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

Null pointer exception logged by monitoring plugin

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Fixed but Unreleased (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: monitoring-plugin
    • Labels:
      None
    • Environment:
      Jenkins 2.249.2
      Monitoring plugin 1.86.0
    • Similar Issues:

      Description

      The monitoring plugin reports a null pointer exception in my Jenkins 2.249.2 logs. The exception stack trace looks like this:

      java.lang.NullPointerException
              at net.bull.javamelody.internal.web.html.HtmlAbstractReport.getCsrfTokenUrlPart(HtmlAbstractReport.java:199)
              at net.bull.javamelody.internal.web.html.HtmlCoreReport.writeSystemActionsLinks(HtmlCoreReport.java:734)
              at net.bull.javamelody.internal.web.html.HtmlCoreReport.toHtml(HtmlCoreReport.java:129)
              at net.bull.javamelody.internal.web.html.HtmlReport.writeLastShutdown(HtmlReport.java:109)
              at net.bull.javamelody.internal.web.HtmlController.writeHtmlToLastShutdownFile(HtmlController.java:381)
              at net.bull.javamelody.internal.web.MonitoringController.writeHtmlToLastShutdownFile(MonitoringController.java:291)
              at net.bull.javamelody.FilterContext.destroy(FilterContext.java:457)
              at net.bull.javamelody.MonitoringFilter.destroy(MonitoringFilter.java:176)
              at net.bull.javamelody.PluginMonitoringFilter.destroy(PluginMonitoringFilter.java:74)
              at hudson.util.PluginServletFilter.cleanUp(PluginServletFilter.java:181)
              at jenkins.model.Jenkins._cleanUpPluginServletFilters(Jenkins.java:3746)
              at jenkins.model.Jenkins.cleanUp(Jenkins.java:3439)
              at hudson.lifecycle.UnixLifecycle.restart(UnixLifecycle.java:70)
              at jenkins.model.Jenkins$22.run(Jenkins.java:4326)
      

      I don't know the detailed steps that cause the null pointer exception, but the Docker image that shows the exception is defined in my docker-lfs repository

        Attachments

          Activity

          Hide
          evernat evernat added a comment -

          Thanks for the issue.
          This is when shutting down Jenkins.

          It is fixed in javamelody: https://github.com/javamelody/javamelody/commit/ced58bc
          and ready for the next release (1.87)

          Show
          evernat evernat added a comment - Thanks for the issue. This is when shutting down Jenkins. It is fixed in javamelody: https://github.com/javamelody/javamelody/commit/ced58bc and ready for the next release (1.87)

            People

            Assignee:
            evernat evernat
            Reporter:
            markewaite Mark Waite
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: