| Summary: | Unable to access named cache from HotRod client | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Data Grid 6 | Reporter: | Martin Gencur <mgencur> |
| Component: | Infinispan | Assignee: | Default User <jbpapp-maint> |
| Status: | CLOSED NOTABUG | QA Contact: | |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 6.0.0 | CC: | jdg-bugs |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| URL: | http://jira.jboss.org/jira/browse/EDG-117 | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-06-03 14:45:03 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: | |
Release Notes Text: Added: I'm sorry, I was told to create the JIRA, I didn't check whether it exists already. Closing 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 |
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.