Uploaded image for project: 'Bamboo Artifactory Plug-in'
  1. Bamboo Artifactory Plug-in
  2. BAP-302

Maven build throws NPE in a specific scenario

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 1.8.1
    • Fix Version/s: 1.8.2
    • Labels:
      None

      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
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                aviads Aviad Shikloshi (Inactive)
                Reporter:
                aviads Aviad Shikloshi (Inactive)
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: