the NPE is due to regionManager being null in LRUPolicy.nodeAdded(Fqn):
| public void nodeAdded(Fqn fqn)
| {
| if(fqn.equals(ROOT))
| return;
| if(log_.isDebugEnabled())
| log_.debug("nodeAdded(): fqn- " + fqn);
| Region region = regionManager_.getRegion(fqn.toString()); <-- this line!
| region.setAddedNode(fqn);
| }
|
I wonder how this is supposed to work at all:
in TreeCache.startService() the Cache is populated by calling fetchStateOnStartup()
before the EvictionPolicy is going to be initialized (by notifyCacheStarted() a few
lines later...). Despite the fact it's surprising that fqn.equals(ROOT) apparently
evaluates to true, the LRUPolicy just cannot populate it's regions as long it hasn't
seen it's config yet...
to workaround the NPE you can set FetchStateOnStartup to false and call
TreeCache.fetchState() after having called TreeCache.start();
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848805#3848805
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848805
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development