Uploaded image for project: 'JBoss Enterprise Data Grid'
  1. JBoss Enterprise Data Grid
  2. EDG-62

CacheNotFound exception for cache defined in infinispan-configuration.xml

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Infinispan
    • Labels:
      None
    • Environment:

      Fedora 14

      Description

      The unreleased version of EDG 6.0.0 Alpha I am using is edg6-ispn-5.0.0-SNAPSHOT-110601-0842.zip.

      Steps to reproduce
      ------------------
      1. Create 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)
      > also change the default interface in datagrid1.xml to point to the same IP address
      > edit cp $JBOSS_DATAGRID/bin/standaline.conf to add -Djava.net.preferIPv4Stack=true to JAVA_OPTS
      Do the same/similar for datagrid2.xml on a second IP address (e.g. 192.168.0.101)

      2. Start the servers:
      > $JBOSS_DATAGRID/bin/standalone.sh -server-config datagrid1.xml
      > $JBOSS_DATAGRID/bin/standalone.sh -server-config datagrid2.xml

      Even though sampleReplicatedCache is defined in $JBOSS_DATAGRID/standalone/configuration/infinispan-configuration.xml, I cannot access that named cache:
      > ./execute.sh HotRodClientTest getKeys
      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)

      Accessing the default cache using the same mechanism works.

      HotRodClientTest is a hacked-together program which allows me to perform basic requests (put, add, size, getKeys) on HotRod server modules.

        Gliffy Diagrams

          Attachments

          1. compile.sh
            0.4 kB
          2. execute.sh
            0.7 kB
          3. HotRodClientTest.java
            2 kB

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                rachmato Richard Achmatowicz
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: