Description of problem: Using "hotrod" encoding reults in java.lang.NoClassDefFoundError: org/infinispan/server/core/CacheValue when a key/value pair is stored in the cache and then requested through a get operation. See an example CLI output: [remoting://localhost:9999/local/memcachedCache]> cache default [remoting://localhost:9999/local/default]> encoding hotrod [remoting://localhost:9999/local/default]> put d d org/infinispan/server/core/CacheValue [remoting://localhost:9999/local/default]> get d <-- returns null and the server log shows Interpreter error: java.lang.NoClassDefFoundError: org/infinispan/server/core/CacheValue null [remoting://localhost:9999/local/default]> put a a org/infinispan/server/core/CacheValue [remoting://localhost:9999/local/default]> get a null [remoting://localhost:9999/local/default]> cache memcachedCache [remoting://localhost:9999/local/memcachedCache]> encoding memcached [remoting://localhost:9999/local/memcachedCache]> put a a [remoting://localhost:9999/local/memcachedCache]> get a <-- different behaviour that for HotRod encoding org/infinispan/server/memcached/MemcachedValue [remoting://localhost:9999/local/memcachedCache]> encoding none [remoting://localhost:9999/local/memcachedCache]> put a a [remoting://localhost:9999/local/memcachedCache]> get a <--works just fine a [remoting://localhost:9999/local/memcachedCache]>
HotRod is OK, but memcached still has some problems with class cast [remoting://localhost:9999/local/default]> cache memcachedCache [remoting://localhost:9999/local/memcachedCache]> encoding memcached [remoting://localhost:9999/local/memcachedCache]> put a a [remoting://localhost:9999/local/memcachedCache]> get a java.lang.String cannot be cast to org.infinispan.server.memcached.MemcachedValue [remoting://localhost:9999/local/memcachedCache]> get a java.lang.String cannot be cast to org.infinispan.server.memcached.MemcachedValue [remoting://localhost:9999/local/memcachedCache]> get d null [remoting://localhost:9999/local/memcachedCache]> put a a [remoting://localhost:9999/local/memcachedCache]> get a java.lang.String cannot be cast to org.infinispan.server.memcached.MemcachedValue ###########################SERVER###################################### 17:00:55,968 ERROR [org.infinispan.cli.interpreter.Interpreter] (pool-1-thread-1) ISPN019003: Interpreter error: java.lang.ClassCastException: java.lang.String cannot be cast to org.infinispan.server.memcached.MemcachedValue at org.infinispan.cli.interpreter.codec.MemcachedCodec.decodeValue(MemcachedCodec.java:55) [infinispan-cli-server-5.2.1.Final-redhat-1.jar:5.2.1.Final-redhat-1] at org.infinispan.cli.interpreter.statement.GetStatement.execute(GetStatement.java:77) [infinispan-cli-server-5.2.1.Final-redhat-1.jar:5.2.1.Final-redhat-1] at org.infinispan.cli.interpreter.Interpreter.execute(Interpreter.java:161) [infinispan-cli-server-5.2.1.Final-redhat-1.jar:5.2.1.Final-redhat-1] at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source) [:1.7.0_11] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_11] at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_11] at org.infinispan.jmx.ResourceDMBean.invoke(ResourceDMBean.java:275) [infinispan-core-5.2.1.Final-redhat-1.jar:5.2.1.Final-redhat-1] at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) [rt.jar:1.7.0_11] at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:791) [rt.jar:1.7.0_11] at org.jboss.as.jmx.PluggableMBeanServerImpl$TcclMBeanServer.invoke(PluggableMBeanServerImpl.java:498) [jboss-as-jmx-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4] at org.jboss.as.jmx.PluggableMBeanServerImpl.invoke(PluggableMBeanServerImpl.java:246) [jboss-as-jmx-7.1.3.Final-redhat-4.jar:7.1.3.Final-redhat-4] at org.jboss.remotingjmx.protocol.v1.ServerProxy$InvokeHandler.handle(ServerProxy.java:1034) at org.jboss.remotingjmx.protocol.v1.ServerProxy$MessageReciever$1.run(ServerProxy.java:215) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_11] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_11] at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_11]
Mircea Markus <mmarkus> made a comment on jira ISPN-2785 integrated 5.2.x and master.
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.