Hi Reto, I assume you are using Felix Framework 1.4.1 ?
There was a bug in the ServiceReferenceImpl.hashCode implementation which caused an IllegalStateException if the service has already been unregistered. This has been fixed in the latest 1.6.0 release of the framework. Hope this helps. Regards Felix Reto Bachmann-Gmür schrieb: > Hello, > > Occasionally the following exceptions get logged when starting our > system. We haven't yet found out more about them, our system seems to be > functional even if such exceptions are logged. > > Any ideas what could cause these errors? > > Cheers, > reto > > *INFO* [SCR Component Actor] > org.trialox.platform.security.SystemGraphUtils Setup SystemGraph > 08.04.2009 13:13:44.860 *ERROR* [FelixStartLevel] > org.trialox.platform.security > [org.trialox.platform.security.PermissionManager] > BundleComponentActivator : Exception invalidating > (java.lang.IllegalStateException: The service registration is no longer > valid.) java.lang.IllegalStateException: The service registration is no > longer valid. > at > org.apache.felix.framework.ServiceRegistrationImpl.getReference(ServiceRegistrationImpl.java:88) > at > org.apache.felix.framework.ServiceReferenceImpl.hashCode(ServiceReferenceImpl.java:87) > at java.util.HashMap.removeEntryForKey(HashMap.java:548) > at java.util.HashMap.remove(HashMap.java:538) > at java.util.Collections$SynchronizedMap.remove(Collections.java:1982) > at > org.apache.felix.scr.impl.DependencyManager.ungetService(DependencyManager.java:578) > at > org.apache.felix.scr.impl.DependencyManager.invokeUnbindMethod(DependencyManager.java:995) > at > org.apache.felix.scr.impl.DependencyManager.unbind(DependencyManager.java:691) > at > org.apache.felix.scr.impl.ImmediateComponentManager.disposeImplementationObject(ImmediateComponentManager.java:296) > at > org.apache.felix.scr.impl.ImmediateComponentManager.deleteComponent(ImmediateComponentManager.java:150) > at > org.apache.felix.scr.impl.AbstractComponentManager.deactivateInternal(AbstractComponentManager.java:554) > at > org.apache.felix.scr.impl.AbstractComponentManager.disableInternal(AbstractComponentManager.java:579) > at > org.apache.felix.scr.impl.AbstractComponentManager.disposeInternal(AbstractComponentManager.java:616) > at > org.apache.felix.scr.impl.AbstractComponentManager.dispose(AbstractComponentManager.java:272) > at > org.apache.felix.scr.impl.ImmediateComponentManager.dispose(ImmediateComponentManager.java:120) > at > org.apache.felix.scr.impl.BundleComponentActivator.dispose(BundleComponentActivator.java:258) > at > org.apache.felix.scr.impl.Activator.disposeComponents(Activator.java:264) > at org.apache.felix.scr.impl.Activator.bundleChanged(Activator.java:177) > at > org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:745) > at > org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:674) > at > org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:587) > at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:3629) > at org.apache.felix.framework.Felix._stopBundle(Felix.java:2076) > at org.apache.felix.framework.Felix.stopBundle(Felix.java:2034) > at org.apache.felix.framework.Felix.setBundleStartLevel(Felix.java:1334) > at > org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:271) > at java.lang.Thread.run(Thread.java:619) > > > *INFO* [SCR Component Actor] > org.trialox.rdf.sesame.storage.access.SesameNativeWeightedProvider > Created SesameNativeWeightedProvider > ERROR: ServiceRegistrationImpl: Error getting service. > (java.lang.NullPointerException) > java.lang.NullPointerException > at > org.apache.felix.scr.impl.AbstractComponentManager.getDependencyManagers(AbstractComponentManager.java:849) > at > org.apache.felix.scr.impl.ImmediateComponentManager.createImplementationObject(ImmediateComponentManager.java:196) > at > org.apache.felix.scr.impl.ImmediateComponentManager.createComponent(ImmediateComponentManager.java:133) > at > org.apache.felix.scr.impl.DelayedComponentManager.getService(DelayedComponentManager.java:83) > at > org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:272) > at > org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:196) > at > org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:300) > at org.apache.felix.framework.Felix.getService(Felix.java:2921) > at > org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:357) > at > org.apache.felix.scr.impl.DependencyManager.getService(DependencyManager.java:560) > at > org.apache.felix.scr.impl.DependencyManager.invokeBindMethod(DependencyManager.java:858) > at > org.apache.felix.scr.impl.DependencyManager.bind(DependencyManager.java:651) > at > org.apache.felix.scr.impl.ImmediateComponentManager.createImplementationObject(ImmediateComponentManager.java:203) > at > org.apache.felix.scr.impl.ImmediateComponentManager.createComponent(ImmediateComponentManager.java:133) > at > org.apache.felix.scr.impl.DelayedComponentManager.getService(DelayedComponentManager.java:83) > at > org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:272) > at > org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:196) > at > org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:300) > at org.apache.felix.framework.Felix.getService(Felix.java:2921) > at > org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:357) > at > org.apache.felix.scr.impl.DependencyManager.getService(DependencyManager.java:560) > at > org.apache.felix.scr.impl.DependencyManager.invokeBindMethod(DependencyManager.java:858) > at > org.apache.felix.scr.impl.DependencyManager.bind(DependencyManager.java:651) > at > org.apache.felix.scr.impl.ImmediateComponentManager.createImplementationObject(ImmediateComponentManager.java:203) > at > org.apache.felix.scr.impl.ImmediateComponentManager.createComponent(ImmediateComponentManager.java:133) > at > org.apache.felix.scr.impl.AbstractComponentManager.activateInternal(AbstractComponentManager.java:476) > at > org.apache.felix.scr.impl.AbstractComponentManager.enableInternal(AbstractComponentManager.java:398) > at > org.apache.felix.scr.impl.AbstractComponentManager.access$000(AbstractComponentManager.java:36) > at > org.apache.felix.scr.impl.AbstractComponentManager$1.run(AbstractComponentManager.java:99) > at > org.apache.felix.scr.impl.ComponentActorThread.run(ComponentActorThread.java:85) > ERROR: ServiceRegistrationImpl: Error getting service. > (java.lang.NullPointerException) > java.lang.NullPointerException > at > org.apache.felix.scr.impl.AbstractComponentManager.getDependencyManagers(AbstractComponentManager.java:849) > at > org.apache.felix.scr.impl.ImmediateComponentManager.createImplementationObject(ImmediateComponentManager.java:209) > at > org.apache.felix.scr.impl.ImmediateComponentManager.createComponent(ImmediateComponentManager.java:133) > at > org.apache.felix.scr.impl.DelayedComponentManager.getService(DelayedComponentManager.java:83) > at > org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:272) > at > org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:196) > at > org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:300) > at org.apache.felix.framework.Felix.getService(Felix.java:2921) > at > org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:357) > at > org.apache.felix.scr.impl.DependencyManager.getService(DependencyManager.java:560) > at > org.apache.felix.scr.impl.DependencyManager.invokeBindMethod(DependencyManager.java:858) > at > org.apache.felix.scr.impl.DependencyManager.bind(DependencyManager.java:651) > at > org.apache.felix.scr.impl.ImmediateComponentManager.createImplementationObject(ImmediateComponentManager.java:203) > at > org.apache.felix.scr.impl.ImmediateComponentManager.createComponent(ImmediateComponentManager.java:133) > at > org.apache.felix.scr.impl.AbstractComponentManager.activateInternal(AbstractComponentManager.java:476) > at > org.apache.felix.scr.impl.AbstractComponentManager.enableInternal(AbstractComponentManager.java:398) > at > org.apache.felix.scr.impl.AbstractComponentManager.access$000(AbstractComponentManager.java:36) > at > org.apache.felix.scr.impl.AbstractComponentManager$1.run(AbstractComponentManager.java:99) > at > org.apache.felix.scr.impl.ComponentActorThread.run(ComponentActorThread.java:85) > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@felix.apache.org > For additional commands, e-mail: users-h...@felix.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@felix.apache.org For additional commands, e-mail: users-h...@felix.apache.org