| Article: |
JBoss Cache as a POJO Cache | |
| Subject: | cache2_.getObject("monitor") returns null | |
| Date: | 2005-11-18 17:16:21 | |
| From: | korosh | |
|
I am running the PropagationReplAopTest and it seems the PropgationManager put into cache1_ is not replicated in cache2_.
|
||
Showing messages 1 through 4 of 4.
-
cache2_.getObject("monitor") returns null
2005-11-20 16:01:05 bwang00 [View]
-
cache2_.getObject("monitor") returns null
2005-11-21 10:38:52 korosh [View]
Hi Ben,
I did it both ways. I run the ant target aopc directly from my IDE and then ran the test class.
I also just ran the "run.aop.example" target from command line using Ant. same NullPointerException.
I am on Linux(Debian), JDK 1.4.2, Ant 1.6.1.
any ideas ?
k.
-
cache2_.getObject("monitor") returns null
2005-11-21 18:34:32 bwang00 [View]
Korosh,
Usually the first problem using replication is troubleshoot multicast in your machine/network as this is always environment depedent. Towards this end, this is JGroups Wiki that can help you out:
http://wiki.jboss.org/wiki/Wiki.jsp?page=JGroups
If multicast works, then you can also run the JBoss Cache unit test suite that comes with the distro (target run.batch and run.aop.batch).
-Ben -
cache2_.getObject("monitor") returns null
2005-11-23 12:57:40 korosh [View]
Ben,
thanks very much for pointing me in the right direction. Indeed multicast on my machine was misconfgiured.
I had static ip assignment and yet in my /etc/hosts file I did not tie the IP address to my hostname. This resulted in multicast only listening to loopback. Thats the best explanation I have for it with my limited network knowledge.
Now it works as expected.
thanks
k.



-Ben