[ 
https://issues.apache.org/jira/browse/FELIX-3101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13096246#comment-13096246
 ] 

Karl Pauls commented on FELIX-3101:
-----------------------------------

I think, the problem is that we create a softreference with m_queue at one 
point. It looks like we should just create the softreference without a queue to 
begin with (as the m_permissionsCache is never cleanUp()-ed ). Im going to make 
that change and see what the ct has to say about it soon.

Thanks for the report. 

> ClassCastException in Permissions class
> ---------------------------------------
>
>                 Key: FELIX-3101
>                 URL: https://issues.apache.org/jira/browse/FELIX-3101
>             Project: Felix
>          Issue Type: Bug
>          Components: Conditional Permission Admin
>    Affects Versions: framework.security-1.4.1
>         Environment: mika with maximum java heap size of 10M
>            Reporter: Andie Similon
>            Assignee: Karl Pauls
>
> In the cleanUp function of Permission.java we get a ClassCastException. It 
> tries casting a SoftReference to Entry.
> We currently did a dirty fix where we first check if the object from the 
> ReferenceQueue is a Entry object or not before we cast it.
> Any idea what the cause is?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to