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

NullPointerException when starting Karaf distribution for the first time with feature with non-osgi dependency

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0.2
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Windows 7, JDK 1.7, JDK 1.8, maven 3.2.3

      Description

      1. Create osgi bundle with any non-osgi dependency (e.g. PostgreSQL driver jar, which does not have osgi-fields in MANIFEST)
      2. Create pom for feature xml which installs the bundle from 1
      3. Create a custom karaf distribution which uses feature from 2
      4. mvn clean install succeeds
      5. Start Karaf: exits with NullPointerException:

      Error installing bundle listed in startup.properties with url: wrap:mvn:org.post
      gresql/postgresql/9.3-1102-jdbc4 and startlevel: 80
      Exception in thread "main" java.lang.NullPointerException
      at org.apache.karaf.main.Main.destroy(Main.java:517)
      at org.apache.karaf.main.Main.main(Main.java:173)

      6. Starting karaf again: Karaf starts, no errors

      See attached files to reproduce the error.
      With the attached project, the following commands will produce the error

      1. mvn clean install
      2. distro\target\assembly\bin\karaf.bat

        Attachments

        1. karaf-bug.zip
          11 kB
          Raphael Majeed

          Activity

            People

            • Assignee:
              jbonofre Jean-Baptiste Onofré
              Reporter:
              rwm Raphael Majeed
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: