felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Nodet (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FELIX-3616) ClassCastException
Date Fri, 27 Jul 2012 15:34:33 GMT

     [ https://issues.apache.org/jira/browse/FELIX-3616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Guillaume Nodet resolved FELIX-3616.
------------------------------------

    Resolution: Duplicate
    
> ClassCastException
> ------------------
>
>                 Key: FELIX-3616
>                 URL: https://issues.apache.org/jira/browse/FELIX-3616
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework Security
>            Reporter: Guillaume Nodet
>            Assignee: Karl Pauls
>
> 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)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message