ok its FELIX-1033. and I guess that for now I have to stuck to Felix 1.4.1 or is there another way to use security?
Cheers, reto Karl Pauls said the following on 04/09/2009 09:35 PM: > uh oh. Looks like a bug to me. Could you please open a jira issue for > this? I will look into it. > > regards, > > Karl > > On Thu, Apr 9, 2009 at 8:25 PM, Reto Bachmann-Gmür > <reto.bachm...@trialox.org> wrote: > >> Hi Felix >> >> Trying to migrate to felix 1.6. >> >> starting felix with: >> >> java -Djava.security.manager -Djava.security.policy=all.policy -jar >> bin/felix.jar >> >> I'm getting: >> >> >> Welcome to Felix. >> ================= >> >> ERROR: Error starting file:bundle/org.apache.felix.shell-1.2.0.jar >> (org.osgi.framework.BundleException: Activator start error in bundle >> org.apache.felix.shell [1].) >> java.lang.ClassCastException: java.util.jar.JarFile cannot be cast to >> org.apache.felix.framework.util.JarFileX >> at >> org.apache.felix.framework.util.SecureAction.openJAR(SecureAction.java:526) >> at >> org.apache.felix.framework.cache.JarContent.openJarFile(JarContent.java:471) >> at >> org.apache.felix.framework.cache.JarContent.getEntryAsBytes(JarContent.java:165) >> at >> org.apache.felix.framework.searchpolicy.ModuleImpl$ModuleClassLoader.findClass(ModuleImpl.java:1480) >> at >> org.apache.felix.framework.searchpolicy.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:509) >> at >> org.apache.felix.framework.searchpolicy.ModuleImpl.access$100(ModuleImpl.java:59) >> at >> org.apache.felix.framework.searchpolicy.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1434) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:252) >> at >> org.apache.felix.framework.searchpolicy.ModuleImpl.getClassByDelegation(ModuleImpl.java:428) >> at >> org.apache.felix.framework.Felix.createBundleActivator(Felix.java:3335) >> at org.apache.felix.framework.Felix.startBundle(Felix.java:1453) >> at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:984) >> at >> org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:263) >> at java.lang.Thread.run(Thread.java:619) >> ERROR: Error starting file:bundle/org.apache.felix.shell.tui-1.2.0.jar >> (org.osgi.framework.BundleException: Activator start error in bundle >> org.apache.felix.shell.tui [2].) >> java.lang.ClassCastException: java.util.jar.JarFile cannot be cast to >> org.apache.felix.framework.util.JarFileX >> at >> org.apache.felix.framework.util.SecureAction.openJAR(SecureAction.java:526) >> at >> org.apache.felix.framework.cache.JarContent.openJarFile(JarContent.java:471) >> at >> org.apache.felix.framework.cache.JarContent.getEntryAsBytes(JarContent.java:165) >> at >> org.apache.felix.framework.searchpolicy.ModuleImpl$ModuleClassLoader.findClass(ModuleImpl.java:1480) >> at >> org.apache.felix.framework.searchpolicy.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:509) >> at >> org.apache.felix.framework.searchpolicy.ModuleImpl.access$100(ModuleImpl.java:59) >> at >> org.apache.felix.framework.searchpolicy.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1434) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:252) >> at >> org.apache.felix.framework.searchpolicy.ModuleImpl.getClassByDelegation(ModuleImpl.java:428) >> at >> org.apache.felix.framework.Felix.createBundleActivator(Felix.java:3335) >> at org.apache.felix.framework.Felix.startBundle(Felix.java:1453) >> at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:984) >> at >> org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:263) >> at java.lang.Thread.run(Thread.java:619) >> ERROR: Error starting >> file:bundle/org.apache.felix.bundlerepository-1.4.0.jar >> (org.osgi.framework.BundleException: Activator start error in bundle >> org.apache.felix.bundlerepository [3].) >> java.lang.ClassCastException: java.util.jar.JarFile cannot be cast to >> org.apache.felix.framework.util.JarFileX >> at >> org.apache.felix.framework.util.SecureAction.openJAR(SecureAction.java:526) >> at >> org.apache.felix.framework.cache.JarContent.openJarFile(JarContent.java:471) >> at >> org.apache.felix.framework.cache.JarContent.getEntryAsBytes(JarContent.java:165) >> at >> org.apache.felix.framework.searchpolicy.ModuleImpl$ModuleClassLoader.findClass(ModuleImpl.java:1480) >> at >> org.apache.felix.framework.searchpolicy.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:509) >> at >> org.apache.felix.framework.searchpolicy.ModuleImpl.access$100(ModuleImpl.java:59) >> at >> org.apache.felix.framework.searchpolicy.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1434) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:252) >> at >> org.apache.felix.framework.searchpolicy.ModuleImpl.getClassByDelegation(ModuleImpl.java:428) >> at >> org.apache.felix.framework.Felix.createBundleActivator(Felix.java:3335) >> at org.apache.felix.framework.Felix.startBundle(Felix.java:1453) >> at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:984) >> at >> org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:263) >> at java.lang.Thread.run(Thread.java:619) >> >> >> the file all.policy contains the following: >> >> grant { >> permission java.security.AllPermission; >> }; >> >> >> puzzled... >> >> Cheers, >> reto >> >> Felix Meschberger said the following on 04/08/2009 03:41 PM: >> >>> 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 >>> >>> >>> >> --------------------------------------------------------------------- >> 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