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

Stack Trace displayed when creating a new view in a nested view

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Component/s: nested-view-plugin
    • Labels:
      None
    • Environment:
      Tested on Jenkins ver. 1.417 and Nested View version 1.7
    • Similar Issues:

      Description

      It all works fine but there is a stack trace being displayed when attempting to add a new view in a nested view.

      Steps:

      • create a nested view
      • click on "New View" (url is .../<view>/newView)
      • type the name of the view
      • attempt to click on any of the radio button (which seems to have their text highlighted)
      • The stack trace is displayed
      • click again on the radio button, this time it works
      • click ok to save (it works and the view is created)
      HTTP Status 500 -
      
      type Exception report
      
      message
      
      description The server encountered an internal error () that prevented it from fulfilling this request.
      
      exception
      
      javax.servlet.ServletException: java.lang.NullPointerException
      	org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:603)
      	org.kohsuke.stapler.Stapler.invoke(Stapler.java:646)
      	org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:233)
      	org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      	org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:561)
      	org.kohsuke.stapler.Stapler.invoke(Stapler.java:646)
      	org.kohsuke.stapler.Stapler.invoke(Stapler.java:477)
      	org.kohsuke.stapler.Stapler.service(Stapler.java:159)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      	hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
      	hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:52)
      	hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:97)
      	hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
      	hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
      	hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      	hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
      	hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
      	hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
      	hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
      	hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
      	hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)
      	hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
      	hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66)
      	hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      	hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
      	hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
      
      root cause
      
      java.lang.NullPointerException
      	hudson.model.View.getDynamic(View.java:391)
      	sun.reflect.GeneratedMethodAccessor240.invoke(Unknown Source)
      	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	java.lang.reflect.Method.invoke(Method.java:616)
      	org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:282)
      	org.kohsuke.stapler.Function.bindAndInvoke(Function.java:149)
      	org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:371)
      	org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:561)
      	org.kohsuke.stapler.Stapler.invoke(Stapler.java:646)
      	org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:233)
      	org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      	org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:561)
      	org.kohsuke.stapler.Stapler.invoke(Stapler.java:646)
      	org.kohsuke.stapler.Stapler.invoke(Stapler.java:477)
      	org.kohsuke.stapler.Stapler.service(Stapler.java:159)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      	hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
      	hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:52)
      	hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:97)
      	hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
      	hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
      	hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      	hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
      	hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
      	hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
      	hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
      	hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
      	hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)
      	hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
      	hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66)
      	hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      	hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      	hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
      	hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
      

        Attachments

          Activity

          Hide
          mindless Alan Harder added a comment -

          I haven't been able to see this.. can you try on the latest Jenkins?
          (I do see a 404 Not Found and stack trace shown right in the browser, below the View Name box.. fix for this already in place for the next release... but I haven't been able to see any NPE from View.getDynamic)

          Show
          mindless Alan Harder added a comment - I haven't been able to see this.. can you try on the latest Jenkins? (I do see a 404 Not Found and stack trace shown right in the browser, below the View Name box.. fix for this already in place for the next release... but I haven't been able to see any NPE from View.getDynamic)
          Hide
          pmorel Pierre Morel added a comment -

          I can confirm that the issue can no longer been reproduced on the latest version of jenkins (I've tested with 1.421).

          Show
          pmorel Pierre Morel added a comment - I can confirm that the issue can no longer been reproduced on the latest version of jenkins (I've tested with 1.421).

            People

            • Assignee:
              mindless Alan Harder
              Reporter:
              pmorel Pierre Morel
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: