[jboss-user] [JBoss Cache] - NotSerializableException: org.jboss.seam.cache.JbossCacheProvider
Roshan Pradeep
do-not-reply at jboss.com
Mon Mar 7 19:21:35 EST 2011
Roshan Pradeep [http://community.jboss.org/people/codevally] created the discussion
"NotSerializableException: org.jboss.seam.cache.JbossCacheProvider"
To view the discussion, visit: http://community.jboss.org/message/591756#591756
--------------------------------------------------------------
Hi
Below will explain how is my setup.
1). 2 JBoss 6 (Final) setting as a cluster
./run.sh -c node1 -g devPartition -b app7.dev1.whispir.net -Djboss.messaging.ServerPeerID=1
./run.sh -c node1 -g devPartition -b app8.dev1.whispir.net -Djboss.messaging.ServerPeerID=2
2). mod_jk and Apache
My application is using EJB3 and seam. Tree cache is configured and file is attached.
When I try to load the JBoss cluster, i got a not serializable error message below is my stack trace.
15:01:40,541 ERROR [org.infinispan.transaction.xa.TransactionXaAdapter] Error while processing 1PC PrepareCommand: org.infinispan.CacheException: java.lang.RuntimeException: Failure to marshal argument(s)
at org.infinispan.util.Util.rewrapAsCacheException(Util.java:477) [:4.2.0.FINAL]
at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.invokeRemoteCommands(CommandAwareRpcDispatcher.java:123) [:4.2.0.FINAL]
at org.infinispan.remoting.transport.jgroups.JGroupsTransport.invokeRemotely(JGroupsTransport.java:399) [:4.2.0.FINAL]
at org.infinispan.remoting.rpc.RpcManagerImpl.invokeRemotely(RpcManagerImpl.java:101) [:4.2.0.FINAL]
at org.infinispan.remoting.rpc.RpcManagerImpl.invokeRemotely(RpcManagerImpl.java:125) [:4.2.0.FINAL]
at org.infinispan.remoting.rpc.RpcManagerImpl.invokeRemotely(RpcManagerImpl.java:230) [:4.2.0.FINAL]
at org.infinispan.remoting.rpc.RpcManagerImpl.invokeRemotely(RpcManagerImpl.java:217) [:4.2.0.FINAL]
at org.infinispan.remoting.rpc.RpcManagerImpl.broadcastRpcCommand(RpcManagerImpl.java:200) [:4.2.0.FINAL]
at org.infinispan.interceptors.ReplicationInterceptor.visitPrepareCommand(ReplicationInterceptor.java:63) [:4.2.0.FINAL]
at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:120) [:4.2.0.FINAL]
at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:118) [:4.2.0.FINAL]
at org.infinispan.interceptors.LockingInterceptor.visitPrepareCommand(LockingInterceptor.java:134) [:4.2.0.FINAL]
at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:120) [:4.2.0.FINAL]
at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:118) [:4.2.0.FINAL]
at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:132) [:4.2.0.FINAL]
at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:106) [:4.2.0.FINAL]
at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:120) [:4.2.0.FINAL]
at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:118) [:4.2.0.FINAL]
at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:132) [:4.2.0.FINAL]
at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:106) [:4.2.0.FINAL]
at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:120) [:4.2.0.FINAL]
at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:118) [:4.2.0.FINAL]
at org.infinispan.interceptors.NotificationInterceptor.visitPrepareCommand(NotificationInterceptor.java:48) [:4.2.0.FINAL]
at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:120) [:4.2.0.FINAL]
at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:118) [:4.2.0.FINAL]
at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:132) [:4.2.0.FINAL]
at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:106) [:4.2.0.FINAL]
at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:120) [:4.2.0.FINAL]
at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:118) [:4.2.0.FINAL]
at org.infinispan.interceptors.TxInterceptor.visitPrepareCommand(TxInterceptor.java:101) [:4.2.0.FINAL]
at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:120) [:4.2.0.FINAL]
at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:118) [:4.2.0.FINAL]
at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:132) [:4.2.0.FINAL]
at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:106) [:4.2.0.FINAL]
at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:120) [:4.2.0.FINAL]
at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:118) [:4.2.0.FINAL]
at org.infinispan.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:87) [:4.2.0.FINAL]
at org.infinispan.interceptors.InvocationContextInterceptor.handleDefault(InvocationContextInterceptor.java:58) [:4.2.0.FINAL]
at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:106) [:4.2.0.FINAL]
at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:120) [:4.2.0.FINAL]
at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:118) [:4.2.0.FINAL]
at org.infinispan.interceptors.BatchingInterceptor.handleDefault(BatchingInterceptor.java:76) [:4.2.0.FINAL]
at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:106) [:4.2.0.FINAL]
at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:120) [:4.2.0.FINAL]
at org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:273) [:4.2.0.FINAL]
at org.infinispan.transaction.xa.TransactionXaAdapter.commit(TransactionXaAdapter.java:106) [:4.2.0.FINAL]
at org.infinispan.transaction.tm.DummyTransaction.runCommitTx(DummyTransaction.java:305) [:4.2.0.FINAL]
at org.infinispan.transaction.tm.DummyTransaction.commit(DummyTransaction.java:97) [:4.2.0.FINAL]
at org.infinispan.transaction.tm.DummyBaseTransactionManager.commit(DummyBaseTransactionManager.java:96) [:4.2.0.FINAL]
at org.infinispan.batch.BatchContainer.resolveTransaction(BatchContainer.java:130) [:4.2.0.FINAL]
at org.infinispan.batch.BatchContainer.endBatch(BatchContainer.java:107) [:4.2.0.FINAL]
at org.infinispan.batch.BatchContainer.endBatch(BatchContainer.java:92) [:4.2.0.FINAL]
at org.infinispan.CacheDelegate.endBatch(CacheDelegate.java:389) [:4.2.0.FINAL]
at org.infinispan.AbstractDelegatingCache.endBatch(AbstractDelegatingCache.java:47) [:4.2.0.FINAL]
at org.jboss.web.tomcat.service.session.distributedcache.ispn.DistributedCacheManager.batch(DistributedCacheManager.java:582) [:1.0.0.Final]
at org.jboss.web.tomcat.service.session.distributedcache.ispn.DistributedCacheManager.storeSessionData(DistributedCacheManager.java:222) [:1.0.0.Final]
at org.jboss.web.tomcat.service.session.ClusteredSession.processSessionReplication(ClusteredSession.java:1190) [:6.0.0.Final]
at org.jboss.web.tomcat.service.session.JBossCacheManager.processSessionRepl(JBossCacheManager.java:2301) [:6.0.0.Final]
at org.jboss.web.tomcat.service.session.JBossCacheManager.storeSession(JBossCacheManager.java:342) [:6.0.0.Final]
at org.jboss.web.tomcat.service.session.InstantSnapshotManager.snapshot(InstantSnapshotManager.java:50) [:6.0.0.Final]
at org.jboss.web.tomcat.service.session.ClusteredSessionValve.handleRequest(ClusteredSessionValve.java:147) [:6.0.0.Final]
at org.jboss.web.tomcat.service.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:94) [:6.0.0.Final]
at org.jboss.web.tomcat.service.session.JvmRouteValve.invoke(JvmRouteValve.java:88) [:6.0.0.Final]
at org.jboss.web.tomcat.service.session.LockingValve.invoke(LockingValve.java:62) [:6.0.0.Final]
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0.Final]
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:6.0.0.Final]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.0.0.Final]
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0.Final]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.0.0.Final]
at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0.Final]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.0.0.Final]
at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:504) [:6.0.0.Final]
at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:437) [:6.0.0.Final]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.0.0.Final]
at java.lang.Thread.run(Thread.java:619) [:1.6.0_20]
Caused by: java.lang.RuntimeException: Failure to marshal argument(s)
at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher$ReplicationTask.marshallCall(CommandAwareRpcDispatcher.java:243) [:4.2.0.FINAL]
at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher$ReplicationTask.call(CommandAwareRpcDispatcher.java:270) [:4.2.0.FINAL]
at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.invokeRemoteCommands(CommandAwareRpcDispatcher.java:121) [:4.2.0.FINAL]
... 74 more
Caused by: org.infinispan.CacheException: Unable to marshall value AtomicHashMap{delegate=org.infinispan.util.FastCopyHashMap at 6128dd8a}
at org.infinispan.marshall.MarshalledValue.serialize(MarshalledValue.java:100) [:4.2.0.FINAL]
at org.infinispan.marshall.MarshalledValue.getRaw(MarshalledValue.java:156) [:4.2.0.FINAL]
at org.infinispan.marshall.MarshalledValue$Externalizer.writeObject(MarshalledValue.java:248) [:4.2.0.FINAL]
at org.infinispan.marshall.jboss.ConstantObjectTable$ExternalizerAdapter.writeObject(ConstantObjectTable.java:322) [:4.2.0.FINAL]
at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:144) [:6.0.0.Final]
at org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:62) [:6.0.0.Final]
at org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:115) [:6.0.0.Final]
at org.infinispan.marshall.exts.ReplicableCommandExternalizer.writeObject(ReplicableCommandExternalizer.java:61) [:4.2.0.FINAL]
at org.infinispan.marshall.jboss.ConstantObjectTable$ExternalizerAdapter.writeObject(ConstantObjectTable.java:322) [:4.2.0.FINAL]
at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:144) [:6.0.0.Final]
at org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:62) [:6.0.0.Final]
at org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:115) [:6.0.0.Final]
at org.infinispan.marshall.exts.ReplicableCommandExternalizer.writeObject(ReplicableCommandExternalizer.java:61) [:4.2.0.FINAL]
at org.infinispan.marshall.jboss.ConstantObjectTable$ExternalizerAdapter.writeObject(ConstantObjectTable.java:322) [:4.2.0.FINAL]
at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:144) [:6.0.0.Final]
at org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:62) [:6.0.0.Final]
at org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:115) [:6.0.0.Final]
at org.infinispan.marshall.jboss.GenericJBossMarshaller.objectToObjectStream(GenericJBossMarshaller.java:98) [:4.2.0.FINAL]
at org.infinispan.marshall.VersionAwareMarshaller.objectToBuffer(VersionAwareMarshaller.java:93) [:4.2.0.FINAL]
at org.infinispan.marshall.AbstractMarshaller.objectToBuffer(AbstractMarshaller.java:31) [:4.2.0.FINAL]
at org.infinispan.remoting.transport.jgroups.MarshallerAdapter.objectToBuffer(MarshallerAdapter.java:22) [:4.2.0.FINAL]
at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher$ReplicationTask.marshallCall(CommandAwareRpcDispatcher.java:240) [:4.2.0.FINAL]
... 76 more
Caused by: java.io.NotSerializableException: org.jboss.seam.cache.JbossCacheProvider
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156) [:1.6.0_20]
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509) [:1.6.0_20]
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474) [:1.6.0_20]
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392) [:1.6.0_20]
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150) [:1.6.0_20]
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509) [:1.6.0_20]
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474) [:1.6.0_20]
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392) [:1.6.0_20]
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150) [:1.6.0_20]
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326) [:1.6.0_20]
at java.util.HashMap.writeObject(HashMap.java:1001) [:1.6.0_20]
at sun.reflect.GeneratedMethodAccessor338.invoke(Unknown Source) [:1.6.0_20]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_20]
at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_20]
at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945) [:1.6.0_20]
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461) [:1.6.0_20]
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392) [:1.6.0_20]
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150) [:1.6.0_20]
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326) [:1.6.0_20]
at org.jboss.ha.framework.server.SimpleCachableMarshalledValue.serialize(SimpleCachableMarshalledValue.java:356) [:2.0.0.Final]
at org.jboss.ha.framework.server.SimpleCachableMarshalledValue.writeExternal(SimpleCachableMarshalledValue.java:337) [:2.0.0.Final]
at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:827) [:6.0.0.Final]
at org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:62) [:6.0.0.Final]
at org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:115) [:6.0.0.Final]
at org.infinispan.marshall.MarshallUtil.marshallMap(MarshallUtil.java:59) [:4.2.0.FINAL]
at org.infinispan.marshall.exts.MapExternalizer.writeObject(MapExternalizer.java:61) [:4.2.0.FINAL]
at org.infinispan.marshall.jboss.ConstantObjectTable$ExternalizerAdapter.writeObject(ConstantObjectTable.java:322) [:4.2.0.FINAL]
at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:144) [:6.0.0.Final]
at org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:62) [:6.0.0.Final]
at org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:115) [:6.0.0.Final]
at org.infinispan.atomic.AtomicHashMap$Externalizer.writeObject(AtomicHashMap.java:218) [:4.2.0.FINAL]
at org.infinispan.marshall.jboss.ConstantObjectTable$ExternalizerAdapter.writeObject(ConstantObjectTable.java:322) [:4.2.0.FINAL]
at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:144) [:6.0.0.Final]
at org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:62) [:6.0.0.Final]
at org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:115) [:6.0.0.Final]
at org.infinispan.marshall.jboss.GenericJBossMarshaller.objectToObjectStream(GenericJBossMarshaller.java:98) [:4.2.0.FINAL]
at org.infinispan.marshall.VersionAwareMarshaller.objectToObjectStream(VersionAwareMarshaller.java:150) [:4.2.0.FINAL]
at org.infinispan.marshall.MarshalledValue.serialize(MarshalledValue.java:91) [:4.2.0.FINAL]
... 97 more
Caused by: an exception which occurred:
in object org.jboss.ha.framework.server.SimpleCachableMarshalledValue at 7fffffff
in object org.infinispan.util.FastCopyHashMap at 6128dd8a
in object org.infinispan.atomic.AtomicHashMap at 6b5bf0f6
in object org.infinispan.marshall.MarshalledValue at 6b5bf0f6
in object org.infinispan.commands.write.PutKeyValueCommand at 22dc4cd8
in object org.infinispan.commands.tx.PrepareCommand at 84f7cf63
*I get this from the traget application server and the get the follwoing message to the server log from the other cluster machine.*
15:26:23,823 INFO [org.jboss.ha.framework.server.ClusterPartition.lifecycle.devPartition] New cluster view for partition devPartition (id: 2, delta: -1, merge: false) : [app8.dev1.whispir.net:1099]
15:26:23,823 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] Received new cluster view: [app8.dev1.whispir.net:1099|2] [app8.dev1.whispir.net:1099]
15:26:23,826 INFO [org.jboss.ha.core.framework.server.DistributedReplicantManagerImpl.devPartition] I am (app8.dev1.whispir.net:1099) received membershipChanged event:
15:26:23,829 INFO [org.jboss.ha.core.framework.server.DistributedReplicantManagerImpl.devPartition] Dead members: 1 ([app7.dev1.whispir.net:1099])
15:26:23,842 INFO [org.jboss.ha.core.framework.server.DistributedReplicantManagerImpl.devPartition] New Members : 0 ([])
15:26:23,844 INFO [org.jboss.ha.core.framework.server.DistributedReplicantManagerImpl.devPartition] All Members : 1 ([app8.dev1.whispir.net:1099])
15:26:23,900 WARN [org.jgroups.protocols.pbcast.NAKACK] app8.dev1.whispir.net:1099: dropped message from app7.dev1.whispir.net:1099 (not in table [app8.dev1.whispir.net:1099]), view=[app8.dev1.whispir.net:1099|2] [app8.dev1.whispir.net:1099]
15:26:24,200 INFO [org.jboss.ha.core.framework.server.CoreGroupCommunicationService.lifecycle] New cluster view for partition null (id: 2, delta: -1, merge: false) : [app8.dev1.whispir.net:1099]
15:26:24,213 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] Received new cluster view: [app8.dev1.whispir.net:1099|2] [app8.dev1.whispir.net:1099]
15:26:30,536 WARN [org.jboss.web.tomcat.service.session.distributedcache.ispn.DistributedCacheManager] Problem accessing session [KI****GvTg__]: java.lang.RuntimeException: java.lang.NullPointerException
Any kind of help is appriciated.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/591756#591756]
Start a new discussion in JBoss Cache at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2052]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110307/f14aff19/attachment-0001.html
More information about the jboss-user
mailing list