0 Replies Latest reply on Mar 29, 2013 6:09 PM by Chris Stillwell

    Problems marshalling objects between servers

    Chris Stillwell Newbie

      I am testing with 2 servers that have different components installed trying to use a replicated cache.

      Running jboss-as-7.2.0.Final which contains Infinispan 5.2.1.Final.

      On server one I deploy cstillwell-test1-1.0-SNAPSHOT.ear

      On server two I deploy cstillwell-test2-1.0-SNAPSHOT.ear

       

      When I add a cache entry on server1 it fails to replicate to server2 with the below exception.  It appears server2 is looking for the cstillwell-test1-1.0-SNAPSHOT.ear to perform the unmarshalling.

      If I just rename the ear on server2 to be the same name as on server1 then it will work.  Is there some configuration option that I can set so that serialization will work for classes that are deployed

      on multiple servers with different ear names?

       

       

      2013-03-29 17:52:31,485 WARN  [org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher] (Incoming-19,shared=fc-udp) Problems unmarshalling remote command from byte buffer: java.io.InvalidClassException: com.farecompare.atpcore.engines.surchargedatamodule.api.data.caches.SurchargeSetsCacheKey; Module load failed

              at org.jboss.marshalling.ModularClassResolver.resolveClass(ModularClassResolver.java:108)

              at org.jboss.marshalling.river.RiverUnmarshaller.doReadClassDescriptor(RiverUnmarshaller.java:893)

              at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1205)

              at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:272)

              at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)

              at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:37)

              at org.infinispan.marshall.exts.ReplicableCommandExternalizer.readParameters(ReplicableCommandExternalizer.java:130)

              at org.infinispan.marshall.exts.ReplicableCommandExternalizer.readObject(ReplicableCommandExternalizer.java:113)

              at org.infinispan.marshall.exts.ReplicableCommandExternalizer.readObject(ReplicableCommandExternalizer.java:60)

              at org.infinispan.marshall.jboss.ExternalizerTable$ExternalizerAdapter.readObject(ExternalizerTable.java:402)

              at org.infinispan.marshall.jboss.ExternalizerTable.readObject(ExternalizerTable.java:224)

              at org.infinispan.marshall.jboss.JBossMarshaller$ExternalizerTableProxy.readObject(JBossMarshaller.java:164)

              at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:351)

              at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)

              at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:37)

              at org.infinispan.marshall.exts.ReplicableCommandExternalizer.readParameters(ReplicableCommandExternalizer.java:130)

              at org.infinispan.marshall.exts.CacheRpcCommandExternalizer.readObject(CacheRpcCommandExternalizer.java:158)

              at org.infinispan.marshall.exts.CacheRpcCommandExternalizer.readObject(CacheRpcCommandExternalizer.java:73)

              at org.infinispan.marshall.jboss.ExternalizerTable$ExternalizerAdapter.readObject(ExternalizerTable.java:402)

              at org.infinispan.marshall.jboss.ExternalizerTable.readObject(ExternalizerTable.java:224)

              at org.infinispan.marshall.jboss.JBossMarshaller$ExternalizerTableProxy.readObject(JBossMarshaller.java:164)

              at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:351)

              at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)

              at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:37)

              at org.infinispan.marshall.jboss.AbstractJBossMarshaller.objectFromObjectStream(AbstractJBossMarshaller.java:163)

              at org.infinispan.marshall.VersionAwareMarshaller.objectFromByteBuffer(VersionAwareMarshaller.java:116)

              at org.infinispan.marshall.AbstractDelegatingMarshaller.objectFromByteBuffer(AbstractDelegatingMarshaller.java:104)

              at org.infinispan.remoting.transport.jgroups.MarshallerAdapter.objectFromBuffer(MarshallerAdapter.java:50)

              at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.handle(CommandAwareRpcDispatcher.java:215)

              at org.jgroups.blocks.RequestCorrelator.handleRequest(RequestCorrelator.java:484)

              at org.jgroups.blocks.RequestCorrelator.receiveMessage(RequestCorrelator.java:391)

              at org.jgroups.blocks.RequestCorrelator.receive(RequestCorrelator.java:249)

              at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:598)

              at org.jgroups.blocks.mux.MuxUpHandler.up(MuxUpHandler.java:130)

              at org.jgroups.JChannel.up(JChannel.java:707)

              at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:1020)

              at org.jgroups.protocols.RSVP.up(RSVP.java:188)

              at org.jgroups.protocols.FRAG2.up(FRAG2.java:181)

              at org.jgroups.protocols.FlowControl.up(FlowControl.java:418)

              at org.jgroups.protocols.FlowControl.up(FlowControl.java:400)

              at org.jgroups.protocols.pbcast.GMS.up(GMS.java:896)

              at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:245)

              at org.jgroups.protocols.UNICAST2.handleDataReceived(UNICAST2.java:797)

              at org.jgroups.protocols.UNICAST2.up(UNICAST2.java:420)

              at org.jgroups.protocols.pbcast.NAKACK2.up(NAKACK2.java:606)

              at org.jgroups.protocols.VERIFY_SUSPECT.up(VERIFY_SUSPECT.java:143)

              at org.jgroups.protocols.FD.up(FD.java:253)

              at org.jgroups.protocols.FD_SOCK.up(FD_SOCK.java:288)

              at org.jgroups.protocols.MERGE3.up(MERGE3.java:290)

              at org.jgroups.protocols.Discovery.up(Discovery.java:359)

              at org.jgroups.protocols.TP$ProtocolAdapter.up(TP.java:2616)

              at org.jgroups.protocols.TP.passMessageUp(TP.java:1263)

              at org.jgroups.protocols.TP$IncomingPacket.handleMyMessage(TP.java:1825)

              at org.jgroups.protocols.TP$IncomingPacket.run(TP.java:1798)

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0]

              at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0]

      Caused by: org.jboss.modules.ModuleNotFoundException: deployment.cstillwell-test1-1.0-SNAPSHOT.ear:main

              at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:224) [jboss-modules.jar:1.2.0.CR1]

              at org.jboss.marshalling.ModularClassResolver.resolveClass(ModularClassResolver.java:106)

              ... 56 more