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:email@example.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.
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.
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.
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.