0 Replies Latest reply on Nov 14, 2017 3:34 AM by hsirahas

    InvalidMagicIdException: Error reading magic byte or message - Infinispan version 8.2.8

    hsirahas

      I have a standalone Infinispan cache with 2-3 named caches. Am not using any clusters. I use Hotrod to connect to the cache. I have written client that  will expose the Infinispan Cache APIs to any calling applications. This is done to abstract the applications using cache from the cache implementation.

       

      In few multithreaded applications when i try call the APIs like putIfAbsent or replaceWithVersion, I get the below error. In other multithreaded apps I dont.

       

      [com.ibm.mq.jmqi.remote.impl.RemoteSession[connectionId=414D514343484D51543641202020202059F1020920507001]]] ERROR  updateVersionedCache() - exception occured while updating record to cache - org.infinispan.server.hotrod.InvalidMagicIdException: Error reading magic byte or message id: 101

      org.infinispan.client.hotrod.exceptions.HotRodClientException: org.infinispan.server.hotrod.InvalidMagicIdException: Error reading magic byte or message id: 101

      ...

      Like i mentioned am not using any Clusters at this point. The cache JBoss server is running in standalone mode.can someone help me understand this issue?

       

      Sometimes i run 2 instances of the cache in the same IP with different Hotrod ports. Attached the configuration file as well.

       

      I start them like below in the same Box.

      standalone.bat -c standalone.lookaahead-pnrcache.xml -Dinfinispan.cache.persistence.file.path=pnrcache

      standalone.bat -c standalone.emd.xml -Dinfinispan.cache.persistence.file.path=pnrcache