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

NullPointer on TestTrend portlet

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I get the following stack trace with the recent version of the plugin.

      Status Code: 500
      
      Exception: java.lang.NullPointerException
      Stacktrace:
      javax.servlet.ServletException: java.lang.NullPointerException
      	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:616)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:659)
      	at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:203)
      	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:574)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:659)
      	at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241)
      	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:574)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:659)
      	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:625)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:659)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:488)
      	at org.kohsuke.stapler.Stapler.service(Stapler.java:162)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
      	at winstone.ServletConfiguration.execute(ServletConfiguration.java:248)
      	at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
      	at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:376)
      	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95)
      	at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:202)
      	at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:175)
      	at net.bull.javamelody.PluginMonitoringFilter.doFilter(PluginMonitoringFilter.java:86)
      	at org.jvnet.hudson.plugins.monitoring.HudsonMonitoringFilter.doFilter(HudsonMonitoringFilter.java:84)
      	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:98)
      	at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87)
      	at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      	at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      	at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
      	at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      	at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      	at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:63)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
      	at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66)
      	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      	at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
      	at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      	at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      	at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:50)
      	at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      	at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      	at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
      	at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      	at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      	at winstone.RequestDispatcher.forward(RequestDispatcher.java:331)
      	at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:215)
      	at winstone.RequestHandlerThread.run(RequestHandlerThread.java:138)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      	at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      	at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.NullPointerException
      	at hudson.plugins.view.dashboard.test.TestTrendChart.buildDataSet(TestTrendChart.java:212)
      	at hudson.plugins.view.dashboard.test.TestTrendChart.access$000(TestTrendChart.java:34)
      	at hudson.plugins.view.dashboard.test.TestTrendChart$2.createGraph(TestTrendChart.java:147)
      	at hudson.util.Graph.render(Graph.java:87)
      	at hudson.util.Graph.doPng(Graph.java:98)
      	at sun.reflect.GeneratedMethodAccessor411.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:288)
      	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:151)
      	at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:90)
      	at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:111)
      	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:574)
      	... 67 more
      
      

        Attachments

          Activity

          Hide
          lshatzer Larry Shatzer, Jr. added a comment -

          If I resave the view, it works fine. Looks like some option is not being defaulted in correctly when upgrading.

          Show
          lshatzer Larry Shatzer, Jr. added a comment - If I resave the view, it works fine. Looks like some option is not being defaulted in correctly when upgrading.
          Hide
          lshatzer Larry Shatzer, Jr. added a comment -

          With this workaround, lowering the Priority to the default instead of Critical.

          Show
          lshatzer Larry Shatzer, Jr. added a comment - With this workaround, lowering the Priority to the default instead of Critical.
          Hide
          mambu Marco Ambu added a comment -

          It usually happens when new parameters are added to the dashboard portlets during an upgrade. The only way I know is to edit and save it again.

          Show
          mambu Marco Ambu added a comment - It usually happens when new parameters are added to the dashboard portlets during an upgrade. The only way I know is to edit and save it again.
          Hide
          lshatzer Larry Shatzer, Jr. added a comment -

          The plugin should detect nulls on new parameters and default them then.

          Show
          lshatzer Larry Shatzer, Jr. added a comment - The plugin should detect nulls on new parameters and default them then.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Marco Ambu
          Path:
          src/main/java/hudson/plugins/view/dashboard/Dashboard.java
          src/main/java/hudson/plugins/view/dashboard/DashboardLog.java
          src/main/java/hudson/plugins/view/dashboard/DashboardPortlet.java
          src/main/java/hudson/plugins/view/dashboard/test/TestTrendChart.java
          src/main/resources/hudson/plugins/view/dashboard/Dashboard/main.jelly
          http://jenkins-ci.org/commit/dashboard-view-plugin/bb4a0b36fcb2fd45caa29d3ceeb5f22f9e14c02d
          Log:
          [Fixed JENKINS-14522] Checking for null display and setting to ALL by default.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Marco Ambu Path: src/main/java/hudson/plugins/view/dashboard/Dashboard.java src/main/java/hudson/plugins/view/dashboard/DashboardLog.java src/main/java/hudson/plugins/view/dashboard/DashboardPortlet.java src/main/java/hudson/plugins/view/dashboard/test/TestTrendChart.java src/main/resources/hudson/plugins/view/dashboard/Dashboard/main.jelly http://jenkins-ci.org/commit/dashboard-view-plugin/bb4a0b36fcb2fd45caa29d3ceeb5f22f9e14c02d Log: [Fixed JENKINS-14522] Checking for null display and setting to ALL by default.
          Hide
          mambu Marco Ambu added a comment -

          No exception thrown anymore, just a message printed to log:

          22-Jul-2012 10:36:18 hudson.plugins.view.dashboard.DashboardLog info
          INFO: [TestTrendChart] display is null - setting to ALL
          
          Show
          mambu Marco Ambu added a comment - No exception thrown anymore, just a message printed to log: 22-Jul-2012 10:36:18 hudson.plugins.view.dashboard.DashboardLog info INFO: [TestTrendChart] display is null - setting to ALL
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Marco Ambu
          Path:
          src/main/java/hudson/plugins/view/dashboard/test/TestTrendChart.java
          http://jenkins-ci.org/commit/dashboard-view-plugin/a6fa71fa1b57a3b243b31301cdd39a970eb7df05
          Log:
          Fixed issue JENKINS-14522 again as the NULL pointer exception was showing up again.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Marco Ambu Path: src/main/java/hudson/plugins/view/dashboard/test/TestTrendChart.java http://jenkins-ci.org/commit/dashboard-view-plugin/a6fa71fa1b57a3b243b31301cdd39a970eb7df05 Log: Fixed issue JENKINS-14522 again as the NULL pointer exception was showing up again.

            People

            • Assignee:
              mambu Marco Ambu
              Reporter:
              lshatzer Larry Shatzer, Jr.
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: