karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Emond (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KARAF-2261) Startup issues without kar file
Date Mon, 08 Apr 2013 20:21:17 GMT
Brian Emond created KARAF-2261:
----------------------------------

             Summary: Startup issues without kar file
                 Key: KARAF-2261
                 URL: https://issues.apache.org/jira/browse/KARAF-2261
             Project: Karaf
          Issue Type: Bug
          Components: karaf-core, karaf-kar, karaf-osgi
    Affects Versions: 2.3.1
         Environment: Windows 7
            Reporter: Brian Emond


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)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message