continuum-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maria Catherine Tan (JIRA)" <j...@codehaus.org>
Subject [jira] Closed: (CONTINUUM-2520) NullPointerException in org.apache.maven.continuum.notification.mail.MailContinuumNotifier
Date Tue, 15 Jun 2010 22:22:12 GMT

     [ http://jira.codehaus.org/browse/CONTINUUM-2520?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Maria Catherine Tan closed CONTINUUM-2520.
------------------------------------------

    Resolution: Fixed
      Assignee: Maria Catherine Tan

Fixed in r954720

> NullPointerException in org.apache.maven.continuum.notification.mail.MailContinuumNotifier
> ------------------------------------------------------------------------------------------
>
>                 Key: CONTINUUM-2520
>                 URL: http://jira.codehaus.org/browse/CONTINUUM-2520
>             Project: Continuum
>          Issue Type: Bug
>    Affects Versions: 1.4.0 (Beta)
>            Reporter: Stephen Coy
>            Assignee: Maria Catherine Tan
>            Priority: Critical
>             Fix For: 1.4.1 (Beta)
>
>         Attachments: MailContinuumNotifier-patch.txt
>
>
> This appears to be a regression caused by the addition of logging:
> 2010-05-09 22:37:24,974 [ajp-127.0.0.1-8009-23] INFO  org.apache.continuum.distributed.transport.master.MasterBuildAgentTransportServer
 - Prepare build finished for project (projectGroupId=12).
> 2010-05-09 22:37:25,118 [ajp-127.0.0.1-8009-23] ERROR org.apache.xmlrpc.server.XmlRpcStreamServer
 - execute: Error while performing request
> org.apache.xmlrpc.common.XmlRpcInvocationException: Failed to invoke method prepareBuildFinished
in class org.apache.continuum.distributed.transport.master.MasterBuildAgentTransportServer:
null
>         at org.apache.xmlrpc.server.ReflectiveXmlRpcHandler.invoke(ReflectiveXmlRpcHandler.java:126)
>         at org.apache.xmlrpc.server.ReflectiveXmlRpcHandler.execute(ReflectiveXmlRpcHandler.java:103)
>         at org.apache.xmlrpc.server.XmlRpcServerWorker.execute(XmlRpcServerWorker.java:43)
>         at org.apache.xmlrpc.server.XmlRpcServer.execute(XmlRpcServer.java:83)
>         at org.apache.xmlrpc.server.XmlRpcStreamServer.execute(XmlRpcStreamServer.java:191)
>         at org.apache.xmlrpc.webserver.XmlRpcServletServer.execute(XmlRpcServletServer.java:104)
>         at org.apache.xmlrpc.webserver.XmlRpcServlet.doPost(XmlRpcServlet.java:191)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
>         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 org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:416)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>         at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
>         at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>         at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>         at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
>         at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>         at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
>         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:235)
>         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>         at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
>         at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
>         at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
>         at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>         at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
>         at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:436)
>         at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:384)
>         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 org.apache.maven.continuum.notification.mail.MailContinuumNotifier.sendMessage(MailContinuumNotifier.java:254)
>         at org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.sendNotification(DefaultContinuumNotificationDispatcher.java:194)
>         at org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.sendNotification(DefaultContinuumNotificationDispatcher.java:176)
>         at org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.prepareBuildComplete(DefaultContinuumNotificationDispatcher.java:102)
>         at org.apache.continuum.builder.distributed.DefaultDistributedBuildService.prepareBuildFinished(DefaultDistributedBuildService.java:210)
>         at org.apache.continuum.distributed.transport.master.MasterBuildAgentTransportServer.prepareBuildFinished(MasterBuildAgentTransportServer.java:64)
>         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.apache.xmlrpc.server.ReflectiveXmlRpcHandler.invoke(ReflectiveXmlRpcHandler.java:112)
>         ... 42 more
> ### Eclipse Workspace Patch 1.0
> #P continuum-core
> Index: src/main/java/org/apache/maven/continuum/notification/mail/MailContinuumNotifier.java
> ===================================================================
> --- src/main/java/org/apache/maven/continuum/notification/mail/MailContinuumNotifier.java
(revision 941977)
> +++ src/main/java/org/apache/maven/continuum/notification/mail/MailContinuumNotifier.java
(working copy)
> @@ -251,8 +251,10 @@
>          Project project = context.getProject();
>          List<ProjectNotifier> notifiers = context.getNotifiers();
>          BuildResult build = context.getBuildResult();
> -        log.error( "br state="+build.getState() );
> -        log.error( "project state="+project.getState() );
> +        if (build != null)
> +        	log.error( "br state="+build.getState() );
> +        if (project != null)
> +        	log.error( "project state="+project.getState() );
>          BuildDefinition buildDefinition = context.getBuildDefinition();
>          ProjectScmRoot projectScmRoot = context.getProjectScmRoot();
>  

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

        

Mime
View raw message