0 Replies Latest reply on Aug 31, 2010 2:51 AM by Anitha Kothandapani

    org.infinispan.statetransfer.StateTransferException: Provider cannot provide state!

    Anitha Kothandapani Newbie

      Hi

       

      I am getting the following exception when I run the following test case for entering Cache data in Table created by JdbcStringBasedCacheStore in Infinispan 4.0 Final. I am not using any jgroup configuration specific to my application.

       

       

      public class TestCluster {
       
           public static void main(String[] args) throws Exception
           {
                CacheManager manager = new DefaultCacheManager("C:/workspace/CacheTest/clusterTest2.xml");
                
                Cache cache = manager.getCache("MyCache");
                
               cache.put("key1", "value1");
                
                
                System.out.println("Cluster details : "+ manager.getClusterName());          
       
                manager.stop();
           }
           
                  
      }
      
      
      
      
      
      
      

       

       

      Aug 20, 2010 8:04:23 PM org.infinispan.remoting.transport.jgroups.JGroupsTransport start
      INFO: Starting JGroups Channel
      Aug 20, 2010 8:04:23 PM org.infinispan.util.logging.AbstractLogImpl info
      INFO: Unable to use any JGroups configuration mechanisms provided in properties {}.  Using default JGroups configuration!
      Aug 20, 2010 8:04:24 PM org.jgroups.logging.JDKLogImpl info
      INFO: JGroups version: 2.9.0.GA
      Aug 20, 2010 8:04:26 PM org.infinispan.util.logging.AbstractLogImpl info
      INFO: Received new cluster view: [SGFNode-1403|5] [SGFNode-1403, SGFNode-7921]
      Aug 20, 2010 8:04:27 PM org.infinispan.util.logging.AbstractLogImpl info
      INFO: Cache local address is SGFNode-7921, physical addresses are [16.181.193.139:3903]
      Aug 20, 2010 8:04:27 PM org.infinispan.factories.AbstractComponentRegistry internalStart
      INFO: Infinispan version: Infinispan 'Starobrno' 4.0.0.FINAL
      Aug 20, 2010 8:04:27 PM com.mchange.v2.log.MLog <clinit>
      INFO: MLog clients using java 1.4+ standard logging.
      Aug 20, 2010 8:04:27 PM com.mchange.v2.c3p0.C3P0Registry banner
      INFO: Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10]
      Aug 20, 2010 8:04:27 PM com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource getPoolManager
      INFO: Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> 4mwt578a13xljcoqt168q|14ed577, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> oracle.jdbc.OracleDriver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 4mwt578a13xljcoqt168q|14ed577, idleConnectionTestPeriod -> 0, initialPoolSize -> 3, jdbcUrl -> jdbc:oracle:thin:@16.138.175.147:1521:TPFDB, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 15, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 3, numHelperThreads -> 3, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ]
      Aug 20, 2010 8:04:28 PM org.infinispan.util.logging.AbstractLogImpl info
      INFO: Trying to fetch state from SGFNode-1403
      Aug 20, 2010 8:04:29 PM org.infinispan.remoting.transport.jgroups.JGroupsTransport setState
      SEVERE: Caught while requesting or applying state
      org.infinispan.statetransfer.StateTransferException: Provider cannot provide state!
          at org.infinispan.statetransfer.StateTransferManagerImpl.applyState(StateTransferManagerImpl.java:315)
          at org.infinispan.remoting.InboundInvocationHandlerImpl.applyState(InboundInvocationHandlerImpl.java:73)
          at org.infinispan.remoting.transport.jgroups.JGroupsTransport.setState(JGroupsTransport.java:564)
          at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.handleUpEvent(MessageDispatcher.java:657)
          at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:717)
          at org.jgroups.JChannel.up(JChannel.java:1413)
          at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:829)
          at org.jgroups.protocols.pbcast.FLUSH.up(FLUSH.java:489)
          at org.jgroups.protocols.pbcast.STREAMING_STATE_TRANSFER.connectToStateProvider(STREAMING_STATE_TRANSFER.java:529)
          at org.jgroups.protocols.pbcast.STREAMING_STATE_TRANSFER.handleStateRsp(STREAMING_STATE_TRANSFER.java:468)
          at org.jgroups.protocols.pbcast.STREAMING_STATE_TRANSFER.up(STREAMING_STATE_TRANSFER.java:230)
          at org.jgroups.protocols.FRAG2.up(FRAG2.java:188)
          at org.jgroups.protocols.FC.up(FC.java:475)
          at org.jgroups.protocols.pbcast.GMS.up(GMS.java:890)
          at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:236)
          at org.jgroups.protocols.UNICAST.handleDataReceived(UNICAST.java:596)
          at org.jgroups.protocols.UNICAST.up(UNICAST.java:275)
          at org.jgroups.protocols.pbcast.NAKACK.up(NAKACK.java:705)
          at org.jgroups.protocols.BARRIER.up(BARRIER.java:120)
          at org.jgroups.protocols.FD_ALL.up(FD_ALL.java:178)
          at org.jgroups.protocols.FD_SOCK.up(FD_SOCK.java:269)
          at org.jgroups.stack.Protocol.up(Protocol.java:340)
          at org.jgroups.protocols.Discovery.up(Discovery.java:277)
          at org.jgroups.protocols.PING.up(PING.java:67)
          at org.jgroups.protocols.TP.passMessageUp(TP.java:953)
          at org.jgroups.protocols.TP.access$100(TP.java:53)
          at org.jgroups.protocols.TP$IncomingPacket.handleMyMessage(TP.java:1457)
          at org.jgroups.protocols.TP$IncomingPacket.run(TP.java:1439)
          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:619)
      Aug 20, 2010 8:04:29 PM org.infinispan.remoting.rpc.RpcManagerImpl retrieveState
      WARNING: Could not find available peer for state, backing off and retrying
      Aug 20, 2010 8:04:30 PM org.infinispan.util.logging.AbstractLogImpl info
      INFO: Trying to fetch state from SGFNode-1403
      Aug 20, 2010 8:04:30 PM org.infinispan.remoting.transport.jgroups.JGroupsTransport setState
      SEVERE: Caught while requesting or applying state
      org.infinispan.statetransfer.StateTransferException: Provider cannot provide state!
          at org.infinispan.statetransfer.StateTransferManagerImpl.applyState(StateTransferManagerImpl.java:315)
          at org.infinispan.remoting.InboundInvocationHandlerImpl.applyState(InboundInvocationHandlerImpl.java:73)
          at org.infinispan.remoting.transport.jgroups.JGroupsTransport.setState(JGroupsTransport.java:564)
          at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.handleUpEvent(MessageDispatcher.java:657)
          at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:717)
          at org.jgroups.JChannel.up(JChannel.java:1413)
          at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:829)
          at org.jgroups.protocols.pbcast.FLUSH.up(FLUSH.java:489)
          at org.jgroups.protocols.pbcast.STREAMING_STATE_TRANSFER.connectToStateProvider(STREAMING_STATE_TRANSFER.java:529)
          at org.jgroups.protocols.pbcast.STREAMING_STATE_TRANSFER.handleStateRsp(STREAMING_STATE_TRANSFER.java:468)
          at org.jgroups.protocols.pbcast.STREAMING_STATE_TRANSFER.up(STREAMING_STATE_TRANSFER.java:230)
          at org.jgroups.protocols.FRAG2.up(FRAG2.java:188)
          at org.jgroups.protocols.FC.up(FC.java:475)
          at org.jgroups.protocols.pbcast.GMS.up(GMS.java:890)
          at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:236)
          at org.jgroups.protocols.UNICAST.handleDataReceived(UNICAST.java:596)
          at org.jgroups.protocols.UNICAST.up(UNICAST.java:275)
          at org.jgroups.protocols.pbcast.NAKACK.up(NAKACK.java:705)
          at org.jgroups.protocols.BARRIER.up(BARRIER.java:120)
          at org.jgroups.protocols.FD_ALL.up(FD_ALL.java:178)
          at org.jgroups.protocols.FD_SOCK.up(FD_SOCK.java:269)
          at org.jgroups.stack.Protocol.up(Protocol.java:340)
          at org.jgroups.protocols.Discovery.up(Discovery.java:277)
          at org.jgroups.protocols.PING.up(PING.java:67)
          at org.jgroups.protocols.TP.passMessageUp(TP.java:953)
          at org.jgroups.protocols.TP.access$100(TP.java:53)
          at org.jgroups.protocols.TP$IncomingPacket.handleMyMessage(TP.java:1457)
          at org.jgroups.protocols.TP$IncomingPacket.run(TP.java:1439)
          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:619)
      Aug 20, 2010 8:04:30 PM org.infinispan.remoting.rpc.RpcManagerImpl retrieveState
      WARNING: Could not find available peer for state, backing off and retrying
      Aug 20, 2010 8:04:32 PM org.infinispan.util.logging.AbstractLogImpl info
      INFO: Trying to fetch state from SGFNode-1403
      Aug 20, 2010 8:04:32 PM org.infinispan.remoting.transport.jgroups.JGroupsTransport setState
      SEVERE: Caught while requesting or applying state
      org.infinispan.statetransfer.StateTransferException: Provider cannot provide state!
          at org.infinispan.statetransfer.StateTransferManagerImpl.applyState(StateTransferManagerImpl.java:315)
          at org.infinispan.remoting.InboundInvocationHandlerImpl.applyState(InboundInvocationHandlerImpl.java:73)
          at org.infinispan.remoting.transport.jgroups.JGroupsTransport.setState(JGroupsTransport.java:564)
          at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.handleUpEvent(MessageDispatcher.java:657)
          at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:717)
          at org.jgroups.JChannel.up(JChannel.java:1413)
          at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:829)
          at org.jgroups.protocols.pbcast.FLUSH.up(FLUSH.java:489)
          at org.jgroups.protocols.pbcast.STREAMING_STATE_TRANSFER.connectToStateProvider(STREAMING_STATE_TRANSFER.java:529)
          at org.jgroups.protocols.pbcast.STREAMING_STATE_TRANSFER.handleStateRsp(STREAMING_STATE_TRANSFER.java:468)
          at org.jgroups.protocols.pbcast.STREAMING_STATE_TRANSFER.up(STREAMING_STATE_TRANSFER.java:230)
          at org.jgroups.protocols.FRAG2.up(FRAG2.java:188)
          at org.jgroups.protocols.FC.up(FC.java:475)
          at org.jgroups.protocols.pbcast.GMS.up(GMS.java:890)
          at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:236)
          at org.jgroups.protocols.UNICAST.handleDataReceived(UNICAST.java:596)
          at org.jgroups.protocols.UNICAST.up(UNICAST.java:275)
          at org.jgroups.protocols.pbcast.NAKACK.up(NAKACK.java:705)
          at org.jgroups.protocols.BARRIER.up(BARRIER.java:120)
          at org.jgroups.protocols.FD_ALL.up(FD_ALL.java:178)
          at org.jgroups.protocols.FD_SOCK.up(FD_SOCK.java:269)
          at org.jgroups.stack.Protocol.up(Protocol.java:340)
          at org.jgroups.protocols.Discovery.up(Discovery.java:277)
          at org.jgroups.protocols.PING.up(PING.java:67)
          at org.jgroups.protocols.TP.passMessageUp(TP.java:953)
          at org.jgroups.protocols.TP.access$100(TP.java:53)
          at org.jgroups.protocols.TP$IncomingPacket.handleMyMessage(TP.java:1457)
          at org.jgroups.protocols.TP$IncomingPacket.run(TP.java:1439)
          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:619)
      Aug 20, 2010 8:04:32 PM org.infinispan.remoting.rpc.RpcManagerImpl retrieveState
      WARNING: Could not find available peer for state, backing off and retrying
      Aug 20, 2010 8:04:36 PM org.infinispan.util.logging.AbstractLogImpl info
      INFO: Trying to fetch state from SGFNode-1403
      Aug 20, 2010 8:04:36 PM org.infinispan.remoting.transport.jgroups.JGroupsTransport setState
      SEVERE: Caught while requesting or applying state
      org.infinispan.statetransfer.StateTransferException: Provider cannot provide state!
          at org.infinispan.statetransfer.StateTransferManagerImpl.applyState(StateTransferManagerImpl.java:315)
          at org.infinispan.remoting.InboundInvocationHandlerImpl.applyState(InboundInvocationHandlerImpl.java:73)
          at org.infinispan.remoting.transport.jgroups.JGroupsTransport.setState(JGroupsTransport.java:564)
          at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.handleUpEvent(MessageDispatcher.java:657)
          at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:717)
          at org.jgroups.JChannel.up(JChannel.java:1413)
          at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:829)
          at org.jgroups.protocols.pbcast.FLUSH.up(FLUSH.java:489)
          at org.jgroups.protocols.pbcast.STREAMING_STATE_TRANSFER.connectToStateProvider(STREAMING_STATE_TRANSFER.java:529)
          at org.jgroups.protocols.pbcast.STREAMING_STATE_TRANSFER.handleStateRsp(STREAMING_STATE_TRANSFER.java:468)
          at org.jgroups.protocols.pbcast.STREAMING_STATE_TRANSFER.up(STREAMING_STATE_TRANSFER.java:230)
          at org.jgroups.protocols.FRAG2.up(FRAG2.java:188)
          at org.jgroups.protocols.FC.up(FC.java:475)
          at org.jgroups.protocols.pbcast.GMS.up(GMS.java:890)
          at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:236)
          at org.jgroups.protocols.UNICAST.handleDataReceived(UNICAST.java:596)
          at org.jgroups.protocols.UNICAST.up(UNICAST.java:275)
          at org.jgroups.protocols.pbcast.NAKACK.up(NAKACK.java:705)
          at org.jgroups.protocols.BARRIER.up(BARRIER.java:120)
          at org.jgroups.protocols.FD_ALL.up(FD_ALL.java:178)
          at org.jgroups.protocols.FD_SOCK.up(FD_SOCK.java:269)
          at org.jgroups.stack.Protocol.up(Protocol.java:340)
          at org.jgroups.protocols.Discovery.up(Discovery.java:277)
          at org.jgroups.protocols.PING.up(PING.java:67)
          at org.jgroups.protocols.TP.passMessageUp(TP.java:953)
          at org.jgroups.protocols.TP.access$100(TP.java:53)
          at org.jgroups.protocols.TP$IncomingPacket.handleMyMessage(TP.java:1457)
          at org.jgroups.protocols.TP$IncomingPacket.run(TP.java:1439)
          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:619)
      Aug 20, 2010 8:04:36 PM org.infinispan.remoting.rpc.RpcManagerImpl retrieveState
      WARNING: Could not find available peer for state, backing off and retrying
      Aug 20, 2010 8:04:44 PM org.infinispan.util.logging.AbstractLogImpl info
      INFO: Trying to fetch state from SGFNode-1403
      Aug 20, 2010 8:04:44 PM org.infinispan.remoting.transport.jgroups.JGroupsTransport setState
      SEVERE: Caught while requesting or applying state
      org.infinispan.statetransfer.StateTransferException: Provider cannot provide state!
          at org.infinispan.statetransfer.StateTransferManagerImpl.applyState(StateTransferManagerImpl.java:315)
          at org.infinispan.remoting.InboundInvocationHandlerImpl.applyState(InboundInvocationHandlerImpl.java:73)
          at org.infinispan.remoting.transport.jgroups.JGroupsTransport.setState(JGroupsTransport.java:564)
          at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.handleUpEvent(MessageDispatcher.java:657)
          at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:717)
          at org.jgroups.JChannel.up(JChannel.java:1413)
          at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:829)
          at org.jgroups.protocols.pbcast.FLUSH.up(FLUSH.java:489)
          at org.jgroups.protocols.pbcast.STREAMING_STATE_TRANSFER.connectToStateProvider(STREAMING_STATE_TRANSFER.java:529)
          at org.jgroups.protocols.pbcast.STREAMING_STATE_TRANSFER.handleStateRsp(STREAMING_STATE_TRANSFER.java:468)
          at org.jgroups.protocols.pbcast.STREAMING_STATE_TRANSFER.up(STREAMING_STATE_TRANSFER.java:230)
          at org.jgroups.protocols.FRAG2.up(FRAG2.java:188)
          at org.jgroups.protocols.FC.up(FC.java:475)
          at org.jgroups.protocols.pbcast.GMS.up(GMS.java:890)
          at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:236)
          at org.jgroups.protocols.UNICAST.handleDataReceived(UNICAST.java:596)
          at org.jgroups.protocols.UNICAST.up(UNICAST.java:275)
          at org.jgroups.protocols.pbcast.NAKACK.up(NAKACK.java:705)
          at org.jgroups.protocols.BARRIER.up(BARRIER.java:120)
          at org.jgroups.protocols.FD_ALL.up(FD_ALL.java:178)
          at org.jgroups.protocols.FD_SOCK.up(FD_SOCK.java:269)
          at org.jgroups.stack.Protocol.up(Protocol.java:340)
          at org.jgroups.protocols.Discovery.up(Discovery.java:277)
          at org.jgroups.protocols.PING.up(PING.java:67)
          at org.jgroups.protocols.TP.passMessageUp(TP.java:953)
          at org.jgroups.protocols.TP.access$100(TP.java:53)
          at org.jgroups.protocols.TP$IncomingPacket.handleMyMessage(TP.java:1457)
          at org.jgroups.protocols.TP$IncomingPacket.run(TP.java:1439)
          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:619)
      Aug 20, 2010 8:04:44 PM org.infinispan.remoting.rpc.RpcManagerImpl retrieveState
      WARNING: Could not find available peer for state, backing off and retrying
      Exception in thread "main" org.infinispan.CacheException: Unable to invoke method public void org.infinispan.statetransfer.StateTransferManagerImpl.start() throws org.infinispan.statetransfer.StateTransferException on object 
          at org.infinispan.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:173)
          at org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod.invoke(AbstractComponentRegistry.java:852)
          at org.infinispan.factories.AbstractComponentRegistry.internalStart(AbstractComponentRegistry.java:672)
          at org.infinispan.factories.AbstractComponentRegistry.start(AbstractComponentRegistry.java:574)
          at org.infinispan.factories.ComponentRegistry.start(ComponentRegistry.java:148)
          at org.infinispan.CacheDelegate.start(CacheDelegate.java:311)
          at org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:507)
          at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:473)
          at TestCluster.main(TestCluster.java:12)
      Caused by: java.lang.reflect.InvocationTargetException
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.infinispan.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:170)
          ... 8 more
      Caused by: org.infinispan.statetransfer.StateTransferException: Unable to fetch state on startup
          at org.infinispan.remoting.rpc.RpcManagerImpl.retrieveState(RpcManagerImpl.java:185)
          at org.infinispan.statetransfer.StateTransferManagerImpl.start(StateTransferManagerImpl.java:123)
          ... 13 more
      

       

       

      Given below is the cofiguration which I use

      <?xml version="1.0" encoding="UTF-8"?>
      <infinispan
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="urn:infinispan:config:4.0 http://www.infinispan.org/schemas/infinispan-config-4.0.xsd"
            xmlns="urn:infinispan:config:4.0">
            <global>
      
           <replicationQueueScheduledExecutor factory="org.infinispan.executors.DefaultScheduledExecutorFactory">
               <properties>
                    <property name="threadNamePrefix" value="ReplicationQueueThread"/>
               </properties>
            </replicationQueueScheduledExecutor>
      
            <globalJmxStatistics enabled="true" jmxDomain="infinispan"/>
      
           
            <transport clusterName="Test-cluster" distributedSyncTimeout="50000" nodeName="SGFNode"/>
           
            <serialization marshallerClass="org.infinispan.marshall.VersionAwareMarshaller" version="1.0"/>
      
          
            <shutdown hookBehavior="DEFAULT"/>
         </global>
         <default>
         
          <clustering mode="replication">
      
               <!--
                  Defines whether to retrieve state on startup
               -->
               <stateRetrieval timeout="20000" fetchInMemoryState="false"/>
      
               <!--
                  Network calls are synchronous.
               -->
               <sync replTimeout="20000"/>
               <!--
                  Uncomment this for async replication.
               -->
               <!--<async useReplQueue="true" replQueueInterval="10000" replQueueMaxElements="500"/>-->
            </clustering>
         </default>
      <namedCache name="MyCache">
        <locking isolationLevel="READ_COMMITTED" lockAcquisitionTimeout="150000"/>
            <transaction transactionManagerLookupClass="org.infinispan.transaction.lookup.DummyTransactionManagerLookup"/>
           <clustering mode="replication">
               <stateRetrieval timeout="20000" fetchInMemoryState="true"/>         
               <sync replTimeout="20000"/>        
            </clustering>
            
           <loaders>  
                  <loader class="org.infinispan.loaders.jdbc.stringbased.JdbcStringBasedCacheStore" fetchPersistentState="false" ignoreModifications="false" purgeOnStartup="false">
            <properties>
               <property name="stringsTableNamePrefix" value="ISPN_STRING_TABLE"/>
               <property name="idColumnName" value="ID_COLUMN"/>
               <property name="dataColumnName" value="DATA_COLUMN"/>
               <property name="timestampColumnName" value="TIMESTAMP_COLUMN"/>
               <property name="timestampColumnType" value="NUMBER(19)"/>
               <property name="connectionFactoryClass" value="org.infinispan.loaders.jdbc.connectionfactory.PooledConnectionFactory"/>
               <property name="connectionUrl" value="jdbc:oracle:thin:@myIp:1521:TPFDB"/>
               <property name="userName" value="myuser"/>
                 <property name="password" value="mypassword"/>
               <property name="driverClass" value="oracle.jdbc.OracleDriver"/>
               <property name="idColumnType" value="VARCHAR2(500)"/>
               <property name="dataColumnType" value="BLOB"/>
               <property name="dropTableOnExit" value="true"/>
               <property name="createTableOnStart" value="true"/>
            </properties>
         </loader>
            </loaders> 
       </namedCache>
       
       </infinispan>
      
      
      
      
      
      
      

       


       


      The above configuration has created the table ISPN_STRING_TABLEMYCACHE without any data.And if I run the Test.java again it inserts the data(key1, value1) into the db and gives the following exception. Why is not inserting the cache data at the first call itself ?

      Aug 20, 2010 8:13:57 PM org.infinispan.remoting.transport.jgroups.JGroupsTransport start
      INFO: Starting JGroups Channel
      Aug 20, 2010 8:13:57 PM org.infinispan.util.logging.AbstractLogImpl info
      INFO: Unable to use any JGroups configuration mechanisms provided in properties {}.  Using default JGroups configuration!
      Aug 20, 2010 8:13:57 PM org.jgroups.logging.JDKLogImpl info
      INFO: JGroups version: 2.9.0.GA
      Aug 20, 2010 8:13:57 PM org.infinispan.util.logging.AbstractLogImpl info
      INFO: Received new cluster view: [SGFNode-1403|12] [SGFNode-1403, SGFNode-7921, SGFNode-40876]
      Aug 20, 2010 8:13:57 PM org.infinispan.util.logging.AbstractLogImpl info
      INFO: Cache local address is SGFNode-40876, physical addresses are [16.181.193.139:4005]
      Aug 20, 2010 8:13:57 PM org.infinispan.factories.AbstractComponentRegistry internalStart
      INFO: Infinispan version: Infinispan 'Starobrno' 4.0.0.FINAL
      Aug 20, 2010 8:13:58 PM com.mchange.v2.log.MLog <clinit>
      INFO: MLog clients using java 1.4+ standard logging.
      Aug 20, 2010 8:13:58 PM com.mchange.v2.c3p0.C3P0Registry banner
      INFO: Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10]
      Aug 20, 2010 8:13:58 PM com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource getPoolManager
      INFO: Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> 4mwt578a13xxrry1q2a3ye|a45a24, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> oracle.jdbc.OracleDriver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 4mwt578a13xxrry1q2a3ye|a45a24, idleConnectionTestPeriod -> 0, initialPoolSize -> 3, jdbcUrl -> jdbc:oracle:thin:@16.138.175.147:1521:TPFDB, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 15, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 3, numHelperThreads -> 3, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ]
      Aug 20, 2010 8:13:58 PM org.infinispan.util.logging.AbstractLogImpl info
      INFO: Trying to fetch state from SGFNode-1403
      Aug 20, 2010 8:13:58 PM org.infinispan.remoting.transport.jgroups.JGroupsTransport setState
      SEVERE: Caught while requesting or applying state
      org.infinispan.statetransfer.StateTransferException: Provider cannot provide state!
          at org.infinispan.statetransfer.StateTransferManagerImpl.applyState(StateTransferManagerImpl.java:315)
          at org.infinispan.remoting.InboundInvocationHandlerImpl.applyState(InboundInvocationHandlerImpl.java:73)
          at org.infinispan.remoting.transport.jgroups.JGroupsTransport.setState(JGroupsTransport.java:564)
          at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.handleUpEvent(MessageDispatcher.java:657)
          at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:717)
          at org.jgroups.JChannel.up(JChannel.java:1413)
          at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:829)
          at org.jgroups.protocols.pbcast.FLUSH.up(FLUSH.java:489)
          at org.jgroups.protocols.pbcast.STREAMING_STATE_TRANSFER.connectToStateProvider(STREAMING_STATE_TRANSFER.java:529)
          at org.jgroups.protocols.pbcast.STREAMING_STATE_TRANSFER.handleStateRsp(STREAMING_STATE_TRANSFER.java:468)
          at org.jgroups.protocols.pbcast.STREAMING_STATE_TRANSFER.up(STREAMING_STATE_TRANSFER.java:230)
          at org.jgroups.protocols.FRAG2.up(FRAG2.java:188)
          at org.jgroups.protocols.FC.up(FC.java:475)
          at org.jgroups.protocols.pbcast.GMS.up(GMS.java:890)
          at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:236)
          at org.jgroups.protocols.UNICAST.handleDataReceived(UNICAST.java:596)
          at org.jgroups.protocols.UNICAST.up(UNICAST.java:275)
          at org.jgroups.protocols.pbcast.NAKACK.up(NAKACK.java:705)
          at org.jgroups.protocols.BARRIER.up(BARRIER.java:120)
          at org.jgroups.protocols.FD_ALL.up(FD_ALL.java:178)
          at org.jgroups.protocols.FD_SOCK.up(FD_SOCK.java:269)
          at org.jgroups.stack.Protocol.up(Protocol.java:340)
          at org.jgroups.protocols.Discovery.up(Discovery.java:277)
          at org.jgroups.protocols.PING.up(PING.java:67)
          at org.jgroups.protocols.TP.passMessageUp(TP.java:953)
          at org.jgroups.protocols.TP.access$100(TP.java:53)
          at org.jgroups.protocols.TP$IncomingPacket.handleMyMessage(TP.java:1457)
          at org.jgroups.protocols.TP$IncomingPacket.run(TP.java:1439)
          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:619)
      Aug 20, 2010 8:13:58 PM org.infinispan.util.logging.AbstractLogImpl info
      INFO: Trying to fetch state from SGFNode-7921
      Aug 20, 2010 8:13:58 PM org.infinispan.util.logging.AbstractLogImpl info
      INFO: Successfully retrieved and applied state from SGFNode-7921
      Aug 20, 2010 8:13:58 PM org.infinispan.factories.AbstractComponentRegistry internalStart
      INFO: Infinispan version: Infinispan 'Starobrno' 4.0.0.FINAL
      Cluster details : Test-cluster
      Aug 20, 2010 8:14:18 PM org.infinispan.remoting.transport.jgroups.JGroupsTransport stop
      INFO: Disconnecting and closing JGroups Channel
      Aug 20, 2010 8:14:19 PM org.infinispan.remoting.transport.jgroups.JGroupsTransport stop
      INFO: Stopping the RpcDispatcher
      


      Please help me to understand why this exception is occuring when Infinispan uses its default Jgroups Configuration as mentioned in log messages above