Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-5547

Get MarshalledValue when iterating the persistent cache with storeAsBinary set to true

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Blocker Blocker
    • None
    • 7.1.1.Final
    • Core
    • None

      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.

              Unassigned Unassigned
              sdcf_2006_jira Fei Chen (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: