3 Replies Latest reply on Aug 26, 2013 9:25 AM by Jiří Holuša

    Problem calling RemoteCacheManager.getBasicCache().keySet() in compatibility mode over HotRod

    Erik Pearson Newbie

      Using Infinispan 5.3.0, I have a cache configured in a remote cache manager in compatibility mode:

       

      {code}

      ...

      <default>

        <clustering mode="REPLICATION"/>

        <compatibility enabled="true"/>

      </default>

       

      ...

       

      <namedCache name="SearchCache">

              <transaction

                    transactionManagerLookupClass="CustomTransactionManagerLookup"

                    transactionMode="TRANSACTIONAL"

                    lockingMode="PESSIMISTIC"/>

      </namedCache>

      ...

      {code}

       

      I'm able to put and get values from the remote cache just fine.  However, when I attempt to call BasicCache().keySet(), I see the following error:

       

      {code}

      ...

      Caused by: org.infinispan.client.hotrod.exceptions.HotRodClientException:Request for message id[924] returned server error (status=0x85): java.lang.ClassCastException: java.lang.Long cannot be cast to [B

              at org.infinispan.client.hotrod.impl.protocol.Codec10.checkForErrorsInResponseStatus(Codec10.java:162)

              at org.infinispan.client.hotrod.impl.protocol.Codec10.readHeader(Codec10.java:118)

              at org.infinispan.client.hotrod.impl.operations.HotRodOperation.readHeaderAndValidate(HotRodOperation.java:78)

              at org.infinispan.client.hotrod.impl.operations.BulkGetKeysOperation.executeOperation(BulkGetKeysOperation.java:59)

              at org.infinispan.client.hotrod.impl.operations.BulkGetKeysOperation.executeOperation(BulkGetKeysOperation.java:41)

              at org.infinispan.client.hotrod.impl.operations.RetryOnFailureOperation.execute(RetryOnFailureOperation.java:68)

              at org.infinispan.client.hotrod.impl.RemoteCacheImpl.keySet(RemoteCacheImpl.java:523)

              at org.nmdp.haplogic.searchserver.cache.infinispan.RemoteCacheAdapter.keySet(RemoteCacheAdapter.java:162)

              at org.nmdp.haplogic.searchserver.cache.infinispan.InfinispanWebServiceCacheRepositoryImpl.getSearchList(InfinispanWebServiceCacheRepositoryImpl.java:155)

      ...

      {code}

       

      Any suggestions?  Has anyone else seen this error?  Please let me know if I can provide any additional info.