null pointer exception when parsing POM?

390 views
Skip to first unread message

Erik Verheul

unread,
Dec 7, 2013, 6:09:03 PM12/7/13
to jenkins...@googlegroups.com
Can you help me with this:

Started by user Erik Verheul
Building in workspace C:\.jenkins\jobs\Jenkins\workspace@2
Parsing POMs
[Jenkins] $ java -XX:MaxPermSize=256m -cp C:\.jenkins\plugins\maven-plugin\WEB-INF\lib\maven31-agent-1.4.jar;C:\.jenkins\tools\hudson.tasks.Maven_MavenInstallation\Maven_3.1.1\boot\plexus-classworlds-2.5.1.jar;C:\.jenkins\tools\hudson.tasks.Maven_MavenInstallation\Maven_3.1.1/conf/logging jenkins.maven3.agent.Maven31Main C:\.jenkins\tools\hudson.tasks.Maven_MavenInstallation\Maven_3.1.1 "C:\Program Files\Apache Software Foundation\Tomcat 7.0_Tomcat-7.0.47\webapps\jenkins\WEB-INF\lib\remoting-2.33.jar" C:\.jenkins\plugins\maven-plugin\WEB-INF\lib\maven31-interceptor-1.4.jar C:\.jenkins\plugins\maven-plugin\WEB-INF\lib\maven3-interceptor-commons-1.4.jar 50682
<===[JENKINS REMOTING CAPACITY]===>channel started
log4j:WARN No appenders could be found for logger (org.apache.commons.beanutils.converters.BooleanConverter).
log4j:WARN Please initialize the log4j system properly.
Executing Maven:  -B -f E:\repos\Jenkins\pom.xml -DskipTests=true -Dlicense.disableCheck
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] Jenkins main module
[INFO] Jenkins CLI
[INFO] Jenkins core
[INFO] Maven Integration plugin
[INFO] Jenkins war
[INFO] Test harness for Jenkins and plugins
[INFO] Jenkins UI sample plugin
[INFO] Jenkins plugin POM
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Jenkins main module 1.521-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-enforcer-plugin:1.0.1:enforce (enforce-maven) @ pom ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.0.1:display-info (display-info) @ pom ---
[INFO] Maven Version: 3.1.1
[INFO] JDK Version: 1.7.0_45 normalized as: 1.7.0-45
[INFO] OS Info: Arch: amd64 Family: windows Name: windows server 2012 Version: 6.2
[INFO] 
[INFO] --- maven-enforcer-plugin:1.0.1:enforce (default) @ pom ---
[INFO] 
[INFO] --- build-helper-maven-plugin:1.7:timestamp-property (timestamp-property) @ pom ---
[INFO] Setting property 'now' to '12/07/2013 23:01 GMT'.
[INFO] 
[INFO] --- build-helper-maven-plugin:1.7:regex-property (version-property) @ pom ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Jenkins main module ............................... FAILURE [1.735s]
[INFO] Jenkins CLI ....................................... SKIPPED
[INFO] Jenkins core ...................................... SKIPPED
[INFO] Maven Integration plugin .......................... SKIPPED
[INFO] Jenkins war ....................................... SKIPPED
[INFO] Test harness for Jenkins and plugins .............. SKIPPED
[INFO] Jenkins UI sample plugin .......................... SKIPPED
[INFO] Jenkins plugin POM ................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.141s
[INFO] Finished at: Sun Dec 08 00:01:22 CET 2013
[INFO] Final Memory: 18M/309M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:build-helper-maven-plugin:1.7:regex-property (version-property) on project pom: Execution version-property of goal org.codehaus.mojo:build-helper-maven-plugin:1.7:regex-property failed: Illegal group reference -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
[JENKINS] Archiving E:\repos\Jenkins\maven-plugin\pom.xml to org.jenkins-ci.main/maven-plugin/1.521-SNAPSHOT/maven-plugin-1.521-SNAPSHOT.pom
E:/repos/Jenkins/maven-plugin/pom.xml is not inside C:/.jenkins/jobs/Jenkins/workspace@2/; will archive in a separate pass
[JENKINS] Archiving E:\repos\Jenkins\ui-samples-plugin\pom.xml to org.jenkins-ci.main/ui-samples-plugin/1.521-SNAPSHOT/ui-samples-plugin-1.521-SNAPSHOT.pom
E:/repos/Jenkins/ui-samples-plugin/pom.xml is not inside C:/.jenkins/jobs/Jenkins/workspace@2/; will archive in a separate pass
[JENKINS] Archiving E:\repos\Jenkins\pom.xml to org.jenkins-ci.main/pom/1.521-SNAPSHOT/pom-1.521-SNAPSHOT.pom
[JENKINS] Archiving E:\repos\Jenkins\test\pom.xml to org.jenkins-ci.main/jenkins-test-harness/1.521-SNAPSHOT/jenkins-test-harness-1.521-SNAPSHOT.pom
E:/repos/Jenkins/test/pom.xml is not inside C:/.jenkins/jobs/Jenkins/workspace@2/; will archive in a separate pass
[JENKINS] Archiving E:\repos\Jenkins\cli\pom.xml to org.jenkins-ci.main/cli/1.521-SNAPSHOT/cli-1.521-SNAPSHOT.pom
E:/repos/Jenkins/cli/pom.xml is not inside C:/.jenkins/jobs/Jenkins/workspace@2/; will archive in a separate pass
[JENKINS] Archiving E:\repos\Jenkins\plugins\pom.xml to org.jenkins-ci.plugins/plugin/1.521-SNAPSHOT/plugin-1.521-SNAPSHOT.pom
E:/repos/Jenkins/plugins/pom.xml is not inside C:/.jenkins/jobs/Jenkins/workspace@2/; will archive in a separate pass
[JENKINS] Archiving E:\repos\Jenkins\war\pom.xml to org.jenkins-ci.main/jenkins-war/1.521-SNAPSHOT/jenkins-war-1.521-SNAPSHOT.pom
E:/repos/Jenkins/war/pom.xml is not inside C:/.jenkins/jobs/Jenkins/workspace@2/; will archive in a separate pass
[JENKINS] Archiving E:\repos\Jenkins\core\pom.xml to org.jenkins-ci.main/jenkins-core/1.521-SNAPSHOT/jenkins-core-1.521-SNAPSHOT.pom
E:/repos/Jenkins/core/pom.xml is not inside C:/.jenkins/jobs/Jenkins/workspace@2/; will archive in a separate pass
ERROR: Processing failed due to a bug in the code. Please report this to jenkins...@googlegroups.com
java.lang.NullPointerException
	at java.util.StringTokenizer.<init>(StringTokenizer.java:199)
	at java.util.StringTokenizer.<init>(StringTokenizer.java:236)
	at hudson.tasks.MailSender.createEmptyMail(MailSender.java:326)
	at hudson.tasks.MailSender.createFailureMail(MailSender.java:225)
	at hudson.tasks.MailSender.getMail(MailSender.java:152)
	at hudson.tasks.MailSender.execute(MailSender.java:100)
	at hudson.maven.reporters.MavenMailer.end(MavenMailer.java:56)
	at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:103)
	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:829)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:566)
	at hudson.model.Run.execute(Run.java:1677)
	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:509)
	at hudson.model.ResourceController.execute(ResourceController.java:88)
	at hudson.model.Executor.run(Executor.java:231)
