[JBoss-dev] [Caches on JBoss (Caches/JBoss)] - Re: NotSerializableException using standalone TreeCacheAop
If you are running under Tomcat, it'd be best to use aopc to pre-compile your advisable object. Check into the example in build.xml of aopc. That way, at least, you take the class loader out of the picture. -Ben View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848389#3848389 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848389 --- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [Caches on JBoss (Caches/JBoss)] - Re: NotSerializableException using standalone TreeCacheAop
Some more info... I've even reverted to using the org.jboss.test.cache.test.standAloneAop.Person instead of UnOrderedCache (setting -Djboss.aop.path=...path...\jboss-aop.xml) and I still get the same errors. These jars have been added to the tomcat/common/endorsed folder to support org.jboss.aop.standalone.SystemClassLoader: | commons-collections.jar | concurrent.jar | javassist.jar | jboss-aop-jdk15.jar | jboss-aop.jar | jboss-common.jar | junit.jar | log4j-1.2.7.jar | qdox.jar | trove.jar | xalan_2_6_0.jar | xercesImpl.jar | xml-apis.jar Help! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848373#3848373 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848373 --- This SF.Net email is sponsored by: thawte's Crypto Challenge Vl Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam Camcorder. More prizes in the weekly Lunch Hour Challenge. Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [Caches on JBoss (Caches/JBoss)] - Re: NotSerializableException using standalone TreeCacheAop
"bwang00" wrote : Well, the log says obj is non-advisable: | | | 2004-09-14 17:23:38,946 DEBUG [main] aop.TreeCacheAop (TreeCacheAop.java:281) - putObject(): obj is non-advisable. | | 2004-09-14 17:23:38,946 DEBUG [main] cache.TreeCache (TreeCache.java:2336) - _put(null, "/aop/expresso/CacheManager/cacheLists", jboss:internal:class, class com.jcorporate.expresso.core.cache.UnOrderedCache) | | Are you sure your jboss-aop.xml is in the class path? Under the distro, you can run the aop example. Make sure that works first. For example, | | sh build.sh run.aopc.examples -Dtest=org.jboss.test.cache.test.standAloneAop.AopLocalTest | | -Ben | I appreciate you working with me on this but it's becoming very frustrating :( Here are the results of running LocalAopTest: | run.aopc.examples: | [junit] Running org.jboss.test.cache.test.standAloneAop.LocalAopTest | [junit] Tests run: 12, Failures: 0, Errors: 0, Time elapsed: 3.547 sec | [junitreport] jar:file:/E:/jboss-cache/ant-dist/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl; Line #41; Column #53; javax.xml.transform.TransformerException: java.lang.ClassNotFoundException: redirect | [junitreport] jar:file:/E:/jboss-cache/ant-dist/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl; Line #46; Column #57; javax.xml.transform.TransformerException: java.lang.ClassNotFoundException: redirect | [junitreport] jar:file:/E:/jboss-cache/ant-dist/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl; Line #51; Column #64; javax.xml.transform.TransformerException: java.lang.ClassNotFoundException: redirect | [junitreport] jar:file:/E:/jboss-cache/ant-dist/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl; Line #56; Column #62; javax.xml.transform.TransformerException: java.lang.ClassNotFoundException: redirect | [junitreport] jar:file:/E:/jboss-cache/ant-dist/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl; Line #61; Column #64; javax.xml.transform.TransformerException: java.lang.ClassNotFoundException: redirect | [junitreport] jar:file:/E:/jboss-cache/ant-dist/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl; Line #82; Column #76; javax.xml.transform.TransformerException: java.lang.ClassNotFoundException: redirect | [junitreport] jar:file:/E:/jboss-cache/ant-dist/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl; Line #89; Column #78; javax.xml.transform.TransformerException: java.lang.ClassNotFoundException: redirect | [junitreport] jar:file:/E:/jboss-cache/ant-dist/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl; Line #98; Column #74; javax.xml.transform.TransformerException: java.lang.ClassNotFoundException: redirect | [junitreport] jar:file:/E:/jboss-cache/ant-dist/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl; Line #102; Column #81; javax.xml.transform.TransformerException: java.lang.ClassNotFoundException: redirect | [junitreport] Transform time: 1281ms | | BUILD SUCCESSFUL | If not finding jboss-aop.xml is the problem then maybe you can tell me how I'm supposed to correctly specify the location of jboss-aop.xml? I've already tried the following: - creating a WEB-INF/classes/META-INF folder and copying jboss-aop.xml to it - copying jboss-aop.xml to the WEB-INF/classes folder - adding -Djboss.aop.path=...path...\jboss-aop.xml to the JAVA_OPTS environment variable that is used by the Tomcat startup script View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848341#3848341 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848341 --- This SF.Net email is sponsored by: thawte's Crypto Challenge Vl Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam Camcorder. More prizes in the weekly Lunch Hour Challenge. Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [Caches on JBoss (Caches/JBoss)] - Re: NotSerializableException using standalone TreeCacheAop
Well, the log says obj is non-advisable: | 2004-09-14 17:23:38,946 DEBUG [main] aop.TreeCacheAop (TreeCacheAop.java:281) - putObject(): obj is non-advisable. | 2004-09-14 17:23:38,946 DEBUG [main] cache.TreeCache (TreeCache.java:2336) - _put(null, "/aop/expresso/CacheManager/cacheLists", jboss:internal:class, class com.jcorporate.expresso.core.cache.UnOrderedCache) Are you sure your jboss-aop.xml is in the class path? Under the distro, you can run the aop example. Make sure that works first. For example, sh build.sh run.aopc.examples -Dtest=org.jboss.test.cache.test.standAloneAop.AopLocalTest -Ben View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848243#3848243 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848243 --- This SF.Net email is sponsored by: thawte's Crypto Challenge Vl Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam Camcorder. More prizes in the weekly Lunch Hour Challenge. Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [Caches on JBoss (Caches/JBoss)] - Re: NotSerializableException using standalone TreeCacheAop
"bwang00" wrote : Forget about the map and list. Why don't you do a putObject on
UnderedCache to see if it gets replicated correctly?
|
| -Ben
Same problem. Here's the updated code I'm running:
if(Util.getClusterCache().exists("/aop/expresso/CacheManager/cacheLists")){
| } else {
|
Util.getClusterCache().putObject("/aop/expresso/CacheManager/cacheLists", new
UnOrderedCache());
| }
I set logging to DEBUG. Here are the results for Server A:
2004-09-14 17:23:35,696 INFO [main] cache.PropertyConfigurator
(PropertyConfigurator.java:172) - configure(): attribute size: 12
| 2004-09-14 17:23:35,758 DEBUG [main] cache.PropertyConfigurator
(PropertyConfigurator.java:208) - setting attribute IsolationLevel to REPEATABLE_READ
| 2004-09-14 17:23:35,774 DEBUG [main] cache.PropertyConfigurator
(PropertyConfigurator.java:208) - setting attribute CacheMode to REPL_SYNC
| 2004-09-14 17:23:35,774 DEBUG [main] cache.PropertyConfigurator
(PropertyConfigurator.java:250) - Invoking setter method: public void
org.jboss.cache.TreeCache.setUseReplQueue(boolean) with parameter "false" of type
class java.lang.Boolean
| 2004-09-14 17:23:35,790 DEBUG [main] cache.PropertyConfigurator
(PropertyConfigurator.java:250) - Invoking setter method: public void
org.jboss.cache.TreeCache.setReplQueueInterval(long) with parameter "0" of type class
java.lang.Long
| 2004-09-14 17:23:35,790 DEBUG [main] cache.PropertyConfigurator
(PropertyConfigurator.java:250) - Invoking setter method: public void
org.jboss.cache.TreeCache.setReplQueueMaxElements(int) with parameter "0" of type
class java.lang.Integer
| 2004-09-14 17:23:35,805 DEBUG [main] cache.PropertyConfigurator
(PropertyConfigurator.java:208) - setting attribute ClusterName to TreeCache-Cluster
| 2004-09-14 17:23:35,805 DEBUG [main] cache.PropertyConfigurator
(PropertyConfigurator.java:250) - Invoking setter method: public void
org.jboss.cache.TreeCache.setClusterConfig(org.w3c.dom.Element) with parameter
"[config: null]" of type cla
| 2004-09-14 17:23:35,805 INFO [main] cache.TreeCache (TreeCache.java:613) -
setClusterConfig(): setting cluster properties from xml to:
UDP(ip_mcast=true;ip_ttl=64;loopback=true;mcast_addr=228.1.2.3;mcast_port=45566;mcast_recv_buf_size=8
|
_send_buf_size=15):PING(down_thread=false;num_initial_members=3;timeout=2000;up_thread=false):MERGE2(max_interval=2;min_interval=1):FD_SOCK:VERIFY_SUSPECT(down_thread=false;timeout=1500;up_thread=false):pbcast.NAKACK(down_thread=
|
200,2400,4800;up_thread=false):UNICAST(down_thread=false;min_threshold=10;timeout=600,1200,2400;window_size=100):pbcast.STABLE(desired_avg_gossip=2;down_thread=false;up_thread=false):FRAG(down_thread=false;frag_size=8192;up_thread=false)
| _local_addr=true;shun=true):pbcast.STATE_TRANSFER(down_thread=true;up_thread=true)
| 2004-09-14 17:23:35,821 DEBUG [main] cache.PropertyConfigurator
(PropertyConfigurator.java:250) - Invoking setter method: public void
org.jboss.cache.TreeCache.setFetchStateOnStartup(boolean) with parameter "true" of
type class java.lang.Boo
| 2004-09-14 17:23:35,821 DEBUG [main] cache.PropertyConfigurator
(PropertyConfigurator.java:250) - Invoking setter method: public void
org.jboss.cache.TreeCache.setInitialStateRetrievalTimeout(long) with parameter "5000"
of type class java.la
| 2004-09-14 17:23:35,821 DEBUG [main] cache.PropertyConfigurator
(PropertyConfigurator.java:250) - Invoking setter method: public void
org.jboss.cache.TreeCache.setSyncReplTimeout(long) with parameter "1" of type
class java.lang.Long
| 2004-09-14 17:23:35,836 DEBUG [main] cache.PropertyConfigurator
(PropertyConfigurator.java:250) - Invoking setter method: public void
org.jboss.cache.TreeCache.setLockAcquisitionTimeout(long) with parameter "15000" of
type class java.lang.Lo
| 2004-09-14 17:23:35,836 DEBUG [main] cache.PropertyConfigurator
(PropertyConfigurator.java:280) - getSubElementObject(): element object. Does not
exist for config
| 2004-09-14 17:23:35,836 DEBUG [main] cache.PropertyConfigurator
(PropertyConfigurator.java:208) - setting attribute EvictionPolicyClass to
| 2004-09-14 17:23:35,852 WARN [main] cache.TreeCache (TreeCache.java:1092) - No
transaction manager lookup class has been defined. TX will be null
| 2004-09-14 17:23:35,868 INFO [main] cache.TreeCache (TreeCache.java:1229) -
interceptor chain is:
| class org.jboss.cache.interceptors.CallInterceptor
| class org.jboss.cache.interceptors.ReplicationInterceptor
| 2004-09-14 17:23:35,883 INFO [main] cache.TreeCache (TreeCache.java:1116) - cache
mode is REPL_SYNC
|
| ---
| GMS: address is dev:2331
| ---
| 2004-09-14 17:23:38,836 INFO [MessageDispatcher up processing thread]
cache.TreeCache (TreeCache.java:3071) - viewAccepted(): new members: [dev:2331]
| 2004-09-14 17:23:38,899
[JBoss-dev] [Caches on JBoss (Caches/JBoss)] - Re: NotSerializableException using standalone TreeCacheAop
Forget about the map and list. Why don't you do a putObject on UnderedCache to see if it gets replicated correctly? -Ben View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848097#3848097 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848097 --- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [Caches on JBoss (Caches/JBoss)] - Re: NotSerializableException using standalone TreeCacheAop
"bwang00" wrote : You will still need jboss-aop to declare your object, UnOrderedCache, to be aspectized. Otherwise, aop will treat it as a regular object of which requires Serializable, and furthermore will not breakdown the object graph for UnOrderedCache. | | -Ben Thanks for your feedback but I'm still having the same problem. I'm assuming that 'aspectized' means adding UnOrderedCache to the jboss-aop.xml. This is the contents of the file (I copied it to the root of my classes folder): | | | Another attempt at running resulted in the same errors I listed above. Where am I going wrong? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848059#3848059 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848059 --- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [Caches on JBoss (Caches/JBoss)] - Re: NotSerializableException using standalone TreeCacheAop
You will still need jboss-aop to declare your object, UnOrderedCache, to be aspectized. Otherwise, aop will treat it as a regular object of which requires Serializable, and furthermore will not breakdown the object graph for UnOrderedCache. -Ben View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3847987#3847987 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3847987 --- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [Caches on JBoss (Caches/JBoss)] - Re: NotSerializableException using standalone TreeCacheAop
... one additional comment. 'cachelists' in the code sample is a Map instance to which an UnOrderedCache instance is added View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3847974#3847974 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3847974 --- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php ___ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
