ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
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_.



-------------------------------------------------------
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)


1 to 2 of 2
  1. cache2_.getObject("monitor") returns null
    2005-11-21 18:34:32  bwang00 [View]

  2. cache2_.getObject("monitor") returns null
    2005-11-20 16:01:05  bwang00 [View]

1 to 2 of 2