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

Startup issues without kar file

    XMLWordPrintableJSON

    Details

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

      Windows 7

      Description

      When my product/feature is bundled as a kar file, I can copy to deploy directory and start karaf successfully, with all bundles started correctly. When I take the contents of my kar file, and extract the jars into deploy and cfg files into etc, then karaf will fail on startup, and give error messages such as:

      In main loop, we have serious trouble: java.lang.RuntimeException: java.lang.InterruptedException
      java.lang.RuntimeException: java.lang.InterruptedException
      at org.apache.felix.fileinstall.internal.FileInstall.refresh(FileInstall.java:332)
      at org.apache.felix.fileinstall.internal.DirectoryWatcher.refresh(DirectoryWatcher.java:680)
      at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:496)
      at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:291)
      Caused by: java.lang.InterruptedException
      at java.lang.Object.wait(Native Method)
      at org.apache.felix.fileinstall.internal.FileInstall.refresh(FileInstall.java:330)
      ... 3 more
      org.apache.karaf.features.core[org.apache.karaf.features.internal.FeaturesServiceImpl] : Error installing boot features
      java.lang.NullPointerException
      at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1432)
      at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:72)
      at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1843)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
      at org.apache.karaf.features.internal.FeaturesServiceImpl.getOptionalImports(FeaturesServiceImpl.java:774)
      at org.apache.karaf.features.internal.FeaturesServiceImpl.findBundlesWithOptionalPackagesToRefresh(FeaturesServiceImpl.java:715)
      at org.apache.karaf.features.internal.FeaturesServiceImpl.findBundlesToRefresh(FeaturesServiceImpl.java:667)
      at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:428)
      at org.apache.karaf.features.internal.FeaturesServiceImpl$2.run(FeaturesServiceImpl.java:1150)
      org.apache.karaf.features.core[org.apache.karaf.features.internal.FeaturesServiceImpl] : Error persisting FeaturesService state
      java.lang.IllegalStateException: Invalid BundleContext.
      at org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:514)
      at org.apache.felix.framework.BundleContextImpl.getDataFile(BundleContextImpl.java:491)
      at org.apache.karaf.features.internal.FeaturesServiceImpl.saveState(FeaturesServiceImpl.java:1224)
      at org.apache.karaf.features.internal.FeaturesServiceImpl$2.run(FeaturesServiceImpl.java:1155)

        Attachments

        1. karaf.log.1
          1.00 MB
          Brian Emond
        2. telemetry.services.jms-broker.kar
          7.21 MB
          Brian Emond

          Activity

            People

            • Assignee:
              jbonofre Jean-Baptiste Onofré
              Reporter:
              brianemond Brian Emond
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: