Karaf
  1. Karaf
  2. KARAF-670

Missing ${karaf.base}/system cause NullPointerException

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.2.2, 3.0.0
    • Component/s: karaf-core
    • Labels:
      None
    • Environment:

      running karaf via Talend Service Factory 2.4.0.0, Win7, Oracle JDK1.6.0.25

      Description

      I manually created an instance and set karaf.base to the new instance folder, but I forgot to create the folder $

      {karaf.base}

      /system. This missing folder died on dir.listFiles() in Main.findFiles(). That method checks theFile for existence, but its caller forgets to check bundleDir.

      Could not create framework: java.lang.NullPointerException
      java.lang.NullPointerException
      at org.apache.karaf.main.Main.findFile(Main.java:1063)
      at org.apache.karaf.main.Main.findFile(Main.java:1048)
      at org.apache.karaf.main.Main.processConfigurationProperties(Main.java:1014)
      at org.apache.karaf.main.Main.loadConfigProperties(Main.java:873)
      at org.apache.karaf.main.Main.launch(Main.java:225)
      at org.apache.karaf.main.Main.main(Main.java:416)
      Error occured shutting down framework: java.lang.NullPointerException
      java.lang.NullPointerException
      at org.apache.karaf.main.Main.awaitShutdown(Main.java:274)
      at org.apache.karaf.main.Main.main(Main.java:423)

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Jean-Baptiste Onofré
            Reporter:
            Chris Dolan
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development