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

Configuring a Join Trigger on a parameterized build causes NPE

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Labels:
      None
    • Environment:
      Windows Server 2003 R2 64-Bit
      Hudson (version 1.374)
      Join plugin (version 1.8)
      Hudson Parameterized Trigger plugin (version 2.4)

      Description

      If I activate the Join Trigger in the job configuration panel and select "Run post-build actions at join" Hudson gives an error 500 page with a NPE (see below). I've tried deactivating the "Hudson Copy Archiver Plug-in" (version 0.51) but the problem is still the same.

      Edit: I've tried to use Join plugin versions 1.5, 1.6 and 1.7 but the problem is still the same.

      java.lang.NullPointerException
      	at hudson.util.PersistedList.onModified(PersistedList.java:152)
      	at hudson.util.PersistedList.replaceBy(PersistedList.java:79)
      	at hudson.util.DescribableList.rebuild(DescribableList.java:151)
      	at join.JoinTrigger$DescriptorImpl.newInstance(JoinTrigger.java:145)
      	at join.JoinTrigger$DescriptorImpl.newInstance(JoinTrigger.java:122)
      	at hudson.util.DescribableList.rebuild(DescribableList.java:146)
      	at hudson.model.Project.submit(Project.java:198)
      	at hudson.model.FreeStyleProject.submit(FreeStyleProject.java:97)
      	at hudson.model.Job.doConfigSubmit(Job.java:1064)
      	at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:578)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	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:259)
      	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:126)
      	at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:65)
      	at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:79)
      	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:534)
      	at org.kohsuke.stapler.MetaClass$7.doDispatch(MetaClass.java:219)
      	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:534)
      	at org.kohsuke.stapler.MetaClass$7.doDispatch(MetaClass.java:219)
      	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:534)
      	at org.kohsuke.stapler.MetaClass$7.doDispatch(MetaClass.java:219)
      	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:534)
      	at org.kohsuke.stapler.MetaClass$7.doDispatch(MetaClass.java:219)
      	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:534)
      	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:450)
      	at org.kohsuke.stapler.Stapler.service(Stapler.java:132)
      	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.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.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 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: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:619)

        Activity

        Hide
        scm_issue_link SCM/JIRA link daemon added a comment -

        Code changed in hudson
        User: : wolfs
        Path:
        trunk/hudson/plugins/join/pom.xml
        trunk/hudson/plugins/join/src/main/java/join/JoinTrigger.java
        http://jenkins-ci.org/commit/34697
        Log:
        JENKINS-7344:

        • Fix issue by not using DescribableList.rebuild
        • added encoding UTF-8 in pom
        Show
        scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : wolfs Path: trunk/hudson/plugins/join/pom.xml trunk/hudson/plugins/join/src/main/java/join/JoinTrigger.java http://jenkins-ci.org/commit/34697 Log: JENKINS-7344 : Fix issue by not using DescribableList.rebuild added encoding UTF-8 in pom
        Hide
        ssplett ssplett added a comment - - edited

        Hello,

        I've compiled the changed code on a windows 64-bit platform and the NPE is gone.

        But parametrized projects won't be triggered anymore by the Join Trigger plugin.

        Show
        ssplett ssplett added a comment - - edited Hello, I've compiled the changed code on a windows 64-bit platform and the NPE is gone. But parametrized projects won't be triggered anymore by the Join Trigger plugin.
        Hide
        wolfs wolfs added a comment -

        Try checking out the latest version of the join plugin from svn and compile this version. It should be fixed there.

        Show
        wolfs wolfs added a comment - Try checking out the latest version of the join plugin from svn and compile this version. It should be fixed there.
        Hide
        wolfs wolfs added a comment -

        I just released version 1.9 of the join plugin. Please check if the issue is fixed there.

        Show
        wolfs wolfs added a comment - I just released version 1.9 of the join plugin. Please check if the issue is fixed there.
        Hide
        wolfs wolfs added a comment -

        Please check if the bug is fixed with 1.9. If yes, verify the issue, if not, reopen it.

        Show
        wolfs wolfs added a comment - Please check if the bug is fixed with 1.9. If yes, verify the issue, if not, reopen it.
        Hide
        ssplett ssplett added a comment -

        It is perfectly fixed. Thank you very much!!!

        Show
        ssplett ssplett added a comment - It is perfectly fixed. Thank you very much!!!

          People

          • Assignee:
            wolfs wolfs
            Reporter:
            ssplett ssplett
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: