You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Andie Similon (JIRA)" <ji...@apache.org> on 2011/09/02 13:04:09 UTC
[jira] [Created] (FELIX-3101) ClassCastException in Permissions
class
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
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
[jira] [Commented] (FELIX-3101) ClassCastException in Permissions
class
Posted by "Karl Pauls (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Resolved] (FELIX-3101) ClassCastException in Permissions
class
Posted by "Karl Pauls (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-3101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Karl Pauls resolved FELIX-3101.
-------------------------------
Resolution: Fixed
Fix Version/s: framework.security-1.6.0
I commited a fix for this. If you want to test it you have to work with the current framework and framework.security trunk. Please close this issue if it works for you.
> 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
> Fix For: framework.security-1.6.0
>
>
> 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
[jira] [Assigned] (FELIX-3101) ClassCastException in Permissions
class
Posted by "Karl Pauls (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-3101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Karl Pauls reassigned FELIX-3101:
---------------------------------
Assignee: Karl Pauls
> 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
[jira] [Commented] (FELIX-3101) ClassCastException in Permissions
class
Posted by "Karl Pauls (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-3101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13096056#comment-13096056 ]
Karl Pauls commented on FELIX-3101:
-----------------------------------
Looks like a bug. I think its using the wrong queue by mistake. In any case, your dirty fix should be fine for now - I'll try to fix the real problem asap.
> 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