[BAP-302] Maven build throws NPE in a specific scenario Created: 15/Oct/15  Updated: 26/Oct/15  Resolved: 26/Oct/15

Status: Resolved
Project: Bamboo Artifactory Plug-in
Component/s: None
Affects Version/s: 1.8.1
Fix Version/s: 1.8.2

Type: Bug Priority: Normal
Reporter: Aviad Shikloshi (Inactive) Assignee: Aviad Shikloshi (Inactive)
Resolution: Fixed Votes: 1
Labels: None

Issue Links:
Relationship
is related to MAP-58 BuildInfo extractor throws NPE in som... Resolved

 Description   
org.apache.maven.InternalErrorException: Internal error: java.lang.NullPointerException
build	30-Aug-2015 09:30:06		at org.apache.maven.lifecycle.internal.builder.BuilderCommon.handleBuildError(BuilderCommon.java:147)
build	30-Aug-2015 09:30:06		at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:129)
build	30-Aug-2015 09:30:06		at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
build	30-Aug-2015 09:30:06		at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
build	30-Aug-2015 09:30:06		at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
build	30-Aug-2015 09:30:06		at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
build	30-Aug-2015 09:30:06		at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
build	30-Aug-2015 09:30:06		at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
build	30-Aug-2015 09:30:06		at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
build	30-Aug-2015 09:30:06		at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
build	30-Aug-2015 09:30:06		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
build	30-Aug-2015 09:30:06		at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
build	30-Aug-2015 09:30:06		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
build	30-Aug-2015 09:30:06		at java.lang.reflect.Method.invoke(Method.java:483)
build	30-Aug-2015 09:30:06		at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
build	30-Aug-2015 09:30:06		at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
build	30-Aug-2015 09:30:06		at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
build	30-Aug-2015 09:30:06		at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
build	30-Aug-2015 09:30:06	Caused by: java.lang.NullPointerException
build	30-Aug-2015 09:30:06		at org.jfrog.build.extractor.maven.BuildInfoRecorder.getExtension(BuildInfoRecorder.java:630)
build	30-Aug-2015 09:30:06		at org.jfrog.build.extractor.maven.BuildInfoRecorder.addDependenciesToCurrentModule(BuildInfoRecorder.java:614)
build	30-Aug-2015 09:30:06		at org.jfrog.build.extractor.maven.BuildInfoRecorder.addFilesToCurrentModule(BuildInfoRecorder.java:478)
build	30-Aug-2015 09:30:06		at org.jfrog.build.extractor.maven.BuildInfoRecorder.finalizeAndAddModule(BuildInfoRecorder.java:464)
build	30-Aug-2015 09:30:06		at org.jfrog.build.extractor.maven.BuildInfoRecorder.finalizeModule(BuildInfoRecorder.java:392)
build	30-Aug-2015 09:30:06		at org.jfrog.build.extractor.maven.BuildInfoRecorder.projectSucceeded(BuildInfoRecorder.java:210)
build	30-Aug-2015 09:30:06		at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:74)
build	30-Aug-2015 09:30:06		at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42)
build	30-Aug-2015 09:30:06		at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:125)
build	30-Aug-2015 09:30:06		... 16 more
build	30-Aug-2015 09:30:06	[ERROR] 
build	30-Aug-2015 09:30:06	[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
build	30-Aug-2015 09:30:06	[ERROR] Re-run Maven using the -X switch to enable full debug logging.
build	30-Aug-2015 09:30:06	[ERROR] 
build	30-Aug-2015 09:30:06	[ERROR] For more information about the errors and possible solutions, please read the following articles:
build	30-Aug-2015 09:30:06	[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorException


 Comments   
Comment by Aviad Shikloshi (Inactive) [ 15/Oct/15 ]

Fixed in maven extractor

Generated at Tue Oct 22 19:22:19 UTC 2019 using JIRA 7.6.16#76018-sha1:9ed376192612a49536ac834c64177a0fed6290f5.