[JBoss-user] [JBossCache] - Re: NullPointerException in LRUPolicy.nodeAdded

2006-02-23 Thread hjshi2000
yes it has descriptor jboss.cache:service=SessionCache where jboss.cache:service=SessionCache is the name of TreeCacheMBean View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925896#3925896 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posti

[JBoss-user] [JBossCache] - Re: NullPointerException in LRUPolicy.nodeAdded

2006-02-21 Thread hjshi2000
Yes. it's working in single machine. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925395#3925395 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3925395 --- This SF.

[JBoss-user] [JBossCache] - Re: NullPointerException in LRUPolicy.nodeAdded

2006-02-18 Thread hjshi2000
It happens right after state transfer. I can dupliate the problem. Seems there is a race condition, where the MBean has not yet finishing reading evict policy config at that time. I created the cache in startSerice(): protected void startService() throws Exception { if (cacheName == null)

[JBoss-user] [JBossCache] - Re: NullPointerException in LRUPolicy.nodeAdded

2006-02-17 Thread hjshi2000
my Eviction config is as follows: org.jboss.cache.eviction.LRUPolicy 10 2 0 0

[JBoss-user] [JBossCache] - Re: NullPointerException in LRUPolicy.nodeAdded

2006-02-17 Thread hjshi2000
Sorry I mean I am running JBOSS TreeCache 1.2.3 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3924707#3924707 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3924707 -

[JBoss-user] [JBossCache] - NullPointerException in LRUPolicy.nodeAdded

2006-02-17 Thread hjshi2000
Hi. I got NullPoinerException in LRUPolicy in two machine cluster this happens when (I am runnin JBOSS TreeCache 1.2.2) 1) Machine A is up running. 2) there are request to cluster, the cache is deing updated. 3) In the middler Machine B is restarted. The excepption happens duing machine B's start

[JBoss-user] [JBossCache] - Re: JBoss Distribute Cache's error?

2006-02-17 Thread hjshi2000
I got same problem when runing two machine clusters and I can duplicate the problem. It happens when 1) machine A is up running 2) there are requests comming to the cluster, so the tree is being updated. 3) In the middle, Machine B is restarted. The LRUPolicy in machine B got NullPoinerException

[JBoss-user] [JBossCache] - Re: use TreeCache to replicate http Session

2006-02-11 Thread hjshi2000
That helps. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3923111#3923111 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3923111 --- This SF.net email is spons

[JBoss-user] [JBossCache] - use TreeCache to replicate http Session

2006-02-11 Thread hjshi2000
I am learning Jboss TreeCache. I need use TreeCache to replicate http sessions in cluster environment. I have two options: 1) have a singe node tree. Put all sessions in hashmap associated with the node. or 2) have multiple node tree: each node corresponding a session. Which one is beest in te