0 Replies Latest reply on Apr 2, 2009 9:12 AM by navaneethforu

    java.lang.IllegalStateException: Cache not in STARTED state!

    navaneethforu

      I am getting this error when one of the managed server in cluster is restarted.


      CODE:

      java.lang.IllegalStateException: Cache not in STARTED state!
       at org.jboss.cache.invocation.CacheInvocationDelegate.cacheStatusCheck(CacheInvocationDelegate.java:584)
       at org.jboss.cache.invocation.CacheInvocationDelegate.getNode(CacheInvocationDelegate.java:418)
       at org.jboss.cache.invocation.NodeInvocationDelegate.getChild(NodeInvocationDelegate.java:329)
       at com.PPP.helper.common.PPPCacheManager.getNode(PPPCacheManager.java:370)
       at com.PPP.helper.common.PPPCacheManager.putInCache(PPPCacheManager.java:490)
       at com.PPP.helper.common.PPPCacheManager.putInCache(PPPCacheManager.java:447)
       at com.PPP.helper.dataaccess.AdvSchDataAccess.getSearchFieldDetailsList(AdvSchDataAccess.java:198)
       at com.PPP.common.session.impl.AdvSchSFBean.getSearchFieldDetailsList(AdvSchSFBean.java:282)
       at sun.reflect.GeneratedMethodAccessor435.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)


      Here is my cache config file
      <?xml version="1.0" encoding="UTF-8" ?>
      <server>
       <mbean code="org.jboss.cache.jmx.CacheJmxWrapper" name="jboss.cache:service=TreeCache">
       <!-- Configure the TransactionManager -->
       <!--
       <attribute name="TransactionManagerLookupClass">org.jboss.cache.transaction.GenericTransactionManagerLookup</attribute>
       -->
       <!-- Isolation level : SERIALIZABLE, REPEATABLE_READ (default), READ_COMMITTED, READ_UNCOMMITTED, NONE -->
       <attribute name="IsolationLevel">
       READ_COMMITTED
       </attribute>
       <!-- Valid modes are LOCAL, REPL_ASYNC, REPL_SYNC, INVALIDATION_ASYNC, INVALIDATION_SYNC -->
       <attribute name="CacheMode">
       REPL_SYNC
       </attribute>
       <!-- Name of cluster. Needs to be the same for all caches, in order for them to find each other -->
       <attribute name="ClusterName">CLUSTER_TEST</attribute>
       <!-- Whether or not to fetch state on joining a cluster -->
       <attribute name="FetchInMemoryState">true</attribute>
       <!-- The max amount of time (in milliseconds) we wait until the initial state (ie. the contents of the cache) are retrieved from existing members in a clustered environment -->
       <attribute name="StateRetrievalTimeout">15000</attribute>
       <!-- Number of milliseconds to wait until all responses for a synchronous call have been received. -->
       <attribute name="SyncReplTimeout">15000</attribute>
       <!-- Max number of milliseconds to wait for a lock acquisition -->
       <attribute name="LockAcquisitionTimeout">10000</attribute>
       <!-- Indicate whether to use region based marshalling or not. Set this to true if you are running under a scoped class loader, e.g., inside an application server. Default is "false".-->
       <attribute name="UseRegionBasedMarshalling">true</attribute>
       <!-- Controls the behaviour of the commit part in a 2-phase commit protocol. Use only with REPL_SYNC and is false by default -->
       <attribute name="SyncCommitPhase">true</attribute>
       <!-- Controls the behaviour of the roll back part in a 2-phase commit protocol. Use only with REPL_SYNC and is false by default -->
       <attribute name="SyncRollbackPhase">true</attribute>
       <!-- Node locking scheme:OPTIMISTIC, PESSIMISTIC (default) -->
       <attribute name="NodeLockingScheme">PESSIMISTIC</attribute>
       <!-- ASYNC: Just used for async repl: use a replication queue -->
       <attribute name="UseReplQueue">false</attribute>
       <!-- ASYNC: Replication interval for replication queue (in ms) -->
       <attribute name="ReplQueueInterval">0</attribute>
       <!-- ASYNC: Max number of elements which trigger replication -->
       <attribute name="ReplQueueMaxElements">0</attribute>
       <!-- EvictionPolicyConfig -->
       <attribute name="EvictionPolicyConfig">
       <config>
       <attribute name="wakeUpIntervalSeconds">30</attribute>
       <attribute name="eventQueueSize">200000</attribute>
       <attribute name="policyClass">org.jboss.cache.eviction.LRUPolicy</attribute>
       <region name="/_default_">
       <attribute name="maxNodes">50000000</attribute>
       <attribute name="timeToLiveSeconds">3600</attribute>
       <attribute name="maxAgeSeconds">3600</attribute>
       </region>
       </config>
       </attribute>
      
       <!-- JGroups protocol stack properties. ClusterConfig isn't used if the multiplexer is enabled and successfully initialized.-->
       <attribute name="ClusterConfig">
       <config>
       <!-- UDP: if you have a multihomed machine, set the bind_addr attribute to the appropriate NIC IP address -->
       <!-- UDP: On Windows machines, because of the media sense feature being broken with multicast (even after disabling media sense) set the loopback attribute to true -->
       <UDP
       mcast_addr="228.1.2.3" mcast_port="48866"
       tos="8"
       ucast_recv_buf_size="20000000" ucast_send_buf_size="640000"
       mcast_recv_buf_size="25000000" mcast_send_buf_size="640000"
       loopback="false"
       discard_incompatible_packets="true"
       max_bundle_size="64000" max_bundle_timeout="30"
       use_incoming_packet_handler="true" use_outgoing_packet_handler="false"
       ip_ttl="2"
       down_thread="false" up_thread="false"
       enable_bundling="false"/>
       <PING timeout="2000" down_thread="false" up_thread="false" num_initial_members="3"/>
       <MERGE2 max_interval="100000" down_thread="false" up_thread="false" min_interval="20000"/>
       <FD_SOCK down_thread="false" up_thread="false"/>
       <FD timeout="10000" max_tries="5" down_thread="false" up_thread="false" shun="true"/>
       <VERIFY_SUSPECT timeout="1500" down_thread="false" up_thread="false"/>
       <pbcast.NAKACK max_xmit_size="60000" use_mcast_xmit="false" gc_lag="0" retransmit_timeout="300,600,1200,2400,4800" down_thread="false" up_thread="false" discard_delivered_msgs="true"/>
       <UNICAST timeout="300,600,1200,2400,3600" down_thread="false" up_thread="false"/>
       <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000" down_thread="false" up_thread="false" max_bytes="400000"/>
       <pbcast.GMS print_local_addr="true" join_timeout="3000" down_thread="false" up_thread="false" join_retry_timeout="2000" shun="false" view_bundling="true"/>
       <FRAG2 frag_size="60000" down_thread="false" up_thread="false"/>
       <!-- <pbcast.STREAMING_STATE_TRANSFER down_thread="false" up_thread="false" use_reading_thread="true"/> -->
       <pbcast.STATE_TRANSFER down_thread="false" up_thread="false"/>
       <pbcast.FLUSH down_thread="false" up_thread="false" timeout="6000"/>
       </config>
       </attribute>
       </mbean>
      </server>



      Please let me know if you need any other details.

      Any help will be much appreciated.