[infinispan-issues] [JBoss JIRA] (ISPN-2999) getCacheEntry not working when distribution gets go remote

Galder Zamarreño (JIRA) jira-events at lists.jboss.org
Sun Apr 7 10:43:42 EDT 2013


Galder Zamarreño created ISPN-2999:
--------------------------------------

             Summary: getCacheEntry not working when distribution gets go remote
                 Key: ISPN-2999
                 URL: https://issues.jboss.org/browse/ISPN-2999
             Project: Infinispan
          Issue Type: Bug
    Affects Versions: 5.2.5.Final
            Reporter: Galder Zamarreño
            Assignee: Mircea Markus
             Fix For: 5.3.0.Beta1, 5.3.0.Final


Assuming the cache contains byte[], you get this exception when calling getCacheEntry(K) for a key not available locally:

{code}org.infinispan.server.hotrod.HotRodException: java.lang.ClassCastException: [B cannot be cast to org.infinispan.container.entries.CacheEntry
	at org.infinispan.server.hotrod.HotRodDecoder.createServerException(HotRodDecoder.scala:216)
	at org.infinispan.server.core.AbstractProtocolDecoder.decode(AbstractProtocolDecoder.scala:79)
	at org.infinispan.server.core.AbstractProtocolDecoder.decode(AbstractProtocolDecoder.scala:49)
	at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:500)
	at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:435)
	at org.infinispan.server.core.AbstractProtocolDecoder.messageReceived(AbstractProtocolDecoder.scala:393)
	at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268)
	at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255)
	at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88)
	at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:107)
	at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:313)
	at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:88)
	at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
	at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.ClassCastException: [B cannot be cast to org.infinispan.container.entries.CacheEntry
	at org.infinispan.CacheImpl.getCacheEntry(CacheImpl.java:299)
	at org.infinispan.CacheImpl.getCacheEntry(CacheImpl.java:304)
	at org.infinispan.server.core.AbstractProtocolDecoder.get(AbstractProtocolDecoder.scala:287)
	at org.infinispan.server.core.AbstractProtocolDecoder.decodeKey(AbstractProtocolDecoder.scala:117)
	at org.infinispan.server.core.AbstractProtocolDecoder.decode(AbstractProtocolDecoder.scala:73)
	... 14 more{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the infinispan-issues mailing list