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

NULLPOINTER exception on build 1.395 when saving configuration

      after upgrading to 1.395 started running into this issue. right before that ..there was a crash with the promoted-build plugin when passing in "-" in the name.
      Status Code: 500

      Exception:
      Stacktrace:
      java.lang.NullPointerException
      at hudson.model.Descriptor.getJsonSafeClassName(Descriptor.java:451)
      at hudson.util.DescribableList.rebuild(DescribableList.java:144)
      at hudson.model.Project.submit(Project.java:197)
      at hudson.model.FreeStyleProject.submit(FreeStyleProject.java:99)
      at hudson.model.Job.doConfigSubmit(Job.java:961)
      at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:620)
      at sun.reflect.GeneratedMethodAccessor949.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:282)
      at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:149)
      at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:88)
      at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:102)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:562)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:640)
      at org.kohsuke.stapler.MetaClass$7.doDispatch(MetaClass.java:242)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:562)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:640)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:478)
      at org.kohsuke.stapler.Stapler.service(Stapler.java:160)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
      at winstone.ServletConfiguration.execute(ServletConfiguration.java:249)
      at winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
      at hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:52)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:97)
      at hudson.plugins.audit_trail.AuditTrailFilter.doFilter(AuditTrailFilter.java:64)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:97)
      at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
      at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
      at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
      at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
      at java.lang.Thread.run(Thread.java:680)

      Generated by Winstone Servlet Engine v0.9.10 at Wed Feb 23 13:27:42 PST 2011

          [JENKINS-8866] NULLPOINTER exception on build 1.395 when saving configuration

          vince villanueva created issue -

          sogabe added a comment -

          Which version of the promoted builds plugin are you using?

          sogabe added a comment - Which version of the promoted builds plugin are you using?

          1.5 of promoted plugin

          vince villanueva added a comment - 1.5 of promoted plugin

          sorry... its 1.11

          vince villanueva added a comment - sorry... its 1.11

          ive since downgraded to multiple version both hudson and the plugins and still the problem exists.

          can anyone help ? the worst thing that has happened is that it actually deleted the configuration.
          other side effect is that it doesnt save any change after the build/shell tasks, like email address changes.

          any help would be appreciated.

          vince villanueva added a comment - ive since downgraded to multiple version both hudson and the plugins and still the problem exists. can anyone help ? the worst thing that has happened is that it actually deleted the configuration. other side effect is that it doesnt save any change after the build/shell tasks, like email address changes. any help would be appreciated.

          We're actually seeing the exact same error after upgrading from Hudson to Jenkins whenever we attempt to configure any of our projects. We're not using the promoted-build plugin, as far as I know. This is really hard for us because we can't configure email notification on failed builds now.

          Derek Chen-Becker added a comment - We're actually seeing the exact same error after upgrading from Hudson to Jenkins whenever we attempt to configure any of our projects. We're not using the promoted-build plugin, as far as I know. This is really hard for us because we can't configure email notification on failed builds now.

          Also, this is Jenkins 1.399 (now, was 1.396 earlier this week) on Ubuntu 8.04.

          Derek Chen-Becker added a comment - Also, this is Jenkins 1.399 (now, was 1.396 earlier this week) on Ubuntu 8.04.

          Last comment for tonight: The stack trace below is for a Freestyle project (we see the same trace with our SBT projects), but we also see a similar trace and the NPE if we try to configure our existing Maven2 projects.

          Derek Chen-Becker added a comment - Last comment for tonight: The stack trace below is for a Freestyle project (we see the same trace with our SBT projects), but we also see a similar trace and the NPE if we try to configure our existing Maven2 projects.

          my hunch is that the main config.xml was modified during the upgrade and is now corrupted. any project that you go to configure..whether or not you make a change will get this error on "submit".

          vince villanueva added a comment - my hunch is that the main config.xml was modified during the upgrade and is now corrupted. any project that you go to configure..whether or not you make a change will get this error on "submit".

          I'd be happy to post the master config.xml as well as those for my projects if that would help diagnose it.

          Derek Chen-Becker added a comment - I'd be happy to post the master config.xml as well as those for my projects if that would help diagnose it.

            Unassigned Unassigned
            firstaudio vince villanueva
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: