We are in the process of migrating from JBossCache 1.3.2 SP3 to 1.4.0GA and one 
some of our classes appears to no longer work with the new version of 
JBossCache.  Moving back to 1.3.x resolves the issue.      

Specifically, calling the notify method of the following class results in an 
exception in 1.4.0GA but not in 1.3.x.  

Any ideas?  

Thanks,
Ilan

Exception
=======
ERROR SessionService sendRemoteNotification - Can not send message remotely

com.intersolved.xmlserver.global_services.synchronizator.SynchronizationException:
 Can not notify

       at 
com.intersolved.xmlserver.global_services.synchronizator.SynchronizationMetaData.notify(SynchronizationMetaData.java:197)

       at 
com.intersolved.xmlserver.global_services.synchronizator.RemoteSynchronizationStorage.notify(RemoteSynchronizationStorage.java:51)

       at 
com.intersolved.xmlserver.global_services.session.SessionService.sendRemoteNotification(SessionService.java:586)

       at 
com.intersolved.xmlserver.global_services.session.SessionService.resetTimeout(SessionService.java:550)

       at 
com.intersolved.xmlserver.global_services.session.SessionService.changeConnection(SessionService.java:339)

       at 
com.intersolved.xmlserver.global_services.convertor.PacketConvertorService$4.processOwnCommands(PacketConvertorService.java:216)

       at 
com.intersolved.xmlserver.global_services.convertor.PacketConvertorService$4.run(PacketConvertorService.java:161)

       at 
com.intersolved.xmlserver.global_services.convertor.PacketConvertorService$5.run(PacketConvertorService.java:310)

       at java.lang.Thread.run(Thread.java:595)

Caused by: com.intersolved.cluster.jsync.SynchronizeException: Can not notify

       at 
com.intersolved.cluster.jsync.components.NotificationTreeCacheAOP.notify(NotificationTreeCacheAOP.java:48)

       at 
com.intersolved.cluster.jsync.components.Synchronizer.notify(Synchronizer.java:420)

       at 
com.intersolved.xmlserver.global_services.synchronizator.SynchronizationMetaData.notify(SynchronizationMetaData.java:195)

       ... 8 more

Caused by: java.lang.RuntimeException: failure to marshal argument(s)

       at 
org.jgroups.blocks.RpcDispatcher.callRemoteMethods(RpcDispatcher.java:152)

       at org.jboss.cache.TreeCache.callRemoteMethods(TreeCache.java:4159)

       at org.jboss.cache.TreeCache.callRemoteMethods(TreeCache.java:4113)

       at org.jboss.cache.TreeCache.callRemoteMethods(TreeCache.java:4221)

       at org.jboss.cache.TreeCache.callRemoteMethods(TreeCache.java:4242)

       at 
com.intersolved.cluster.jsync.components.NotificationTreeCacheAOP.notify(NotificationTreeCacheAOP.java:45)

       ... 10 more

Caused by: java.lang.IllegalArgumentException: MethodCall does not have a valid 
method id.  Was this method call created with MethodCallFactory?

       at 
org.jboss.cache.marshall.TreeCacheMarshaller140.marshallObject(TreeCacheMarshaller140.java:223)

       at 
org.jboss.cache.marshall.TreeCacheMarshaller140.objectToStream(TreeCacheMarshaller140.java:94)

       at 
org.jboss.cache.marshall.VersionAwareMarshaller.objectToByteBuffer(VersionAwareMarshaller.java:133)

       at 
org.jgroups.blocks.RpcDispatcher.callRemoteMethods(RpcDispatcher.java:145)

       ... 15 more


CLASS
=========

public class NotificationTreeCacheAOP extends org.jboss.cache.aop.TreeCacheAop {

       public void _notify(Serializable transport) {

             fireNotification(transport);

       }

 

       public void notify(Serializable transport) throws SynchronizeException {

      try {

            callRemoteMethods(getMembers(), "_notify", new 
Class[]{Serializable.class}, new Object[]{transport}, false, true, 
getSyncReplTimeout());

             } catch (Exception exp) {

            throw new SynchronizeException("Can not notify", exp);

             }

       }

      

       void fireNotification(Serializable transport) {

             // Pass notification to listeners.

}

}


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961913#3961913

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961913
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to