Bug 1171596

Summary: [CLI] get command with mamcached/hotrod codec specified returns null values when application is deployed on EAP server
Product: [JBoss] JBoss Data Grid 6 Reporter: Vitalii Chepeliuk <vchepeli>
Component: InfinispanAssignee: Tristan Tarrant <ttarrant>
Status: CLOSED UPSTREAM QA Contact: Martin Gencur <mgencur>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.4.0CC: jdg-bugs
Target Milestone: ---   
Target Release: 7.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-02-10 03:43:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
carmart-tx.war for testing CLI in library mode none

Description Vitalii Chepeliuk 2014-12-08 08:03:31 UTC
Created attachment 965719 [details]
carmart-tx.war for testing CLI in library mode

Version-Release number of selected component (if applicable): 6.4.0.ER7

Steps to Reproduce:
1. download and start EAP6.3 server
2. deploy jboss-carmart-tx.war 
3. download jboss-datagrid-6.4.0.ER7-library.zip
5. run command bin/cli.sh
6. put there commands 
connect remoting://localhost:9999/DefaultCacheManager
clear carcache
put carcache.key1 car1
get carcache.key1
put --codec=hotrod carcache.key2 car2
get --codec=hotrod carcache.key2
put --codec=memcached carcache.key3 car3
cache carcache
get --codec=memcached key3
put --codec=rest key4 car4
get --codec=rest key4
put --codec=none key5 car5
get --codec=none key5
disconnect
quit

Actual results:
car1
null
org/infinispan/server/memcached/MemcachedValue
null
car4
car5

For memcached exception is thrown
08:58:41,850 ERROR [org.infinispan.cli.interpreter.Interpreter] (pool-1-thread-4) ISPN019003: Interpreter error: java.lang.NoClassDefFoundError: org/infinispan/server/memcached/MemcachedValue
        at org.infinispan.cli.interpreter.codec.MemcachedCodec.encodeValue(MemcachedCodec.java:34) [infinispan-cli-server-6.2.0.ER7-redhat-1.jar:6.2.0.ER7-redhat-1]
        at org.infinispan.cli.interpreter.statement.PutStatement.execute(PutStatement.java:71) [infinispan-cli-server-6.2.0.ER7-redhat-1.jar:6.2.0.ER7-redhat-1]
        at org.infinispan.cli.interpreter.Interpreter.execute(Interpreter.java:149) [infinispan-cli-server-6.2.0.ER7-redhat-1.jar:6.2.0.ER7-redhat-1]
        at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source) [:1.7.0_51]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_51]
        at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_51]
        at org.infinispan.jmx.ResourceDMBean.invoke(ResourceDMBean.java:269) [infinispan-core-6.2.0.ER7-redhat-1.jar:6.2.0.ER7-redhat-1]
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) [rt.jar:1.7.0_51]
        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) [rt.jar:1.7.0_51]
        at org.jboss.as.jmx.PluggableMBeanServerImpl$TcclMBeanServer.invoke(PluggableMBeanServerImpl.java:1455)
        at org.jboss.as.jmx.PluggableMBeanServerImpl.invoke(PluggableMBeanServerImpl.java:731)
        at org.jboss.remotingjmx.protocol.v2.ServerProxy$InvokeHandler.handle(ServerProxy.java:952)
        at org.jboss.remotingjmx.protocol.v2.ServerCommon$MessageReciever$1$1.run(ServerCommon.java:153)
        at org.jboss.as.jmx.ServerInterceptorFactory$Interceptor$1.run(ServerInterceptorFactory.java:75)
        at org.jboss.as.jmx.ServerInterceptorFactory$Interceptor$1.run(ServerInterceptorFactory.java:70)
        at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.7.0_51]
        at javax.security.auth.Subject.doAs(Subject.java:415) [rt.jar:1.7.0_51]
        at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:94)
        at org.jboss.as.jmx.ServerInterceptorFactory$Interceptor.handleEvent(ServerInterceptorFactory.java:70)
        at org.jboss.remotingjmx.protocol.v2.ServerCommon$MessageReciever$1.run(ServerCommon.java:149)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_51]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_51]
        at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]


Expected results:
car1
car2
car3
car4
car5

Additional info:

Comment 3 Red Hat Bugzilla 2025-02-10 03:43:41 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.