[infinispan-issues] [JBoss JIRA] (ISPN-5547) Get MarshalledValue when iterating the persistent cache with storeAsBinary set to true

Pedro Zapata Fernandez (Jira) issues at jboss.org
Fri Feb 7 06:48:36 EST 2020


     [ https://issues.redhat.com/browse/ISPN-5547?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pedro Zapata Fernandez closed ISPN-5547.
----------------------------------------
    Resolution: Out of Date


> Get MarshalledValue when iterating the persistent cache with storeAsBinary set to true
> --------------------------------------------------------------------------------------
>
>                 Key: ISPN-5547
>                 URL: https://issues.redhat.com/browse/ISPN-5547
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 7.1.1.Final
>            Reporter: Fei Chen
>            Priority: Blocker
>
> Please see https://developer.jboss.org/thread/258545 for details.  The key issue is:
> The ClassCastException happens when trying to iterator the cache:
> 06:54:47,057 ERROR [org.jboss.as.ejb3.invocation] (http-localhost/127.0.0.1:8680-1) JBAS014134: EJB Invocation failed on component PublishManagerLocalBean for method public abstract java.util.Set com.test.PublishManager.getChannels(): javax.ejb.EJBException: java.lang.ClassCastException: org.infinispan.marshall.core.MarshalledValue cannot be cast to com.test.Channel
> The problem is:  I store only one entry into the cache. But afterwards when iterating the cache, 2 entries are returned.  One entry is with type Channel which looks correct,  but there is another entry with type MarshalledValue.
> After a few investigation, we see this issue only happens when the 1. cache is persistent and 2. storeAsBinary is enabled. 



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the infinispan-issues mailing list