Is it possible you can post a test case for me to verify? Als is this a standalone test case? If it is, the junit test suite has one that test the aop cache replication. Can you check it out?
I try to run TreeChaceAop standalone.
run.aopc.batch task runs with AopLRUPolicyUnitTestCase failure only.
But I can't make it to work as separate (not ant) task.
The error happens the same as above does.
Here is the script i use to run the ReplicatedAopTest from JBossCache home dir.
#!/bin/sh CACHE_HOME=. sh $CACHE_HOME/build.sh aopc for nextjar in `ls $CACHE_HOME/lib/*.jar` do LIBS=$LIBS:$nextjar done export CLASSPATH=$LIBS:$CACHE_HOME/output/build:$CACHE_HOME/output/etc java junit.swingui.TestRunner org.jboss.test.cache.test.standAloneAop.ReplicatedAopTest
It seems Ant helps to the Cache in some odd way. Can't imagine how.
You meant if you run it under jboss-cache:
sh build.sh run.aop.examples -Dtest=org.jboss.test.cache.test.eviction.AopLRUPolicyUnitTestCase
It will not fail?
This time i obtained no error of AopLRUPolicyUnitTestCase test in both tasks run.aop.examples and run.aopc.batch.
But CacheTreeAop doesn't really work as standalone app.
Does the script above run the test without exceptions for you? Have you tried it?
if so then my jvm is something wrong with. But it's unlike to be reasone as i get the same result on Linux and Windows platforms.
Okay, can you try with the latest JGroups (from CVS head) ?
The change I made is that now, incoming messages that contain objects are un-serializing those objects using the context classloader. This may have caused the problem.
Let me know if this solves your problem.
P.S.: I'll integrate the new version of JGroups into JBoss in ca. 2 weeks time