-
1. Re: Problem with caching an object with a complex object gra
jlstrobel9 Sep 1, 2005 11:50 AM (in response to roginsky)We are attempting to do something similar with a complex object graph, and having the same problem. In tests, the TreeCacheAOP seems to work with simple data transfer object (DTO) style objects. I.e. java beans with simple set/getters.
When I try to add an object with relationships to multiple objects, who are in turn related to other objects, I get the same error. The links between nodes are represented by objects which hold references to both the start and endpoint nodes. The links are often bidirectional, i.e. parents are aware of their children, and children are aware of their parents.
Any ideas would be greatly appreciated. The stack trace follows:
16:09:38,765 INFO [STDOUT] java.lang.NullPointerException
16:09:38,765 INFO [STDOUT] at org.jboss.cache.aop.TreeCacheAop.setRefFqn(TreeCacheAop.java:891)
16:09:38,765 INFO [STDOUT] at org.jboss.cache.aop.TreeCacheAop.handleObjectGraph(TreeCacheAop.java:530)
16:09:38,765 INFO [STDOUT] at org.jboss.cache.aop.TreeCacheAop._putObject(TreeCacheAop.java:261)
16:09:38,765 INFO [STDOUT] at org.jboss.cache.aop.TreeCacheAop._putObject(TreeCacheAop.java:302)
16:09:38,765 INFO [STDOUT] at org.jboss.cache.aop.TreeCacheAop._putObject(TreeCacheAop.java:302)
16:09:38,765 INFO [STDOUT] at org.jboss.cache.aop.TreeCacheAop._putObject(TreeCacheAop.java:361)
16:09:38,765 INFO [STDOUT] at org.jboss.cache.aop.TreeCacheAop._putObject(TreeCacheAop.java:361)
16:09:38,765 INFO [STDOUT] at org.jboss.cache.aop.TreeCacheAop._putObject(TreeCacheAop.java:302)
16:09:38,765 INFO [STDOUT] at org.jboss.cache.aop.TreeCacheAop._putObject(TreeCacheAop.java:302)
16:09:38,765 INFO [STDOUT] at org.jboss.cache.aop.TreeCacheAop._putObject(TreeCacheAop.java:361)
16:09:38,765 INFO [STDOUT] at org.jboss.cache.aop.TreeCacheAop._putObject(TreeCacheAop.java:361)
16:09:38,765 INFO [STDOUT] at org.jboss.cache.aop.TreeCacheAop._putObject(TreeCacheAop.java:302)
16:09:38,765 INFO [STDOUT] at org.jboss.cache.aop.TreeCacheAop._putObject(TreeCacheAop.java:302)
16:09:38,765 INFO [STDOUT] at org.jboss.cache.aop.TreeCacheAop._putObject(TreeCacheAop.java:361)
16:09:38,765 INFO [STDOUT] at org.jboss.cache.aop.TreeCacheAop._putObject(TreeCacheAop.java:361)
16:09:38,765 INFO [STDOUT] at org.jboss.cache.aop.TreeCacheAop._putObject(TreeCacheAop.java:302)
16:09:38,765 INFO [STDOUT] at org.jboss.cache.aop.TreeCacheAop.putObject(TreeCacheAop.java:145) -
2. Re: Problem with caching an object with a complex object gra
ben.wang Sep 1, 2005 5:58 PM (in response to roginsky)OK, to asnwer your questions.
1. I'd appreciate it if you can reprodouce your problem with junit tests. That helps to troubleshoot and I can also check it in for future regression testing purpose.
2. In the examples directory (under distro), there are bunch of ObjectGraph tests. Can you take a look first?
3. I am in 1.2.4 development to resolve issues of more complex object reference interaction between Pojo and Collection classes. Beta is scheduled for 9/12 timeframe. So if 1.2.3 does not suit your need, stay tuned. And you can download the source code to build alpha version, if you can't wait.
-Ben