|
I am running the PropagationReplAopTest and it seems the PropgationManager put into cache1_ is not replicated in cache2_.
-------------------------------------------------------
GMS: address is 127.0.0.1:32996
-------------------------------------------------------
-------------------------------------------------------
GMS: address is 127.0.0.1:32998
-------------------------------------------------------
StateItem.setState(): id: 1000 state changed from 2000 to 1040
StateItem.setState(): id: 1001 state changed from 2000 to 1040
StateItem.setState(): id: 1002 state changed from 2000 to 1040
StateItem.setState(): id: 1003 state changed from 2000 to 1040
StateItem.setState(): id: 1000 state changed from 2000 to 1040
StateItem.setState(): id: 1001 state changed from 2000 to 1040
StateItem.setState(): id: 1002 state changed from 2000 to 1040
StateItem.setState(): id: 1003 state changed from 2000 to 1040
---------------------------------------------
Initial state
---------------------------------------------
Japan (Summary : 2000 [ok])
+ Tokyo (Summary : 2000 [ok])
+ + WindSensor1 (Summary : 2000 [ok])
+ + | ( name = power supply, id = 1000, state =1040)
+ + | ( name = sensor unit, id = 1001, state =1040)
+ + RainSensor1 (Summary : 2000 [ok])
+ + | ( name = power supply, id = 1002, state =1040)
+ + | ( name = sensor unit, id = 1003, state =1040)
+ Yokohama (Summary : 2000 [ok])
+ + WindSensor2 (Summary : 2000 [ok])
+ + | ( name = power supply, id = 1000, state =1040)
+ + | ( name = sensor unit, id = 1001, state =1040)
+ + RainSensor2 (Summary : 2000 [ok])
+ + | ( name = power supply, id = 1002, state =1040)
+ + | ( name = sensor unit, id = 1003, state =1040)
---------------------------------------------
Modified on Server #1
StateItem.setState(): id: 1003 state changed from 1040 to 1041
---------------------------------------------
Japan.Tokyo.RainSensor1: id: 1003 state: 1040->1041 (retrieved from cache #2)
---------------------------------------------
java.lang.NullPointerException
at test.propagation.PropagationReplAopTest.printStatus(PropagationReplAopTest.java:113)
at test.propagation.PropagationReplAopTest.testPropagation(PropagationReplAopTest.java:98)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at com.intellij.rt.execution.junit2.JUnitStarter.main(JUnitStarter.java:31)
|
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