[jboss-user] [JBossCache] - Re: Migrating from JBCache 1.2.3 to 1.4.0 SP1

Stephane75 do-not-reply at jboss.com
Mon Oct 23 12:40:18 EDT 2006


"manik.surtani at jboss.com" wrote : You will need to switch JBoss Cache to DEBUG level and JGroups to INFO level logging and look at the startup log to ascertain why the nodes don't discover each other.  
  | 
  | Which OS is this on?

The OS is Windows XP (development platform).

Here is the log when it doesn't work :
2006-10-23 18:32:05,937 [main] INFO  org.jboss.cache.PropertyConfigurator - Found existing property editor for org.w3c.dom.Element: org.jboss.util.propertyeditor.ElementEditor at c6e1ec
2006-10-23 18:32:06,515 [main] INFO  org.jboss.cache.PropertyConfigurator - attribute size: 11
2006-10-23 18:32:06,562 [main] DEBUG org.jboss.cache.PropertyConfigurator - setting attribute IsolationLevel to NONE
2006-10-23 18:32:06,578 [main] DEBUG org.jboss.cache.PropertyConfigurator - setting attribute CacheMode to REPL_ASYNC
2006-10-23 18:32:06,578 [main] DEBUG org.jboss.cache.PropertyConfigurator - Invoking setter method: public void org.jboss.cache.TreeCache.setUseReplQueue(boolean) with parameter "false" of type class java.lang.Boolean
2006-10-23 18:32:06,578 [main] DEBUG org.jboss.cache.PropertyConfigurator - Invoking setter method: public void org.jboss.cache.TreeCache.setReplQueueInterval(long) with parameter "0" of type class java.lang.Long
2006-10-23 18:32:06,578 [main] DEBUG org.jboss.cache.PropertyConfigurator - Invoking setter method: public void org.jboss.cache.TreeCache.setReplQueueMaxElements(int) with parameter "0" of type class java.lang.Integer
2006-10-23 18:32:06,578 [main] DEBUG org.jboss.cache.PropertyConfigurator - setting attribute ClusterName to lbsCache
2006-10-23 18:32:06,578 [main] DEBUG org.jboss.cache.PropertyConfigurator - Invoking setter method: public void org.jboss.cache.TreeCache.setClusterConfig(org.w3c.dom.Element) with parameter "[config: null]" of type class org.apache.xerces.dom.DeferredElementImpl
2006-10-23 18:32:06,578 [main] DEBUG org.jboss.cache.TreeCache - setting cluster properties from xml to: TCP(bind_addr=cerise;loopback=true;start_port=7800):TCPPING(down_thread=true;initial_hosts=cerise[7800],poire[7800];num_initial_members=3;port_range=1;timeout=3500;up_thread=true):MERGE2(max_interval=10000;min_interval=5000):FD(down_thread=true;max_tries=5;shun=true;timeout=2500;up_thread=true):VERIFY_SUSPECT(down_thread=false;timeout=1500;up_thread=false):pbcast.NAKACK(down_thread=true;gc_lag=100;retransmit_timeout=3000;up_thread=true):pbcast.STABLE(desired_avg_gossip=20000;down_thread=false;up_thread=false):pbcast.GMS(down_thread=true;join_retry_timeout=2000;join_timeout=5000;print_local_addr=true;shun=false;up_thread=true):pbcast.STATE_TRANSFER(down_thread=true;up_thread=true)
2006-10-23 18:32:06,578 [main] DEBUG org.jboss.cache.PropertyConfigurator - Invoking setter method: public void org.jboss.cache.TreeCache.setFetchInMemoryState(boolean) with parameter "true" of type class java.lang.Boolean
2006-10-23 18:32:06,578 [main] DEBUG org.jboss.cache.PropertyConfigurator - Invoking setter method: public void org.jboss.cache.TreeCache.setInitialStateRetrievalTimeout(long) with parameter "5000" of type class java.lang.Long
2006-10-23 18:32:06,578 [main] DEBUG org.jboss.cache.PropertyConfigurator - Invoking setter method: public void org.jboss.cache.TreeCache.setSyncReplTimeout(long) with parameter "10000" of type class java.lang.Long
2006-10-23 18:32:06,578 [main] DEBUG org.jboss.cache.PropertyConfigurator - Invoking setter method: public void org.jboss.cache.TreeCache.setLockAcquisitionTimeout(long) with parameter "15000" of type class java.lang.Long
2006-10-23 18:32:06,578 [main] WARN  org.jboss.cache.TreeCache - No transaction manager lookup class has been defined. Transactions cannot be used
2006-10-23 18:32:06,593 [main] DEBUG org.jboss.cache.TreeCache - Not using an EvictionPolicy
2006-10-23 18:32:06,671 [main] INFO  org.jboss.cache.factories.InterceptorChainFactory - interceptor chain is:
class org.jboss.cache.interceptors.CallInterceptor
class org.jboss.cache.interceptors.PessimisticLockInterceptor
class org.jboss.cache.interceptors.UnlockInterceptor
class org.jboss.cache.interceptors.ReplicationInterceptor
class org.jboss.cache.interceptors.TxInterceptor
class org.jboss.cache.interceptors.CacheMgmtInterceptor
2006-10-23 18:32:06,703 [main] DEBUG org.jboss.cache.TreeCache - cache mode is REPL_ASYNC

