Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-2722

With an empty organization like this <organization/>, maven bundle plugin raises a NPE.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • maven-bundle-plugin-2.1.0
    • maven-bundle-plugin-2.3.5
    • Maven Bundle Plugin
    • None

    Description

      When the pom contains an empty organization like this <organization/>, maven bundle plugin raises a NPE.
      The pom must have a packaging 'bundle'.

      See trace:
      [INFO] [bundle:bundle]
      [ERROR] An internal error occurred
      java.lang.NullPointerException
      at java.util.Hashtable.put(Hashtable.java:394)
      at org.apache.felix.bundleplugin.BundlePlugin.getDefaultProperties(BundlePlugin.java:869)
      at org.apache.felix.bundleplugin.BundlePlugin.buildOSGiBundle(BundlePlugin.java:368)
      at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:284)
      at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:238)
      at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:229)
      at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:519)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
      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.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
      at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

      Attachments

        Activity

          People

            mcculls Stuart McCulloch
            chomats Stephane Chomat
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified