[JIRA] Resolved: (HUDSON-4374) NullPointer while tagging a build

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[JIRA] Resolved: (HUDSON-4374) NullPointer while tagging a build

Hudson issues mailing list

     [ http://issues.hudson-ci.org/browse/HUDSON-4374?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

mindless resolved HUDSON-4374.
------------------------------

    Resolution: Fixed

r33087 | mindless | 2010-07-20 17:12:44 -0600 (Tue, 20 Jul 2010)
Changed paths:
   M /trunk/hudson/plugins/cvs/pom.xml
   M /trunk/hudson/plugins/cvs/src/main/java/hudson/scm/CVSSCM.java
   M /trunk/hudson/plugins/cvs/src/main/resources/hudson/scm/cvs/Messages.properties

[cvs] [FIXED HUDSON-4374] tagForm.jelly uses transitiveUpstreamBuilds to create the form
for "tag all upstream builds", but the code processing this used getUpstreamBuilds() to
locale the builds.. so it was possible for builds to not be found, resulting in NPE.
Changed processing to also use getTransitiveUpstreamBuilds, and also better handling
to avoid NPE if something really isn't found.


> NullPointer while tagging a build
> ---------------------------------
>
>                 Key: HUDSON-4374
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-4374
>             Project: Hudson
>          Issue Type: Bug
>          Components: cvs-tag
>    Affects Versions: current
>         Environment: Platform: PC, OS: Windows XP
>            Reporter: fernandor
>            Assignee: mindless
>            Priority: Blocker
>
> I'm getting this error when try to tag a build selecting the option "Tag all
> upstream builds at once".
> I'm using:
> - tomcat 6.0.18
> - Hudson 1.322.
> - I have 5 upstream builds to be tagged.
> java.lang.reflect.InvocationTargetException
> 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:185)
> at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:101)
> at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:54)
> at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:73)
> at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:485)
> at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:309)
> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:485)
> at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:309)
> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:485)
> at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:179)
> at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:485)
> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:403)
> at org.kohsuke.stapler.Stapler.service(Stapler.java:116)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
> at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:49)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 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
> hudson.security.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:112)
> at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
> at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
> at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:155)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> at java.lang.Thread.run(Thread.java:619)
> Caused by: java.lang.NullPointerException
> at hudson.scm.CVSSCM$TagAction.doSubmit(CVSSCM.java:1409)
> ... 53 more
> 02/09/2009 11:53:35 org.apache.catalina.core.StandardWrapperValve invoke
> SEVERE: Servlet.service() for servlet Stapler threw exception
> java.lang.NullPointerException
> at hudson.scm.CVSSCM$TagAction.doSubmit(CVSSCM.java:1409)
> 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:185)
> at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:101)
> at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:54)
> at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:73)
> at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:485)
> at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:309)
> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:485)
> at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:309)
> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:485)
> at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:179)
> at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:485)
> at org.kohsuke.stapler.Stapler.invoke(Stapler.java:403)
> at org.kohsuke.stapler.Stapler.service(Stapler.java:116)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
> at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:49)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 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
> hudson.security.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:112)
> at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
> at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
> at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:155)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> at java.lang.Thread.run(Thread.java:619)

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]