Scenario: Server A starts up and adds a Map to the cache using this code | ... | private static TreeCacheAop treeCache; | public static synchronized TreeCacheAop getClusterCache(){ | if(treeCache == null){ | try { | treeCache = new TreeCacheAop(); | PropertyConfigurator config = new PropertyConfigurator(); // configure tree cache. | config.configure(treeCache, "replSync-service.xml"); | treeCache.startService(); | } catch (Exception e) { | traceLog.fatal("Error while initializing JBoss cache", e); | } | } | return treeCache; | } | ... | if(Util.getClusterCache().exists("/aop/expresso/CacheManager/cacheLists")){ | cacheLists = (FastHashMap)Util.getClusterCache().getObject("/aop/expresso/CacheManager/cacheLists"); | } else { | Util.getClusterCache().putObject("/aop/expresso/CacheManager/cacheLists", cacheLists); | cacheLists = (FastHashMap)Util.getClusterCache().getObject("/aop/expresso/CacheManager/cacheLists"); | } | ... |
When Server B starts up and executes the same code, this error appears on server A console: 2004-09-12 22:01:22,809 ERROR [MessageDispatcher up processing thread] cache.TreeCache$MessageListenerAdaptor (TreeCache.java:2919) - failed getting the transient state java.io.NotSerializableException: com.jcorporate.expresso.core.cache.UnOrderedCache at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278) at java.util.HashMap.writeObject(HashMap.java:978) ... and this error on server B console: 2004-09-12 22:01:23,260 ERROR [main] blocks.RpcDispatcher (RpcDispatcher.java:128) - exception=java.io.NotSerializableException: UnOrderedCache 2004-09-12 22:01:24,182 ERROR [main] blocks.RpcDispatcher (RpcDispatcher.java:128) - exception=java.io.NotSerializableException: UnOrderedCache The class UnOrderedCache does not implement Serializable which as I understand is not a requirement for TreeCacheAop. I do not have a jboss-aop.xml file because I'm using -Djava.system.class.loader=org.jboss.aop.standalone.SystemClassLoader. UnOrderedCache contains a few private members: couple strings, another HashMap, Logger reference etc. The code is running under Tomcat 4.1.24 using JDK1.4.2 and jbosscache 1.1 with aop 1.0rc1 Any suggestions greatly appreciated! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3847973#3847973 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3847973 ------------------------------------------------------- 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