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

NPE when installing a bundle with a MANIFEST.MF not in the first entry of the zip

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 2.1.0
    • None
    • None

    Description

      I don't think we should necesseraly support those jars, as it would force us to download the whole jar, but we should at least throw a meaningful exception

      java.lang.NullPointerException
      	at org.apache.karaf.features.internal.FeaturesServiceImpl.installBundleIfNeeded(FeaturesServiceImpl.java:560)
      	at org.apache.karaf.features.internal.FeaturesServiceImpl.doInstallFeature(FeaturesServiceImpl.java:401)
      	at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:246)
      	at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:235)
      	at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:231)
      	at org.apache.karaf.features.command.InstallFeatureCommand.doExecute(InstallFeatureCommand.java:51)
      	at org.apache.karaf.features.command.FeaturesCommandSupport.doExecute(FeaturesCommandSupport.java:39)
      	at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:41)
      	at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)
      	at org.apache.felix.gogo.runtime.shell.CommandProxy.execute(CommandProxy.java:50)
      	at org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:229)
      	at org.apache.felix.gogo.runtime.shell.Closure.executeStatement(Closure.java:162)
      	at org.apache.felix.gogo.runtime.shell.Pipe.run(Pipe.java:101)
      	at org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:79)
      	at org.apache.felix.gogo.runtime.shell.CommandSessionImpl.execute(CommandSessionImpl.java:71)
      	at org.apache.karaf.shell.console.jline.Console.run(Console.java:180)
      	at java.lang.Thread.run(Thread.java:637)
      

      Attachments

        1. manifest-not-found-patch.txt
          0.9 kB
          Ioannis Canellos

        Activity

          People

            gnodet Guillaume Nodet
            gnodet Guillaume Nodet
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: