1 Reply Latest reply on Oct 4, 2011 9:57 AM by Galder Zamarreño

    Expected a delimiter error when retrieving state

    Todd Underwood Newbie

      I just implemented persistance using the JdbcBinaryCacheStore for a Hibernate Search index and it seems to be working when only one machine is involved however as soon as I try to add a secondmachine to the cluster I get the following error on the second machine:

       

      [2011-09-08 10:34:07,361] ERROR JGroupsTransport.java:611 Incoming-2,Todd-Underwoods-MacBook-Pro-2-53050 ) ISPN000096: Caught while requesting or applying state

      org.infinispan.statetransfer.StateTransferException: Expected a delimiter, recieved 1104792576

                at org.infinispan.statetransfer.StateTransferManagerImpl.assertDelimited(StateTransferManagerImpl.java:367)

                at org.infinispan.statetransfer.StateTransferManagerImpl.assertDelimited(StateTransferManagerImpl.java:362)

                at org.infinispan.statetransfer.StateTransferManagerImpl.applyState(StateTransferManagerImpl.java:280)

                at org.infinispan.remoting.InboundInvocationHandlerImpl.applyState(InboundInvocationHandlerImpl.java:235)

                at org.infinispan.remoting.transport.jgroups.JGroupsTransport.setState(JGroupsTransport.java:607)

                at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.handleUpEvent(MessageDispatcher.java:711)

                at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:771)

                at org.jgroups.JChannel.up(JChannel.java:1441)

                at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:1074)

                at org.jgroups.protocols.pbcast.STREAMING_STATE_TRANSFER.connectToStateProvider(STREAMING_STATE_TRANSFER.java:523)

                at org.jgroups.protocols.pbcast.STREAMING_STATE_TRANSFER.handleStateRsp(STREAMING_STATE_TRANSFER.java:462)

                at org.jgroups.protocols.pbcast.STREAMING_STATE_TRANSFER.up(STREAMING_STATE_TRANSFER.java:223)

                at org.jgroups.protocols.FRAG2.up(FRAG2.java:189)

                at org.jgroups.protocols.FlowControl.up(FlowControl.java:418)

                at org.jgroups.protocols.FlowControl.up(FlowControl.java:400)

                at org.jgroups.protocols.pbcast.GMS.up(GMS.java:908)

                at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:246)

                at org.jgroups.protocols.UNICAST.handleDataReceived(UNICAST.java:613)

                at org.jgroups.protocols.UNICAST.up(UNICAST.java:294)

                at org.jgroups.protocols.pbcast.NAKACK.up(NAKACK.java:703)

                at org.jgroups.protocols.BARRIER.up(BARRIER.java:99)

                at org.jgroups.protocols.FD_ALL.up(FD_ALL.java:177)

                at org.jgroups.protocols.FD_SOCK.up(FD_SOCK.java:275)

                at org.jgroups.protocols.MERGE2.up(MERGE2.java:209)

                at org.jgroups.protocols.Discovery.up(Discovery.java:293)

                at org.jgroups.protocols.PING.up(PING.java:69)

                at org.jgroups.protocols.TP.passMessageUp(TP.java:1109)

                at org.jgroups.protocols.TP$IncomingPacket.handleMyMessage(TP.java:1665)

                at org.jgroups.protocols.TP$IncomingPacket.run(TP.java:1647)

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

                at java.lang.Thread.run(Thread.java:680)

      [2011-09-08 10:34:07,368] WARN RpcManagerImpl.java:206 main ) ISPN000075: Could not find available peer for state, backing off and retrying

       

       

      This repeats several times before finally throwing this exception:

       

      [2011-09-08 10:34:41.737]at org.infinispan.remoting.rpc.RpcManagerImpl.retrieveState(RpcManagerImpl.java:221)
      [2011-09-08 10:34:41.737]at org.infinispan.statetransfer.StateTransferManagerImpl.start(StateTransferManagerImpl.java:125)
      [2011-09-08 10:34:41.737]at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [2011-09-08 10:34:41.737]at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [2011-09-08 10:34:41.737]at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [2011-09-08 10:34:41.737]at java.lang.reflect.Method.invoke(Method.java:597)
      [2011-09-08 10:34:41.737]at org.infinispan.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:170)
      [2011-09-08 10:34:41.737]at org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod.invoke(AbstractComponentRegistry.java:890)
      [2011-09-08 10:34:41.737]at org.infinispan.factories.AbstractComponentRegistry.internalStart(AbstractComponentRegistry.java:683)
      [2011-09-08 10:34:41.737]at org.infinispan.factories.AbstractComponentRegistry.start(AbstractComponentRegistry.java:581)
      [2011-09-08 10:34:41.737]at org.infinispan.factories.ComponentRegistry.start(ComponentRegistry.java:180)
      [2011-09-08 10:34:41.737]at org.infinispan.CacheImpl.start(CacheImpl.java:368)
      [2011-09-08 10:34:41.737]at org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:560)
      [2011-09-08 10:34:41.737]at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:454)
      [2011-09-08 10:34:41.737]at org.hibernate.search.infinispan.InfinispanDirectoryProvider.start(InfinispanDirectoryProvider.java:84)
      [2011-09-08 10:34:41.737]at org.hibernate.search.store.DirectoryProviderFactory.startDirectoryProviders(DirectoryProviderFactory.java:144)
      [2011-09-08 10:34:41.737]at org.hibernate.search.spi.SearchFactoryBuilder.initDocumentBuilders(SearchFactoryBuilder.java:403)
      [2011-09-08 10:34:41.737]at org.hibernate.search.spi.SearchFactoryBuilder.buildNewSearchFactory(SearchFactoryBuilder.java:262)
      [2011-09-08 10:34:41.737]at org.hibernate.search.spi.SearchFactoryBuilder.buildSearchFactory(SearchFactoryBuilder.java:144)
      [2011-09-08 10:34:41.737]at org.hibernate.search.event.FullTextIndexEventListener.initialize(FullTextIndexEventListener.java:151)
      [2011-09-08 10:34:41.737]at org.hibernate.event.EventListeners$1.processListener(EventListeners.java:198)
      [2011-09-08 10:34:41.737]at org.hibernate.event.EventListeners.processListeners(EventListeners.java:181)
      [2011-09-08 10:34:41.737]at org.hibernate.event.EventListeners.initializeListeners(EventListeners.java:194)
      [2011-09-08 10:34:41.737]at org.hibernate.cfg.Configuration.getInitializedEventListeners(Configuration.java:1983)
      [2011-09-08 10:34:41.737]at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1845)
      [2011-09-08 10:34:41.737]at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:805)
      [2011-09-08 10:34:41.737]at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:745)
      [2011-09-08 10:34:41.737]at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:134)
      [2011-09-08 10:34:41.737]at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1198)
      [2011-09-08 10:34:41.737]at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1167)
      [2011-09-08 10:34:41.737]at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427)
      [2011-09-08 10:34:41.737]at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)
      [2011-09-08 10:34:41.737]at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)
      [2011-09-08 10:34:41.737]at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)
      [2011-09-08 10:34:41.737]at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
      [2011-09-08 10:34:41.737]at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:267)
      [2011-09-08 10:34:41.737]at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:110)
      [2011-09-08 10:34:41.737]at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1095)
      [2011-09-08 10:34:41.737]at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857)
      [2011-09-08 10:34:41.737]at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:423)
      [2011-09-08 10:34:41.737]at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)
      [2011-09-08 10:34:41.737]at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)
      [2011-09-08 10:34:41.737]at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)
      [2011-09-08 10:34:41.737]at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
      [2011-09-08 10:34:41.737]at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:267)
      [2011-09-08 10:34:41.737]at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:110)
      [2011-09-08 10:34:41.737]at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1095)
      [2011-09-08 10:34:41.737]at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857)
      [2011-09-08 10:34:41.737]at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:423)
      [2011-09-08 10:34:41.737]at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:216)
      [2011-09-08 10:34:41.737]at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:128)
      [2011-09-08 10:34:41.737]at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1095)
      [2011-09-08 10:34:41.737]at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857)
      [2011-09-08 10:34:41.737]at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:423)
      [2011-09-08 10:34:41.737]at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)
      [2011-09-08 10:34:41.737]at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)
      [2011-09-08 10:34:41.737]at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)
      [2011-09-08 10:34:41.737]at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
      [2011-09-08 10:34:41.737]at org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans(BeanFactoryAdvisorRetrievalHelper.java:87)
      [2011-09-08 10:34:41.737]at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java:96)
      [2011-09-08 10:34:41.737]at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:83)
      [2011-09-08 10:34:41.737]at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java:66)
      [2011-09-08 10:34:41.737]at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:296)
      [2011-09-08 10:34:41.737]at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:313)
      [2011-09-08 10:34:41.737]at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1176)
      [2011-09-08 10:34:41.737]at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427)
      [2011-09-08 10:34:41.737]at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)
      [2011-09-08 10:34:41.737]at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)
      [2011-09-08 10:34:41.737]at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)
      [2011-09-08 10:34:41.737]at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
      [2011-09-08 10:34:41.737]at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:733)
      [2011-09-08 10:34:41.737]at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:511)
      [2011-09-08 10:34:41.737]at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:337)
      [2011-09-08 10:34:41.737]at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:245)
      [2011-09-08 10:34:41.737]at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:188)
      [2011-09-08 10:34:41.737]at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
      [2011-09-08 10:34:41.737]at com.caucho.server.webapp.Application.start(Application.java:1647)
      [2011-09-08 10:34:41.737]at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:621)
      [2011-09-08 10:34:41.737]at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
      [2011-09-08 10:34:41.737]at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:509)
      [2011-09-08 10:34:41.737]at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:153)
      [2011-09-08 10:34:41.737]at com.caucho.server.webapp.ApplicationContainer.start(ApplicationContainer.java:670)
      [2011-09-08 10:34:41.737]at com.caucho.server.host.Host.start(Host.java:420)
      [2011-09-08 10:34:41.737]at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:621)
      [2011-09-08 10:34:41.737]at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
      [2011-09-08 10:34:41.737]at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:509)
      [2011-09-08 10:34:41.737]at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:153)
      [2011-09-08 10:34:41.737]at com.caucho.server.host.HostContainer.start(HostContainer.java:504)
      [2011-09-08 10:34:41.737]at com.caucho.server.resin.ServletServer.start(ServletServer.java:971)
      [2011-09-08 10:34:41.737]at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:621)
      [2011-09-08 10:34:41.737]at com.caucho.server.deploy.AbstractDeployControllerStrategy.start(AbstractDeployControllerStrategy.java:56)
      [2011-09-08 10:34:41.737]at com.caucho.server.deploy.DeployController.start(DeployController.java:517)
      [2011-09-08 10:34:41.737]at com.caucho.server.resin.ResinServer.start(ResinServer.java:551)
      [2011-09-08 10:34:41.737]at com.caucho.server.resin.Resin.init(Resin.java)
      [2011-09-08 10:34:41.737]at com.caucho.server.resin.Resin.main(Resin.java:625)

       

      Clustering worked on these two machines prior to implementing persistance so I do not know what is causing the issue.

       

      I am using Infinispan 5.0.0.Final with Hibernate Search 3.4.0.Final and jGroups 1.12.1.3.Final.

       

       

      This is my infinispan config file:

       

      <?xml version="1.0" encoding="UTF-8"?>

      <infinispan

              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

              xsi:schemaLocation="urn:infinispan:config:4.2 http://www.infinispan.org/schemas/infinispan-config-4.2.xsd"

              xmlns="urn:infinispan:config:4.2">

       

       

          <!-- *************************** -->

          <!-- System-wide global settings -->

          <!-- *************************** -->

       

       

          <global>

       

       

              <!-- Duplicate domains are allowed so that multiple deployments with default configuration

                  of Hibernate Search applications work - if possible it would be better to use JNDI to share

                  the CacheManager across applications -->

              <globalJmxStatistics

                      enabled="true"

                      cacheManagerName="HibernateSearch"

                      allowDuplicateDomains="true"/>

       

       

              <!-- If the transport is omitted, there is no way to create distributed or clustered

                  caches. There is no added cost to defining a transport but not creating a cache that uses one,

                  since the transport is created and initialized lazily. -->

              <transport

                      clusterName="HibernateSearch-Infinispan-cluster"

                      distributedSyncTimeout="50000">

                  <!-- Note that the JGroups transport uses sensible defaults if no configuration

                      property is defined. See the JGroupsTransport javadocs for more flags -->

              </transport>

       

       

              <!-- Used to register JVM shutdown hooks. hookBehavior: DEFAULT, REGISTER, DONT_REGISTER.

                  Hibernate Search takes care to stop the CacheManager so registering is not needed -->

              <shutdown

                      hookBehavior="DONT_REGISTER"/>

       

       

          </global>

       

       

          <!-- *************************** -->

          <!-- Default "template" settings -->

          <!-- *************************** -->

       

       

          <default>

       

       

              <locking

                      lockAcquisitionTimeout="20000"

                      writeSkewCheck="false"

                      concurrencyLevel="500"

                      useLockStriping="false"/>

       

       

              <lazyDeserialization

                      enabled="false"/>

       

       

              <!-- Invocation batching is required for use with the Lucene Directory -->

              <invocationBatching

                      enabled="true"/>

       

       

              <!-- This element specifies that the cache is clustered. modes supported: distribution

                  (d), replication (r) or invalidation (i). Don't use invalidation to store Lucene indexes (as

                  with Hibernate Search DirectoryProvider). Replication is recommended for best performance of

                  Lucene indexes, but make sure you have enough memory to store the index in your heap.

                  Also distribution scales much better than replication on high number of nodes in the cluster. -->

              <clustering

                      mode="replication">

       

       

                  <!-- Prefer loading all data at startup than later -->

                  <stateRetrieval

                          timeout="60000"

                          logFlushTimeout="30000"

                          fetchInMemoryState="true"

                          alwaysProvideInMemoryState="true"/>

       

       

                  <!-- Network calls are synchronous by default -->

                  <sync

                          replTimeout="20000"/>

              </clustering>

       

       

              <jmxStatistics

                      enabled="true"/>

       

       

              <eviction

                      maxEntries="-1"

                      strategy="NONE"/>

       

       

              <expiration

                      maxIdle="-1"/>

       

       

          </default>

       

       

          <!-- ******************************************************************************* -->

          <!-- Individually configured "named" caches.                                         -->

          <!--                                                                                 -->

          <!-- While default configuration happens to be fine with similar settings across the -->

          <!-- three caches, they should generally be different in a production environment.   -->

          <!--                                                                                 -->

          <!-- Current settings could easily lead to OutOfMemory exception as a CacheStore     -->

          <!-- should be enabled, and maybe distribution is desired.                           -->

          <!-- ******************************************************************************* -->

       

       

          <!-- *************************************** -->

          <!--  Cache to store Lucene's file metadata  -->

          <!-- *************************************** -->

          <namedCache name="LuceneIndexesMetadata">

       

       

              <clustering mode="replication">

                  <stateRetrieval

                          fetchInMemoryState="true"

                          logFlushTimeout="30000"/>

                  <sync replTimeout="50000"/>

              </clustering>

           <loaders preload="true">

                  <!--<loader class="org.infinispan.loaders.file.FileCacheStore" fetchPersistentState="true">

                      <properties>

                          <property name="location" value="/var/opt/fullTextStore"/>

                      </properties>

                  </loader>-->

                  <loader class="org.infinispan.loaders.jdbc.binary.JdbcBinaryCacheStore" fetchPersistentState="true">

                      <properties>

                          <property name ="driverClass" value="com.mysql.jdbc.Driver"/>

                          <property name ="connectionUrl" value="jdbc:mysql://xserve1-pdx.cnet.cnwk:3306/foremandb_preview"/>

                          <property name ="userName" value="foremanuser" />

                          <property name ="password" value="f0r3manus3r" />

                          <property name ="dataColumnType" value="LONGBLOB" />

       

       

                          <property name="connectionFactoryClass" value="org.infinispan.loaders.jdbc.connectionfactory.SimpleConnectionFactory" />

                           <property name="bucketTableNamePrefix" value="lucene" />

                          <property name="cacheName" value="FullTextIndexes" />

                          <property name="idColumnType" value="VARCHAR(256)" />

                          <property name="idColumnName" value="idCol" />

                          <property name="dataColumnName" value="dataCol" />

       

       

                          <property name="timestampColumnName" value="timestampCol" />

                          <property name="timestampColumnType" value="BIGINT" />

       

       

                      </properties>

                  </loader>

              </loaders>

          </namedCache>

       

       

          <!-- **************************** -->

          <!--  Cache to store Lucene data  -->

          <!-- **************************** -->

          <namedCache name="LuceneIndexesData">

       

       

              <clustering mode="replication">

                  <stateRetrieval

                          fetchInMemoryState="true"

                          logFlushTimeout="30000"/>

                  <sync replTimeout="50000"/>

              </clustering>

              <loaders>

                 <!-- <loader class="org.infinispan.loaders.file.FileCacheStore" fetchPersistentState="true">

                      <properties>

                          <property name="location" value="/var/opt/fullTextStore"/>

                      </properties>

                  </loader>-->

                   <loader class="org.infinispan.loaders.jdbc.binary.JdbcBinaryCacheStore" fetchPersistentState="true">

                      <properties>

                          <property name ="driverClass" value="com.mysql.jdbc.Driver"/>

                          <property name ="connectionUrl" value="jdbc:mysql://xserve1-pdx.cnet.cnwk:3306/foremandb_preview"/>

                          <property name ="userName" value="foremanuser" />

                          <property name ="password" value="f0r3manus3r" />

                          <property name ="dataColumnType" value="LONGBLOB" />

       

       

                          <property name="connectionFactoryClass" value="org.infinispan.loaders.jdbc.connectionfactory.SimpleConnectionFactory" />

                          <property name="bucketTableNamePrefix" value="lucene" />

                          <property name="cacheName" value="FullTextIndexes" />

                          <property name="idColumnType" value="VARCHAR(256)" />

                         <property name="idColumnName" value="idCol" />

                         <property name="dataColumnName" value="dataCol" />

       

       

                         <property name="timestampColumnName" value="timestampCol" />

                         <property name="timestampColumnType" value="BIGINT" />

       

       

                      </properties>

                  </loader>

              </loaders>

          </namedCache>

       

       

          <!-- ***************************** -->

          <!--  Cache to store Lucene locks  -->

          <!-- ***************************** -->

          <namedCache

                  name="LuceneIndexesLocking">

              <clustering

                      mode="replication">

                  <stateRetrieval

                          fetchInMemoryState="true"

                          logFlushTimeout="30000"/>

                  <sync replTimeout="50000"/>

              </clustering>

          </namedCache>

       

       

      </infinispan>

       

      I would appreciate any help on this subject.