Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-4086

NPE in karaf-maven-plugin features-export-meta-data when there is no Manifest

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0.2
    • 4.0.3
    • karaf
    • None

    Description

      Even after my fix there is still a NPE as later the Attributes are expected.

      [ERROR] Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:4.0.3-SNAPSHOT:features-export-meta-data (features-add-to-repository) on project rcp-features-generator: Execution features-add-to-repository of goal org.apache.karaf.tooling:karaf-maven-plugin:4.0.3-SNAPSHOT:features-export-meta-data failed. NullPointerException -> [Help 1]
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:4.0.3-SNAPSHOT:features-export-meta-data (features-add-to-repository) on project rcp-features-generator: Execution features-add-to-repository of goal org.apache.karaf.tooling:karaf-maven-plugin:4.0.3-SNAPSHOT:features-export-meta-data 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:116)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
      at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
      at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
      at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
      at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:483)
      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 features-add-to-repository of goal org.apache.karaf.tooling:karaf-maven-plugin:4.0.3-SNAPSHOT:features-export-meta-data failed.
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:145)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
      ... 20 more
      Caused by: java.lang.NullPointerException
      at org.apache.karaf.tooling.features.ExportFeatureMetaDataMojo.getBundleSymbolicName(ExportFeatureMetaDataMojo.java:135)
      at org.apache.karaf.tooling.features.ExportFeatureMetaDataMojo.mergeFeatureOneVersion(ExportFeatureMetaDataMojo.java:110)
      at org.apache.karaf.tooling.features.ExportFeatureMetaDataMojo.execute(ExportFeatureMetaDataMojo.java:74)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
      ... 21 more

      Attachments

        Activity

          People

            cschneider Christian Schneider
            cschneider Christian Schneider
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: