1.3.0CR1, does it work?
mnewcomb Mar 22, 2006 2:20 PM1. Downloaded 1.3.0CR1
2. cd examples\PojoCache\annotated50
3. build run.aop.example
Buildfile: build.xml init: compile: [copy] Copying 1 file to C:\Program Files\Java\JBossCache-1.3.0.CR1\example s\PojoCache\annotated50\output\etc\META-INF run.aop.example: [java] log4j:WARN No appenders could be found for logger (org.jboss.cache.PropertyConfigurator). [java] log4j:WARN Please initialize the log4j system properly. [java] ------------------------------------------------------- [java] GMS: address is 137.161.130.71:1627 [java] ------------------------------------------------------- [java] ------------------------------------------------------- [java] GMS: address is 137.161.130.71:1632 [java] ------------------------------------------------------- [java] --------------------------------------------- [java] Initial state for Mary [java] --------------------------------------------- [java] {Name = Mary Smith, School = null, Address = 456 Oak Drive Pleasantville, CA 94555} [java] Courses: [java] {Title = Intro to Foo, Instructor = Jones, Room = null} [java] --------------------------------------------- [java] Exception in thread "main" java.lang.NullPointerException [java] at test.examples.StudentMaintTest.printStatus(StudentMaintTest.java:135) [java] at test.examples.StudentMaintTest.testPropagation(StudentMaintTest.java:113) [java] at test.examples.StudentMaintTest.main(StudentMaintTest.java:141) [java] Initial state for Joe [java] --------------------------------------------- [java] {Name = Joe Smith, School = Engineering, Address = 456 Oak Drive Pleasantville, CA 94555} [java] Courses: [java] {Title = Intro to Foo, Instructor = Jones, Room = null} [java] --------------------------------------------- [java] Modified on Server #1 [java] --------------------------------------------- [java] Course Update: id: 401 room: null->101 Alvarez (retrieved from cache #2) [java] --------------------------------------------- [java] Java Result: 1 BUILD SUCCESSFUL Total time: 11 seconds
StudentMaintTest.java:
Course foo2 = (Course) cache2_.getObject("/courses/101");
foo2 is null (ie. not getting propagated form cache1 to cache2).
Do I have to do something other than download and run the example to get it to work?
Thanks,
Michael