Bug 906271 - Get operation with hotrod encoding issued through CLI results in NoClassDefFoundError
Summary: Get operation with hotrod encoding issued through CLI results in NoClassDefFo...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: JBoss Data Grid 6
Classification: JBoss
Component: unspecified
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ER12
: 6.1.0
Assignee: Tristan Tarrant
QA Contact: Martin Gencur
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-31 10:38 UTC by Martin Gencur
Modified: 2025-02-10 03:27 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-02-10 03:27:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker ISPN-2785 0 Major Resolved CLI Codecs are incomplete 2015-10-09 07:38:09 UTC

Description Martin Gencur 2013-01-31 10:38:48 UTC
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]>

Comment 1 Vitalii Chepeliuk 2013-02-20 16:07:43 UTC
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]

Comment 2 JBoss JIRA Server 2013-02-21 14:49:29 UTC
Mircea Markus <mmarkus> made a comment on jira ISPN-2785

integrated 5.2.x and master.

Comment 4 Red Hat Bugzilla 2025-02-10 03:27:24 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.


Note You need to log in before you can comment on or make changes to this bug.