Bug 745887 (EDG-117) - Unable to access named cache from HotRod client
Summary: Unable to access named cache from HotRod client
Keywords:
Status: CLOSED NOTABUG
Alias: EDG-117
Product: JBoss Data Grid 6
Classification: JBoss
Component: Infinispan
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Default User
QA Contact:
URL: http://jira.jboss.org/jira/browse/EDG...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-03 14:39 UTC by Martin Gencur
Modified: 2012-08-15 14:44 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-03 14:45:03 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker EDG-117 0 Major Closed Unable to access named cache from HotRod client 2018-08-21 07:49:16 UTC

Description Martin Gencur 2011-06-03 14:39:16 UTC
project_key: EDG

Stack trace:

Starting HotRodClientTest
Exception in thread "main"
org.infinispan.client.hotrod.exceptions.HotRodClientException:Request
for message id[2] returned server error (status=0x84):
org.infinispan.server.hotrod.CacheNotFoundException: Cache with name
'sampleReplicatedCache' not found amongst the configured caches
     at
org.infinispan.client.hotrod.impl.operations.HotRodOperation.checkForErrorsInResponseStatus(HotRodOperation.java:130)
     at
org.infinispan.client.hotrod.impl.operations.HotRodOperation.readHeaderAndValidate(HotRodOperation.java:98)
     at
org.infinispan.client.hotrod.impl.operations.BulkGetOperation.executeOperation(BulkGetOperation.java:35)
     at
org.infinispan.client.hotrod.impl.operations.RetryOnFailureOperation.execute(RetryOnFailureOperation.java:38)
     at
org.infinispan.client.hotrod.impl.RemoteCacheImpl.getBulk(RemoteCacheImpl.java:312)
     at
org.infinispan.client.hotrod.impl.RemoteCacheImpl.getBulk(RemoteCacheImpl.java:305)
     at HotRodClientTest.main(HotRodClientTest.java:65)



Steps to reproduce the bug:

1)
Create a configuration for a server - datagrid1.xml
>  cp $JBOSS_DATAGRID/standalone/configuration/standalone.xml
      $JBOSS_DATAGRID/standalone/configuration/datagrid1.xml
>  edit datagrid1.xml to add properties for
jboss.infinispan.hotrod.server.host and
jboss.infinispan.memcached.server.host to bind to correct host (in my
case 192.168.0.100)
>  edit $JBOSS_DATAGRID/bin/standalone.conf to add
        -Djava.net.preferIPv4Stack=true to JAVA_OPTS
2)
Do the same/similar for datagrid2.xml.

3)
Start the two AS7 servers:
>  $JBOSS_DATAGRID/bin/standalone.sh -server-config datagrid1.xml
>  $JBOSS_DATAGRID/bin/standalone.sh -server-config datagrid2.xml


Accessing a default cache this way works just fine.

Comment 1 Martin Gencur 2011-06-03 14:45:03 UTC
Release Notes Text: Added: I'm sorry, I was told to create the JIRA, I didn't check whether it exists already. Closing


Comment 2 Anne-Louise Tangring 2011-10-11 17:09:36 UTC
Release Notes Text: Removed: I'm sorry, I was told to create the JIRA, I didn't check whether it exists already. Closing 
Docs QE Status: Removed: NEW 



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