[infinispan-issues] [JBoss JIRA] Commented: (ISPN-587) ClassCastException in PutKeyValueCommand

Galder Zamarreno (JIRA) jira-events at lists.jboss.org
Fri Aug 13 10:46:49 EDT 2010


    [ https://jira.jboss.org/browse/ISPN-587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12544869#action_12544869 ] 

Galder Zamarreno commented on ISPN-587:
---------------------------------------

Ups, Sanne had already suggested that. Ignore my last comment.

> ClassCastException in PutKeyValueCommand
> ----------------------------------------
>
>                 Key: ISPN-587
>                 URL: https://jira.jboss.org/browse/ISPN-587
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Tree API
>    Affects Versions: 4.1.0.CR2
>            Reporter: Tom Coates
>            Assignee: Manik Surtani
>
> This command attempts to cast an entry to a MVCCEntry but it is possible that the entry in question is just a CacheEntry - happens when using the AtomicMap API, which in turn is used by the Tree adapter.
> "public Object perform(InvocationContext ctx) throws Throwable {
>       Object o;
>       MVCCEntry e = (MVCCEntry) ctx.lookupEntry(key);
>       Object entryValue = e.getValue();
> ... "
> should be:
> "
> public Object perform(InvocationContext ctx) throws Throwable {
>       Object o;
>       CacheEntry e = (CacheEntry) ctx.lookupEntry(key);
>       Object entryValue = e.getValue();
> ...
> "

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the infinispan-issues mailing list