-
1. Re: EvictionPolicyConfig throwing null pointer exceptions in
belaban Jul 16, 2005 2:04 AM (in response to newton)The source can be obtained from here: http://wiki.jboss.org/wiki/Wiki.jsp?page=CVSRepository.
For JBossCache 1.2.3, committer access checkout would be (anonymous is similar):
cvs -d:ext:bela@cvs.forge.jboss.com:/cvsroot/jboss co -r JBCACHE_1_2_3 JBossCache
We will release src on top of binary versions in the future, so people don't have to checkout the src from the repo. -
2. Re: EvictionPolicyConfig throwing null pointer exceptions in
ben.wang Jul 17, 2005 8:15 PM (in response to newton)Hmmn! Looking at the source code, it points to a null region that can possibly causing the NPE. However, it should have _DEFAULT_ region though.
Please keep me posted on your finding.
-Ben -
3. Re: EvictionPolicyConfig throwing null pointer exceptions in
newton Jul 18, 2005 2:39 PM (in response to newton)I figured this out... if you have an eviction policy but you leave a region unconfigured, a null pointer exception will be thrown when you get or put in that region.
Since I had no "/_default_" region configured, the only part of my cache that was working was the one I configured for the eviction policy.
You should make that configuration requirement explicit, or better yet, apply NO eviction policy on regions where they aren't specified - that was the behaviour I was expecting.
M. -
4. Re: EvictionPolicyConfig throwing null pointer exceptions in
ben.wang Jul 19, 2005 4:27 PM (in response to newton)No, I can't. If I have a default region, what is the default values for maxNodes and timeToLiveSeconds? User will get a big surprise.
What I can do though is adding a checking for default region. If it is not configured, I will throw a runtime exception. It has been checked in the code and will appear in 1.2.4.
Thanks,
-Ben