Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Hudson » Maven Plugin 3.0.1 with E-mail Notification NPE
Maven Plugin 3.0.1 with E-mail Notification NPE [message #1072258] Mon, 22 July 2013 08:06 Go to next message
Kai Zimmermann is currently offline Kai Zimmermann
Messages: 16
Registered: October 2012
Junior Member
In my maven3 job with E-mail Notification I got a NullPointerException after a successful build (code is stored in SVN). Sometimes an email is sent to a preconfigured address. But it is never sent an email to the people who have changed the code.


From build log:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:27.159s
[INFO] Finished at: Tue Jul 16 09:36:32 CEST 2013
[INFO] Final Memory: 19M/519M
[INFO] ------------------------------------------------------------------------
ERROR: Processing failed due to a bug in the code. Please report this to dev@hudson.java.net
java.lang.NullPointerException
project=MavenModuleSet[regular-***]
project.getModules()=[MavenModule[***][***][relativePath:]]
project.getRootModule()=MavenModule[***][***][relativePath:]
FATAL: null
java.lang.NullPointerException


Form hudson main log:

java.lang.NullPointerException
	at hudson.maven.MavenModule.getSubsidiaries(MavenModule.java:170)
	at hudson.maven.MavenModuleSetBuild$1.<init>(MavenModuleSetBuild.java:198)
	at hudson.maven.MavenModuleSetBuild.getChangeSetFor(MavenModuleSetBuild.java:190)
	at hudson.maven.FilteredChangeLogSet.<init>(FilteredChangeLogSet.java:51)
	at hudson.maven.MavenBuild.getChangeSet(MavenBuild.java:172)
	at hudson.model.AbstractBuild.hasParticipant(AbstractBuild.java:319)
	at hudson.model.User.getBuilds(User.java:368)
	at org.eclipse.hudson.init.InitialSetup$2$1.doRun(InitialSetup.java:299)
	at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:43)
	at java.util.TimerThread.mainLoop(Timer.java:534)
	at java.util.TimerThread.run(Timer.java:484)


Software stack:


  • Hudson: 3.0.1-b2
  • Hudson Maven3 Plugin 3.0.1
  • Hudson Subversion Plug-in 2.3.8-h-1
  • maven 3.0.4


Does anyone know a cause?

[Updated on: Tue, 23 July 2013 07:36]

Report message to a moderator

Re: Maven Plugin 3.0.1 with E-mail Notification NPE [message #1086515 is a reply to message #1072258] Wed, 14 August 2013 05:41 Go to previous messageGo to next message
Kai Zimmermann is currently offline Kai Zimmermann
Messages: 16
Registered: October 2012
Junior Member
I found in the jenkins history a bugfix which belongs to my problem: https://github.com/jenkinsci/jenkins/commit/a19afb186b2cef50862543618dd7fd12befafce6

After I removed the <parend><relativePath> Element I got another NPE:

java.lang.NullPointerException
at java.lang.String.startsWith(String.java:1433)
at java.lang.String.startsWith(String.java:1462)
at hudson.maven.MavenModuleSetBuild$1.isDescendantOf(MavenModuleSetBuild.java:227)
at hudson.maven.MavenModuleSetBuild$1.<init>(MavenModuleSetBuild.java:196)
at hudson.maven.MavenModuleSetBuild.getChangeSetFor(MavenModuleSetBuild.java:190)
at hudson.maven.FilteredChangeLogSet.<init>(FilteredChangeLogSet.java:51)

So I found the bugfix.

Can someone please migrate a large part of bugfixes of the maven plugin from jenkins to the hudson?
Re: Maven Plugin 3.0.1 with E-mail Notification NPE [message #1086516 is a reply to message #1086515] Wed, 14 August 2013 05:44 Go to previous message
Kai Zimmermann is currently offline Kai Zimmermann
Messages: 16
Registered: October 2012
Junior Member
Is this problem maybe related to

HTTP ERROR 500

Problem accessing /view/Dashboard/people/. Reason:

    Server Error
Caused by:

java.lang.NullPointerException
	at java.lang.String.startsWith(String.java:1433)
	at java.lang.String.startsWith(String.java:1462)
	at hudson.maven.MavenModuleSetBuild$1.isDescendantOf(MavenModuleSetBuild.java:227)
	at hudson.maven.MavenModuleSetBuild$1.<init>(MavenModuleSetBuild.java:196)
	at hudson.maven.MavenModuleSetBuild.getChangeSetFor(MavenModuleSetBuild.java:190)
	at hudson.maven.FilteredChangeLogSet.<init>(FilteredChangeLogSet.java:51)
	at hudson.maven.MavenBuild.getChangeSet(MavenBuild.java:172)
	at hudson.model.View$People.getUserInfo(View.java:504)
	at hudson.model.View$People.<init>(View.java:486)
	at hudson.model.View.getPeople(View.java:457)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:616)
	at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:274)
	at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:187)
	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:45)
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:565)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:650)
	at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:225)
	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:45)
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:565)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:650)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:481)
	at org.kohsuke.stapler.Stapler.service(Stapler.java:152)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:648)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1336)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:86)
	at org.hudsonci.servlets.internal.ServletRegistrationFilterAdapter.doFilter(ServletRegistrationFilterAdapter.java:162)
	at org.hudsonci.servlets.internal.ServletRegistrationFilterAdapter.doFilter(ServletRegistrationFilterAdapter.java:134)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:89)
	at org.hudsonci.servlets.internal.ServletRegistrationFilterAdapter.doFilter(ServletRegistrationFilterAdapter.java:162)
	at org.hudsonci.servlets.internal.ServletRegistrationFilterAdapter.doFilter(ServletRegistrationFilterAdapter.java:134)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:89)
	at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:206)
	at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:179)
	at net.bull.javamelody.PluginMonitoringFilter.doFilter(PluginMonitoringFilter.java:86)
	at org.jvnet.hudson.plugins.monitoring.HudsonMonitoringFilter.doFilter(HudsonMonitoringFilter.java:84)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:89)
	at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:78)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:81)
	at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:45)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
	at org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101)
	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
	at org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFilterHttp(AnonymousProcessingFilter.java:105)
	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
	at org.springframework.security.ui.rememberme.RememberMeProcessingFilter.doFilterHttp(RememberMeProcessingFilter.java:116)
	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
	at org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:278)
	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
	at org.springframework.security.ui.basicauth.BasicProcessingFilter.doFilterHttp(BasicProcessingFilter.java:174)
	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
	at org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235)
	at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
	at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:73)
	at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:157)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
	at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:70)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:453)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:534)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
	at org.eclipse.jetty.server.Server.handle(Server.java:365)
	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485)
	at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:926)
	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:988)
	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635)
	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:627)
	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:51)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
	at java.lang.Thread.run(Thread.java:679)
Previous Topic:${WORKSPACE} not resolved with Windows script build step
Next Topic:Loving the Team Concept but... problem with AD users
Goto Forum:
  


Current Time: Wed Aug 20 08:50:26 EDT 2014

Powered by FUDForum. Page generated in 0.11698 seconds