Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
Description
I had the following exception once, though I have no idea how to reproduce, but it looks like a coding issue.
java.lang.ClassCastException: java.lang.ref.SoftReference cannot be cast to org.apache.felix.framework.security.util.Permissions$Entry
at org.apache.felix.framework.security.util.Permissions.cleanUp(Permissions.java:262)
at org.apache.felix.framework.security.util.Permissions.implies(Permissions.java:289)
at org.apache.felix.framework.security.condpermadmin.ConditionalPermissionAdminImpl.eval(ConditionalPermissionAdminImpl.java:1085)
at org.apache.felix.framework.security.condpermadmin.ConditionalPermissionAdminImpl.hasPermission(ConditionalPermissionAdminImpl.java:994)
at org.apache.felix.framework.SecurityProviderImpl.hasBundlePermission(SecurityProviderImpl.java:124)
at org.apache.felix.framework.Felix.impliesBundlePermission(Felix.java:3752)
at org.apache.felix.framework.BundleProtectionDomain.implies(BundleProtectionDomain.java:66)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:352)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:568)
at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:827)
at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:721)
at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:649)
at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3857)
at org.apache.felix.framework.Felix.access$000(Felix.java:89)
at org.apache.felix.framework.Felix$2.serviceChanged(Felix.java:739)
at org.apache.felix.framework.ServiceRegistry.unregisterService(ServiceRegistry.java:135)
at org.apache.felix.framework.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:129)
at org.apache.aries.blueprint.container.BlueprintContainerImpl.destroy(BlueprintContainerImpl.java:807)
at org.apache.aries.blueprint.container.BlueprintExtender.destroyContext(BlueprintExtender.java:250)
at org.apache.aries.blueprint.container.BlueprintExtender.bundleChanged(BlueprintExtender.java:242)
at org.apache.aries.blueprint.container.BlueprintExtender$BlueprintBundleTrackerCustomizer.modifiedBundle(BlueprintExtender.java:438)
at org.osgi.util.tracker.BundleTracker$Tracked.customizerModified(BundleTracker.java:453)
at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:237)
at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:413)
at org.apache.felix.framework.util.EventDispatcher$4.run(EventDispatcher.java:788)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:785)
at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:717)
at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:597)
at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:3846)
at org.apache.felix.framework.Felix.stopBundle(Felix.java:2286)
at org.apache.felix.framework.Felix.updateBundle(Felix.java:2035)
at org.apache.felix.framework.BundleImpl.update(BundleImpl.java:961)
at org.apache.karaf.shell.dev.watch.BundleWatcher.run(BundleWatcher.java:107)
at java.lang.Thread.run(Thread.java:680)
Attachments
Issue Links
- duplicates
-
FELIX-3101 ClassCastException in Permissions class
- Resolved