project=hudson.maven.MavenModuleSet@556fd4c4[Jenkins]
project.getModules()=[hudson.maven.MavenModule@6281606d[Jenkins/org.jenkins-ci.main:cli][Jenkins/org.jenkins-ci.main:cli][relativePath:], hudson.maven.MavenModule@1be1c6a1[Jenkins/org.jenkins-ci.main:jenkins-core][Jenkins/org.jenkins-ci.main:jenkins-core][relativePath:], hudson.maven.MavenModule@3b78254[Jenkins/org.jenkins-ci.main:jenkins-test-harness][Jenkins/org.jenkins-ci.main:jenkins-test-harness][relativePath:], hudson.maven.MavenModule@4cd5ab4[Jenkins/org.jenkins-ci.main:jenkins-war][Jenkins/org.jenkins-ci.main:jenkins-war][relativePath:], hudson.maven.MavenModule@45fde1e2[Jenkins/org.jenkins-ci.main:maven-plugin][Jenkins/org.jenkins-ci.main:maven-plugin][relativePath:], hudson.maven.MavenModule@55692978[Jenkins/org.jenkins-ci.main:pom][Jenkins/org.jenkins-ci.main:pom][relativePath:E:\repos\Jenkins], hudson.maven.MavenModule@6b21b116[Jenkins/org.jenkins-ci.main:ui-samples-plugin][Jenkins/org.jenkins-ci.main:ui-samples-plugin][relativePath:], hudson.maven.MavenModule@70f1524c[J
enkins/org.jenkins-ci.plugins:plugin][Jenkins/org.jenkins-ci.plugins:plugin][relativePath:]]
project.getRootModule()=hudson.maven.MavenModule@55692978[Jenkins/org.jenkins-ci.main:pom][Jenkins/org.jenkins-ci.main:pom][relativePath:E:\repos\Jenkins]
FATAL: null
java.lang.NullPointerException
	at java.util.StringTokenizer.<init>(StringTokenizer.java:199)
	at java.util.StringTokenizer.<init>(StringTokenizer.java:236)
	at hudson.tasks.MailSender.createEmptyMail(MailSender.java:326)
	at hudson.tasks.MailSender.createFailureMail(MailSender.java:225)
	at hudson.tasks.MailSender.getMail(MailSender.java:152)
	at hudson.tasks.MailSender.execute(MailSender.java:100)
	at hudson.maven.reporters.MavenMailer.end(MavenMailer.java:56)
	at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:103)
	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:829)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:566)
	at hudson.model.Run.execute(Run.java:1677)
	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:509)
	at hudson.model.ResourceController.execute(ResourceController.java:88)
	at hudson.model.Executor.run(Executor.java:231)

thank you,
Erik

Stephane Odul

unread,
Dec 7, 2013, 11:00:57 PM12/7/13
to jenkins...@googlegroups.com
I have been experiencing the same issue twice in 24hs, always after an update to a pom.xml. In each case it was either due to a typo in the pom file (but Jenkins barfs ungracefully) or some dependency version mismatch in the tree (or looks like it).

Try to review your pom.xml, especially if yiou just updated it, see what you changed and if there are related tags or dependencies that could help fix that. The bottom line is that when your pom.xml file is 'clean' the error goes away.
Reply all
Reply to author
Forward
0 new messages