karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré ...@nanthrax.net>
Subject Re: Odd error on custom distro
Date Sun, 16 Oct 2011 06:33:33 GMT
Hi Joel,

which files did you change your distro ?
Especially, did you change the org.apache.karaf.features.cfg, 
config.properties and startup.properties ?
Did you update the system repo (with add-features-to-repo goal for 
instance) ?

Regards
JB

On 10/14/2011 05:29 PM, Joel Schuster wrote:
> I’ve built up a custom distro of Karaf and I’m getting an odd error.
> Whenever I start up a new bundle I see the following errors. Two things
> of note: 1. the errors don’t seem to have any effect on functionality,
> everything still seems to work. 2. The errors will go away after
> shutting down and then starting again. So once the cache is in place it
> seems to work better.
>
> Thoughts?
>
> Here are the errors:
>
> karaf@root>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:365)
>
> at
> org.apache.felix.framework.BundleContextImpl.getDataFile(BundleContextImpl.java:347)
>
> at
> org.apache.karaf.features.internal.FeaturesServiceImpl.saveState(FeaturesServiceImpl.java:1046)
>
> at
> org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:407)
>
> at
> org.apache.karaf.features.internal.FeaturesServiceImpl$1.run(FeaturesServiceImpl.java:972)
>
> 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:365)
>
> at
> org.apache.felix.framework.BundleContextImpl.getDataFile(BundleContextImpl.java:347)
>
> at
> org.apache.karaf.features.internal.FeaturesServiceImpl.saveState(FeaturesServiceImpl.java:1046)
>
> at
> org.apache.karaf.features.internal.FeaturesServiceImpl$1.run(FeaturesServiceImpl.java:977)
>
> karaf@root>ERROR: Bundle org.apache.felix.framework [0] EventDispatcher:
> Error during dispatch. (java.lang.NoClassDefFoundError:
> org/osgi/framework/Fr
>
> ameworkEvent)
>
> java.lang.NoClassDefFoundError: org/osgi/framework/FrameworkEvent
>
> at
> org.apache.aries.util.internal.DefaultWorker.frameworkEvent(DefaultWorker.java:150)
>
> at
> org.apache.felix.framework.util.EventDispatcher.invokeFrameworkListenerCallback(EventDispatcher.java:774)
>
> at
> org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:725)
>
> at
> org.apache.felix.framework.util.EventDispatcher.run(EventDispatcher.java:949)
>
> at
> org.apache.felix.framework.util.EventDispatcher.access$000(EventDispatcher.java:54)
>
> at
> org.apache.felix.framework.util.EventDispatcher$1.run(EventDispatcher.java:106)
>
> at java.lang.Thread.run(Thread.java:662)
>
> ERROR: Bundle org.apache.felix.framework [0] EventDispatcher: Error
> during dispatch. (java.lang.NoClassDefFoundError:
> org/osgi/framework/FrameworkEven
>
> t)
>
> java.lang.NoClassDefFoundError: org/osgi/framework/FrameworkEvent
>
> at
> org.apache.aries.util.internal.DefaultWorker.frameworkEvent(DefaultWorker.java:150)
>
> at
> org.apache.felix.framework.util.EventDispatcher.invokeFrameworkListenerCallback(EventDispatcher.java:774)
>
> at
> org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:725)
>
> at
> org.apache.felix.framework.util.EventDispatcher.run(EventDispatcher.java:949)
>
> at
> org.apache.felix.framework.util.EventDispatcher.access$000(EventDispatcher.java:54)
>
> at
> org.apache.felix.framework.util.EventDispatcher$1.run(EventDispatcher.java:106)
>
> at java.lang.Thread.run(Thread.java:662)
>
> ERROR: Bundle org.apache.felix.framework [0] EventDispatcher: Error
> during dispatch. (java.lang.NoClassDefFoundError:
> org/osgi/framework/FrameworkEven
>
> t)
>
> java.lang.NoClassDefFoundError: org/osgi/framework/FrameworkEvent
>
> at
> org.apache.aries.util.internal.DefaultWorker.frameworkEvent(DefaultWorker.java:150)
>
> at
> org.apache.felix.framework.util.EventDispatcher.invokeFrameworkListenerCallback(EventDispatcher.java:774)
>
> at
> org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:725)
>
> at
> org.apache.felix.framework.util.EventDispatcher.run(EventDispatcher.java:949)
>
> at
> org.apache.felix.framework.util.EventDispatcher.access$000(EventDispatcher.java:54)
>
> at
> org.apache.felix.framework.util.EventDispatcher$1.run(EventDispatcher.java:106)
>
> at java.lang.Thread.run(Thread.java:662)
>
> ERROR: Bundle org.apache.felix.framework [0] EventDispatcher: Error
> during dispatch. (java.lang.NoClassDefFoundError:
> org/osgi/framework/FrameworkEven
>
> t)
>
> java.lang.NoClassDefFoundError: org/osgi/framework/FrameworkEvent
>
> at
> org.apache.aries.util.internal.DefaultWorker.frameworkEvent(DefaultWorker.java:150)
>
> at
> org.apache.felix.framework.util.EventDispatcher.invokeFrameworkListenerCallback(EventDispatcher.java:774)
>
> at
> org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:725)
>
> at
> org.apache.felix.framework.util.EventDispatcher.run(EventDispatcher.java:949)
>
> at
> org.apache.felix.framework.util.EventDispatcher.access$000(EventDispatcher.java:54)
>
> at
> org.apache.felix.framework.util.EventDispatcher$1.run(EventDispatcher.java:106)
>
> at java.lang.Thread.run(Thread.java:662)
>
> ERROR: Bundle org.apache.felix.framework [0] EventDispatcher: Error
> during dispatch. (java.lang.NoClassDefFoundError:
> org/osgi/framework/FrameworkEven
>
> t)
>
> java.lang.NoClassDefFoundError: org/osgi/framework/FrameworkEvent
>
> at
> org.apache.aries.util.internal.DefaultWorker.frameworkEvent(DefaultWorker.java:150)
>
> at
> org.apache.felix.framework.util.EventDispatcher.invokeFrameworkListenerCallback(EventDispatcher.java:774)
>
> at
> org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:725)
>
> at
> org.apache.felix.framework.util.EventDispatcher.run(EventDispatcher.java:949)
>
> at
> org.apache.felix.framework.util.EventDispatcher.access$000(EventDispatcher.java:54)
>
> at
> org.apache.felix.framework.util.EventDispatcher$1.run(EventDispatcher.java:106)
>
> at java.lang.Thread.run(Thread.java:662)
>
> ERROR: Bundle org.apache.felix.framework [0] EventDispatcher: Error
> during dispatch. (java.lang.NoClassDefFoundError:
> org/osgi/framework/FrameworkEven
>
> t)
>
> java.lang.NoClassDefFoundError: org/osgi/framework/FrameworkEvent
>
> at
> org.apache.aries.util.internal.DefaultWorker.frameworkEvent(DefaultWorker.java:150)
>
> at
> org.apache.felix.framework.util.EventDispatcher.invokeFrameworkListenerCallback(EventDispatcher.java:774)
>
> at
> org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:725)
>
> at
> org.apache.felix.framework.util.EventDispatcher.run(EventDispatcher.java:949)
>
> at
> org.apache.felix.framework.util.EventDispatcher.access$000(EventDispatcher.java:54)
>
> at
> org.apache.felix.framework.util.EventDispatcher$1.run(EventDispatcher.java:106)
>
> at java.lang.Thread.run(Thread.java:662)
>
> karaf@root>ERROR: Bundle org.apache.felix.framework [0] EventDispatcher:
> Error during dispatch. (java.lang.NoClassDefFoundError:
> org/osgi/framework/Fr
>
> ameworkEvent)
>
> java.lang.NoClassDefFoundError: org/osgi/framework/FrameworkEvent
>
> at
> org.apache.aries.util.internal.DefaultWorker.frameworkEvent(DefaultWorker.java:150)
>
> at
> org.apache.felix.framework.util.EventDispatcher.invokeFrameworkListenerCallback(EventDispatcher.java:774)
>
> at
> org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:725)
>
> at
> org.apache.felix.framework.util.EventDispatcher.run(EventDispatcher.java:949)
>
> at
> org.apache.felix.framework.util.EventDispatcher.access$000(EventDispatcher.java:54)
>
> at
> org.apache.felix.framework.util.EventDispatcher$1.run(EventDispatcher.java:106)
>
> at java.lang.Thread.run(Thread.java:662)
>
> ERROR: Bundle org.apache.felix.framework [0] EventDispatcher: Error
> during dispatch. (java.lang.NoClassDefFoundError:
> org/osgi/framework/FrameworkEven
>
> t)
>
> java.lang.NoClassDefFoundError: org/osgi/framework/FrameworkEvent
>
> at
> org.apache.aries.util.internal.DefaultWorker.frameworkEvent(DefaultWorker.java:150)
>
> at
> org.apache.felix.framework.util.EventDispatcher.invokeFrameworkListenerCallback(EventDispatcher.java:774)
>
> at
> org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:725)
>
> at
> org.apache.felix.framework.util.EventDispatcher.run(EventDispatcher.java:949)
>
> at
> org.apache.felix.framework.util.EventDispatcher.access$000(EventDispatcher.java:54)
>
> at
> org.apache.felix.framework.util.EventDispatcher$1.run(EventDispatcher.java:106)
>
> at java.lang.Thread.run(Thread.java:662)
>
> ERROR: Bundle org.apache.felix.framework [0] EventDispatcher: Error
> during dispatch. (java.lang.NoClassDefFoundError:
> org/osgi/framework/FrameworkEven
>
> t)
>
> java.lang.NoClassDefFoundError: org/osgi/framework/FrameworkEvent
>
> at
> org.apache.aries.util.internal.DefaultWorker.frameworkEvent(DefaultWorker.java:150)
>
> at
> org.apache.felix.framework.util.EventDispatcher.invokeFrameworkListenerCallback(EventDispatcher.java:774)
>
> at
> org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:725)
>
> at
> org.apache.felix.framework.util.EventDispatcher.run(EventDispatcher.java:949)
>
> at
> org.apache.felix.framework.util.EventDispatcher.access$000(EventDispatcher.java:54)
>
> at
> org.apache.felix.framework.util.EventDispatcher$1.run(EventDispatcher.java:106)
>
> at java.lang.Thread.run(Thread.java:662)
>
> ERROR: Bundle org.apache.felix.framework [0] EventDispatcher: Error
> during dispatch. (java.lang.NoClassDefFoundError:
> org/osgi/framework/FrameworkEven
>
> t)
>
> java.lang.NoClassDefFoundError: org/osgi/framework/FrameworkEvent
>
> at
> org.apache.aries.util.internal.DefaultWorker.frameworkEvent(DefaultWorker.java:150)
>
> at
> org.apache.felix.framework.util.EventDispatcher.invokeFrameworkListenerCallback(EventDispatcher.java:774)
>
> at
> org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:725)
>
> at
> org.apache.felix.framework.util.EventDispatcher.run(EventDispatcher.java:949)
>
> at
> org.apache.felix.framework.util.EventDispatcher.access$000(EventDispatcher.java:54)
>
> at
> org.apache.felix.framework.util.EventDispatcher$1.run(EventDispatcher.java:106)
>
> at java.lang.Thread.run(Thread.java:662)
>
> ERROR: Bundle org.apache.felix.framework [0] EventDispatcher: Error
> during dispatch. (java.lang.NoClassDefFoundError:
> org/osgi/framework/FrameworkEven
>
> t)
>
> java.lang.NoClassDefFoundError: org/osgi/framework/FrameworkEvent
>
> at
> org.apache.aries.util.internal.DefaultWorker.frameworkEvent(DefaultWorker.java:150)
>
> at
> org.apache.felix.framework.util.EventDispatcher.invokeFrameworkListenerCallback(EventDispatcher.java:774)
>
> at
> org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:725)
>
> at
> org.apache.felix.framework.util.EventDispatcher.run(EventDispatcher.java:949)
>
> at
> org.apache.felix.framework.util.EventDispatcher.access$000(EventDispatcher.java:54)
>
> at
> org.apache.felix.framework.util.EventDispatcher$1.run(EventDispatcher.java:106)
>
> at java.lang.Thread.run(Thread.java:662)
>
> ERROR: Bundle org.apache.felix.framework [0] EventDispatcher: Error
> during dispatch. (java.lang.NoClassDefFoundError:
> org/osgi/framework/FrameworkEven
>
> t)
>
> java.lang.NoClassDefFoundError: org/osgi/framework/FrameworkEvent
>
> at
> org.apache.aries.util.internal.DefaultWorker.frameworkEvent(DefaultWorker.java:150)
>
> at
> org.apache.felix.framework.util.EventDispatcher.invokeFrameworkListenerCallback(EventDispatcher.java:774)
>
> at
> org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:725)
>
> at
> org.apache.felix.framework.util.EventDispatcher.run(EventDispatcher.java:949)
>
> at
> org.apache.felix.framework.util.EventDispatcher.access$000(EventDispatcher.java:54)
>
> at
> org.apache.felix.framework.util.EventDispatcher$1.run(EventDispatcher.java:106)
>
> at java.lang.Thread.run(Thread.java:662)
>
> Description: OSI Logo - small
>
> *Joel Schuster*
>
> Operational Systems, Inc.
>
> 6514 Fairways Drive
>
> Longmont, CO 80503
>
> Phone: 719 445 8789
>
> email: joel.schuster@opsysinc.com
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Mime
View raw message