Maven Petals Plugin

A NPE occurs when trying to configure a JBI shared library

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 2.3.0
  • Fix Version/s: 2.4.0
  • Component/s: jbi-configure
  • Security Level: Public
  • Description:
    Hide

    Using the following Maven command with the a dummy POM file, the following NPE occurs when trying to configure a JBI shared library:

    mvn org.ow2.petals:maven-petals-plugin:2.3.0:jbi-configure -DgroupId=org.ow2.petals -DartifactId=petals-sl-activemq-5.3.0 -Dversion=1.0.0-SNAPSHOT -DjbiSharedLibrariesMappingFileURL=file:///tmp/jbi-shared-libraries-list-mapping-file.properties -DjbiVersionsMappingFileURL=file:///tmp/jbi-versions-mapping-file.properties -DjbiIdentifiersMappingFileURL=file:///tmp/jbi-identifiers-mapping-file.properties  -Dverbose=true -X
    
    ......
    
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 1.352s
    [INFO] Finished at: Wed Feb 12 17:01:03 CET 2014
    [INFO] Final Memory: 4M/75M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.ow2.petals:maven-petals-plugin:2.4.0-SNAPSHOT:jbi-configure (default-cli) on project foo-bar: Execution default-cli of goal org.ow2.petals:maven-petals-plugin:2.4.0-SNAPSHOT:jbi-configure failed. NullPointerException -> [Help 1]
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.ow2.petals:maven-petals-plugin:2.4.0-SNAPSHOT:jbi-configure (default-cli) on project foo-bar: Execution default-cli of goal org.ow2.petals:maven-petals-plugin:2.4.0-SNAPSHOT:jbi-configure failed.
    	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)
    	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
    	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
    	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
    	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
    	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
    	at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:597)
    	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
    Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-cli of goal org.ow2.petals:maven-petals-plugin:2.4.0-SNAPSHOT:jbi-configure failed.
    	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:115)
    	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
    	... 19 more
    Caused by: java.lang.NullPointerException
    	at org.ow2.petals.plugin.jbiplugin.util.ZipUtil.copyAndUpdateZipFile(ZipUtil.java:123)
    	at org.ow2.petals.plugin.jbiplugin.JBIConfigureMojo.configureSharedLibrary(JBIConfigureMojo.java:306)
    	at org.ow2.petals.plugin.jbiplugin.JBIConfigureMojo.executeMojo(JBIConfigureMojo.java:152)
    	at org.ow2.petals.plugin.jbiplugin.JBIAbstractMojo.execute(JBIAbstractMojo.java:270)
    	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
    	... 20 more
    Show
    Using the following Maven command with the a dummy POM file, the following NPE occurs when trying to configure a JBI shared library:
    mvn org.ow2.petals:maven-petals-plugin:2.3.0:jbi-configure -DgroupId=org.ow2.petals -DartifactId=petals-sl-activemq-5.3.0 -Dversion=1.0.0-SNAPSHOT -DjbiSharedLibrariesMappingFileURL=file:///tmp/jbi-shared-libraries-list-mapping-file.properties -DjbiVersionsMappingFileURL=file:///tmp/jbi-versions-mapping-file.properties -DjbiIdentifiersMappingFileURL=file:///tmp/jbi-identifiers-mapping-file.properties  -Dverbose=true -X
    
    ......
    
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 1.352s
    [INFO] Finished at: Wed Feb 12 17:01:03 CET 2014
    [INFO] Final Memory: 4M/75M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.ow2.petals:maven-petals-plugin:2.4.0-SNAPSHOT:jbi-configure (default-cli) on project foo-bar: Execution default-cli of goal org.ow2.petals:maven-petals-plugin:2.4.0-SNAPSHOT:jbi-configure failed. NullPointerException -> [Help 1]
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.ow2.petals:maven-petals-plugin:2.4.0-SNAPSHOT:jbi-configure (default-cli) on project foo-bar: Execution default-cli of goal org.ow2.petals:maven-petals-plugin:2.4.0-SNAPSHOT:jbi-configure failed.
    	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)
    	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
    	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
    	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
    	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
    	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
    	at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:597)
    	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
    Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-cli of goal org.ow2.petals:maven-petals-plugin:2.4.0-SNAPSHOT:jbi-configure failed.
    	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:115)
    	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
    	... 19 more
    Caused by: java.lang.NullPointerException
    	at org.ow2.petals.plugin.jbiplugin.util.ZipUtil.copyAndUpdateZipFile(ZipUtil.java:123)
    	at org.ow2.petals.plugin.jbiplugin.JBIConfigureMojo.configureSharedLibrary(JBIConfigureMojo.java:306)
    	at org.ow2.petals.plugin.jbiplugin.JBIConfigureMojo.executeMojo(JBIConfigureMojo.java:152)
    	at org.ow2.petals.plugin.jbiplugin.JBIAbstractMojo.execute(JBIAbstractMojo.java:270)
    	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
    	... 20 more
  • Environment:
    -

Activity

People

Dates

  • Created:
    Wed, 12 Feb 2014 - 17:08:33 +0100
    Updated:
    Wed, 12 Feb 2014 - 17:45:23 +0100
    Resolved:
    Wed, 12 Feb 2014 - 17:45:23 +0100