NullPointerException in org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:132)

392 views
Skip to first unread message

Alexander Dvorsky

unread,
Apr 21, 2015, 4:48:48 AM4/21/15
to jenkins...@googlegroups.com

Hi there,

 

Since this weekend we are encountering the following problem when we try to execute a maven project right after the SVN Update traces in the console output:

 

ERROR: Processing failed due to a bug in the code. Please report this to ...... jenkinsci google group.....

java.lang.RuntimeException: java.lang.NullPointerException

                at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:132)

                at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:926)

                at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:56)

                at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:167)

                at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:622)

                at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536)

                at hudson.model.Run.execute(Run.java:1741)

                at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)

                at hudson.model.ResourceController.execute(ResourceController.java:98)

                at hudson.model.Executor.run(Executor.java:374)

Caused by: java.lang.NullPointerException

                at org.jfrog.hudson.util.ExtractorUtils.setResolverInfo(ExtractorUtils.java:184)

                at org.jfrog.hudson.util.ExtractorUtils.addBuilderInfoArguments(ExtractorUtils.java:150)

                at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:128)

                ... 9 more

project=hudson.maven.MavenModuleSet@49bcf9f0[3.8-IAS-Inc-Webadmin]

project.getModules()=[hudson.maven.MavenModule@3252a7b0[3.8-IAS-Inc-Webadmin/com.vasco:webadmin][3.8-IAS-Inc-Webadmin/com.vasco:webadmin][relativePath:]]

project.getRootModule()=hudson.maven.MavenModule@3252a7b0[3.8-IAS-Inc-Webadmin/com.vasco:webadmin][3.8-IAS-Inc-Webadmin/com.vasco:webadmin][relativePath:]

FATAL: java.lang.NullPointerException

java.lang.RuntimeException: java.lang.NullPointerException

                at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:132)

                at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:926)

                at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:56)

                at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:167)

                at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:622)

                at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536)

                at hudson.model.Run.execute(Run.java:1741)

                at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)

                at hudson.model.ResourceController.execute(ResourceController.java:98)

                at hudson.model.Executor.run(Executor.java:374)

Caused by: java.lang.NullPointerException

                at org.jfrog.hudson.util.ExtractorUtils.setResolverInfo(ExtractorUtils.java:184)

                at org.jfrog.hudson.util.ExtractorUtils.addBuilderInfoArguments(ExtractorUtils.java:150)

                at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:128)

                ... 9 more

 

I have never seen an error like this. Even our java guy is out of ideas…

Have anyone of you encountered something like this and know how to "revive" my Maven Jobs?


best regards,

Alexander D.

John Lemp

unread,
May 21, 2015, 4:09:05 PM5/21/15
to jenkins...@googlegroups.com
Not sure if it is the same issue but we had the same error after upgrading Jenkins and the artifactory plugin. The project settings for the Artifactory plugin had no/empty values for "Resolution releases repository" and "Resolution snapshots repository". After we set those values it worked.
...

Kanstantsin Shautsou

unread,
May 28, 2015, 5:00:37 PM5/28/15
to jenkins...@googlegroups.com
NPE is always a bug, please fill issue for artifactory-plugin component 

Daniel Beck

unread,
May 31, 2015, 2:43:41 PM5/31/15
to jenkins...@googlegroups.com
Looks a lot like JENKINS-27461.
> --
> You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/95d3d71c-9802-4c96-880a-2c3a1f7e6f1c%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages