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

failed to Re-execute promotion if promotion builds plugin is disabled.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: promoted-builds-plugin
    • Labels:
      None
    • Environment:
      Promotion builds plugin 2.0
    • Similar Issues:

      Description

      Steps to reproduce.

      1. check "Promote builds when..." checkbox and configure promotion process.
      2. build job and promote build.
      3. uncheck "Promote builds when..."
      4. re-execute promotion.

      I got the following stack trace.

      
      説明 The server encountered an internal error () that prevented it from fulfilling this request.
      
      例外
      
      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$12.dispatch(MetaClass.java:373)
      	org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:561)
      	org.kohsuke.stapler.Stapler.invoke(Stapler.java:646)
      	org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:373)
      	org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:561)
      	org.kohsuke.stapler.Stapler.invoke(Stapler.java:646)
      	org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:373)
      	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.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(Unknown Source)
      	hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
      	net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:157)
      	net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:131)
      	net.bull.javamelody.PluginMonitoringFilter.doFilter(PluginMonitoringFilter.java:82)
      	org.jvnet.hudson.plugins.monitoring.HudsonMonitoringFilter.doFilter(HudsonMonitoringFilter.java:84)
      	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)
      
      原因
      
      java.lang.NullPointerException
      	hudson.plugins.promoted_builds.Status.doBuild(Status.java:272)
      	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	java.lang.reflect.Method.invoke(Method.java:597)
      	org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:282)
      	org.kohsuke.stapler.Function.bindAndInvoke(Function.java:149)
      	org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:88)
      	org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:103)
      	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.MetaClass$12.dispatch(MetaClass.java:373)
      	org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:561)
      	org.kohsuke.stapler.Stapler.invoke(Stapler.java:646)
      	org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:373)
      	org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:561)
      	org.kohsuke.stapler.Stapler.invoke(Stapler.java:646)
      	org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:373)
      	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.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(Unknown Source)
      	hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
      	net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:157)
      	net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:131)
      	net.bull.javamelody.PluginMonitoringFilter.doFilter(PluginMonitoringFilter.java:82)
      	org.jvnet.hudson.plugins.monitoring.HudsonMonitoringFilter.doFilter(HudsonMonitoringFilter.java:84)
      	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

            People

            • Assignee:
              sogabe sogabe
              Reporter:
              sogabe sogabe
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: