Bug 1171596 - [CLI] get command with mamcached/hotrod codec specified returns null values when application is deployed on EAP server
Summary: [CLI] get command with mamcached/hotrod codec specified returns null values w...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: JBoss Data Grid 6
Classification: JBoss
Component: Infinispan
Version: 6.4.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 7.0.0
Assignee: Tristan Tarrant
QA Contact: Martin Gencur
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-12-08 08:03 UTC by Vitalii Chepeliuk
Modified: 2025-02-10 03:43 UTC (History)
1 user (show)

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


Attachments (Terms of Use)
carmart-tx.war for testing CLI in library mode (8.72 MB, application/zip)
2014-12-08 08:03 UTC, Vitalii Chepeliuk
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker JDG-205 0 Minor Verified [CLI] Missing codec should have a friendly error message when application is deployed on EAP server 2020-02-20 06:07:12 UTC

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.


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