Here is the log when it works :
2006-10-23 18:34:21,234 [main] INFO  org.jboss.cache.PropertyConfigurator - Found existing property editor for org.w3c.dom.Element: org.jboss.util.propertyeditor.ElementEditor at 158f1fa
2006-10-23 18:34:21,812 [main] INFO  org.jboss.cache.PropertyConfigurator - configure(): attribute size: 11
2006-10-23 18:34:21,812 [main] DEBUG org.jboss.cache.PropertyConfigurator - setting attribute IsolationLevel to NONE
2006-10-23 18:34:21,812 [main] DEBUG org.jboss.cache.PropertyConfigurator - setting attribute CacheMode to REPL_ASYNC
2006-10-23 18:34:21,812 [main] DEBUG org.jboss.cache.PropertyConfigurator - Invoking setter method: public void org.jboss.cache.TreeCache.setUseReplQueue(boolean) with parameter "false" of type class java.lang.Boolean
2006-10-23 18:34:21,812 [main] DEBUG org.jboss.cache.PropertyConfigurator - Invoking setter method: public void org.jboss.cache.TreeCache.setReplQueueInterval(long) with parameter "0" of type class java.lang.Long
2006-10-23 18:34:21,812 [main] DEBUG org.jboss.cache.PropertyConfigurator - Invoking setter method: public void org.jboss.cache.TreeCache.setReplQueueMaxElements(int) with parameter "0" of type class java.lang.Integer
2006-10-23 18:34:21,812 [main] DEBUG org.jboss.cache.PropertyConfigurator - setting attribute ClusterName to lbsCache
2006-10-23 18:34:21,828 [main] DEBUG org.jboss.cache.PropertyConfigurator - Invoking setter method: public void org.jboss.cache.TreeCache.setClusterConfig(org.w3c.dom.Element) with parameter "[config: null]" of type class org.apache.xerces.dom.DeferredElementImpl
2006-10-23 18:34:21,828 [main] INFO  org.jboss.cache.TreeCache - setting cluster properties from xml to: TCP(bind_addr=cerise;loopback=true;start_port=7800):TCPPING(down_thread=true;initial_hosts=cerise[7800],poire[7800];num_initial_members=3;port_range=1;timeout=3500;up_thread=true):MERGE2(max_interval=10000;min_interval=5000):FD(down_thread=true;max_tries=5;shun=true;timeout=2500;up_thread=true):VERIFY_SUSPECT(down_thread=false;timeout=1500;up_thread=false):pbcast.NAKACK(down_thread=true;gc_lag=100;retransmit_timeout=3000;up_thread=true):pbcast.STABLE(desired_avg_gossip=20000;down_thread=false;up_thread=false):pbcast.GMS(down_thread=true;join_retry_timeout=2000;join_timeout=5000;print_local_addr=true;shun=false;up_thread=true):pbcast.STATE_TRANSFER(down_thread=true;up_thread=true)
2006-10-23 18:34:21,828 [main] DEBUG org.jboss.cache.PropertyConfigurator - Invoking setter method: public void org.jboss.cache.TreeCache.setInitialStateRetrievalTimeout(long) with parameter "5000" of type class java.lang.Long
2006-10-23 18:34:21,828 [main] DEBUG org.jboss.cache.PropertyConfigurator - Invoking setter method: public void org.jboss.cache.TreeCache.setSyncReplTimeout(long) with parameter "10000" of type class java.lang.Long
2006-10-23 18:34:21,828 [main] DEBUG org.jboss.cache.PropertyConfigurator - Invoking setter method: public void org.jboss.cache.TreeCache.setLockAcquisitionTimeout(long) with parameter "15000" of type class java.lang.Long
2006-10-23 18:34:21,828 [main] WARN  org.jboss.cache.TreeCache - No transaction manager lookup class has been defined. Transactions cannot be used
2006-10-23 18:34:21,843 [main] INFO  org.jboss.cache.TreeCache - interceptor chain is:
class org.jboss.cache.interceptors.CallInterceptor
class org.jboss.cache.interceptors.LockInterceptor
class org.jboss.cache.interceptors.UnlockInterceptor
class org.jboss.cache.interceptors.ReplicationInterceptor
2006-10-23 18:34:21,843 [main] INFO  org.jboss.cache.TreeCache - cache mode is REPL_ASYNC
2006-10-23 18:34:22,281 [main] DEBUG org.jboss.cache.TreeCache - cache properties: TCP(bind_addr=cerise;loopback=true;start_port=7800):TCPPING(down_thread=true;initial_hosts=cerise[7800],poire[7800];num_initial_members=3;port_range=1;timeout=3500;up_thread=true):MERGE2(max_interval=10000;min_interval=5000):FD(down_thread=true;max_tries=5;shun=true;timeout=2500;up_thread=true):VERIFY_SUSPECT(down_thread=false;timeout=1500;up_thread=false):pbcast.NAKACK(down_thread=true;gc_lag=100;retransmit_timeout=3000;up_thread=true):pbcast.STABLE(desired_avg_gossip=20000;down_thread=false;up_thread=false):pbcast.GMS(down_thread=true;join_retry_timeout=2000;join_timeout=5000;print_local_addr=true;shun=false;up_thread=true):pbcast.STATE_TRANSFER(down_thread=true;up_thread=true)
2006-10-23 18:34:22,375 [DownHandler (TCP)] INFO  org.jgroups.blocks.ConnectionTable - server socket created on 192.168.1.61:7800
2006-10-23 18:34:25,937 [DownHandler (STATE_TRANSFER)] INFO  org.jboss.cache.TreeCache - new cache is null (maybe first member in cluster)
2006-10-23 18:34:25,937 [main] INFO  org.jboss.cache.TreeCache - state could not be retrieved (must be first member in group)
2006-10-23 18:34:25,953 [UpHandler (STATE_TRANSFER)] INFO  org.jboss.cache.TreeCache - viewAccepted(): new members: [192.168.1.61:7800]

It seems that the difference is in the interceptor chain.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980100#3980100

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980100



More information about the jboss-user mailing list