This might be a rather involved question, so I'll appreciate any help or idea.
I'm caching objects with several fields that are ArrayLists of objects of the 
same class (or classes derived from it). I took care to aspectize (aopc) 
everything that lies around, or so I believe. Not to mention all of my own 
classes that are used by the cached objects, I even included these classes  in 
my jboss-aop.xml (out of desperation, I'm sure it doesn't do anything):
  java.util.Date
  java.util.Currency
  java.lang.String
  java.util.ArrayList
  java.math.BigDecimal

When the objects are first cached, everything seems to be fine, may be because 
at this point there are no cross-references (most of the ArrayLists fields I 
mentioned above are empty). Then I create more objects, filling in some of the 
ArrayLists, and when I try to cache the new objects, now with references, I get 
this exception:
java.lang.NullPointerException
        at org.jboss.cache.aop.TreeCacheAop.setRefFqn(TreeCacheAop.java:891)
        at 
org.jboss.cache.aop.TreeCacheAop.handleObjectGraph(TreeCacheAop.java:530)
        at org.jboss.cache.aop.TreeCacheAop._putObject(TreeCacheAop.java:261)
        at org.jboss.cache.aop.TreeCacheAop.putObject(TreeCacheAop.java:136)
        at 
com.bglobal.commons.cache.impl.jboss.AopTreeAdapter.put(AopTreeAdapter.java:287)
        etc...
It looks like some object is not found in the Cache where it's expected to be.

Like I said, I'll appreciate any help, even though I realize this is probably a 
support case. We don't have jBoss support yet, but we will soon, unfortunately 
this problem can't really wait :-(. Would it make sense to try and make 
everything Serialized as opposed to aspectizing, just to see if the latter is 
causing the problem?

P.S. I'm using version 1.2.3

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

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


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to