1 Reply Latest reply on Jun 28, 2013 11:44 AM by Sergey Zubarev

    GateIn3.5 Jboss 7.1 cluster richfaces 3 portlet infinispan exception

    Sergey Zubarev Newbie

      Hello.

      I have problem running jsf 1.2 (richfaces 3) portlet on gatein 3.5 in cluster mode:

       

       

      16:24:50,276 ERROR [org.infinispan.transaction.TransactionCoordinator] (http--172.16.1.32-8080-1) ISPN000097: Error while processing 1PC PrepareCommand: org.infinispan.CacheException: java.lang.RuntimeException: Failure to marshal argument(s)
       at org.infinispan.util.Util.rewrapAsCacheException(Util.java:524)
       at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.invokeRemoteCommand(CommandAwareRpcDispatcher.java:168)
       at org.infinispan.remoting.transport.jgroups.JGroupsTransport.invokeRemotely(JGroupsTransport.java:478)
       at org.infinispan.remoting.rpc.RpcManagerImpl.invokeRemotely(RpcManagerImpl.java:148)
       at org.infinispan.remoting.rpc.RpcManagerImpl.invokeRemotely(RpcManagerImpl.java:169)
       at org.infinispan.remoting.rpc.RpcManagerImpl.invokeRemotely(RpcManagerImpl.java:219)
       at org.infinispan.remoting.rpc.RpcManagerImpl.invokeRemotely(RpcManagerImpl.java:206)
       at org.infinispan.remoting.rpc.RpcManagerImpl.invokeRemotely(RpcManagerImpl.java:201)
       at org.infinispan.remoting.rpc.RpcManagerImpl.broadcastRpcCommand(RpcManagerImpl.java:184)
       at org.infinispan.interceptors.ReplicationInterceptor.broadcastPrepare(ReplicationInterceptor.java:136)
       at org.infinispan.interceptors.ReplicationInterceptor.visitPrepareCommand(ReplicationInterceptor.java:128)
       at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:131)
       at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
       at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:130)
       at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:113)
       at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:131)
       at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
       at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:130)
       at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:113)
       at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:131)
       at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
       at org.infinispan.interceptors.EntryWrappingInterceptor.visitPrepareCommand(EntryWrappingInterceptor.java:80)
       at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:131)
       at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
       at org.infinispan.interceptors.locking.AbstractTxLockingInterceptor.invokeNextAndCommitIf1Pc(AbstractTxLockingInterceptor.java:120)
       at org.infinispan.interceptors.locking.OptimisticLockingInterceptor.visitPrepareCommand(OptimisticLockingInterceptor.java:105)
       at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:131)
       at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
       at org.infinispan.interceptors.NotificationInterceptor.visitPrepareCommand(NotificationInterceptor.java:58)
       at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:131)
       at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
       at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:130)
       at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:113)
       at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:131)
       at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
       at org.infinispan.interceptors.TxInterceptor.visitPrepareCommand(TxInterceptor.java:106)
       at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:131)
       at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
       at org.infinispan.interceptors.StateTransferLockInterceptor.handleWithRetries(StateTransferLockInterceptor.java:207)
       at org.infinispan.interceptors.StateTransferLockInterceptor.visitPrepareCommand(StateTransferLockInterceptor.java:84)
       at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:131)
       at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
       at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:130)
       at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:113)
       at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:131)
       at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
       at org.infinispan.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:130)
       at org.infinispan.interceptors.InvocationContextInterceptor.handleDefault(InvocationContextInterceptor.java:89)
       at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:113)
       at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:131)
       at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
       at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:130)
       at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:113)
       at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:131)
       at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
       at org.infinispan.interceptors.BatchingInterceptor.handleDefault(BatchingInterceptor.java:86)
       at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:113)
       at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:131)
       at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
       at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:130)
       at org.jboss.as.clustering.infinispan.DefaultEmbeddedCacheManager$ClassLoaderAwareCommandInterceptor.handleDefault(DefaultEmbeddedCacheManager.java:410)
       at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:113)
       at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:131)
       at org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:345)
       at org.infinispan.transaction.TransactionCoordinator.commit(TransactionCoordinator.java:174)
       at org.infinispan.transaction.synchronization.SynchronizationAdapter.afterCompletion(SynchronizationAdapter.java:81)
       at org.infinispan.transaction.tm.DummyTransaction.notifyAfterCompletion(DummyTransaction.java:272)
       at org.infinispan.transaction.tm.DummyTransaction.runCommitTx(DummyTransaction.java:321)
       at org.infinispan.transaction.tm.DummyTransaction.commit(DummyTransaction.java:90)
       at org.infinispan.transaction.tm.DummyBaseTransactionManager.commit(DummyBaseTransactionManager.java:100)
       at org.jboss.as.clustering.web.impl.TransactionBatchingManager.endBatch(TransactionBatchingManager.java:75)
       at org.jboss.as.web.session.DistributableSessionManager.processSessionRepl(DistributableSessionManager.java:1530) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
       at org.jboss.as.web.session.DistributableSessionManager.storeSession(DistributableSessionManager.java:865) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
       at org.jboss.as.web.session.InstantSnapshotManager.snapshot(InstantSnapshotManager.java:47) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
       at org.jboss.as.web.session.ClusteredSessionValve.handleCrossContextSessions(ClusteredSessionValve.java:212) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
       at org.jboss.as.web.session.ClusteredSessionValve.handleRequest(ClusteredSessionValve.java:137) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
       at org.jboss.as.web.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:91) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
       at org.jboss.as.web.session.JvmRouteValve.invoke(JvmRouteValve.java:88) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
       at org.jboss.as.web.session.LockingValve.invoke(LockingValve.java:56) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
       at org.gatein.sso.integration.SSODelegateValve.invoke(SSODelegateValve.java:159) [sso-integration-1.3.0.Final.jar:1.3.0.Final]
       at org.exoplatform.web.login.PortalClusteredSSOSupportValve.invoke(PortalClusteredSSOSupportValve.java:89) [exo.portal.component.web.security-3.5.0.Final.jar:3.5.0.Final]
       at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]
       at org.jboss.as.web.sso.ClusteredSingleSignOn.invoke(ClusteredSingleSignOn.java:367) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]
       at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_25]
      Caused by: java.lang.RuntimeException: Failure to marshal argument(s)
       at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.marshallCall(CommandAwareRpcDispatcher.java:247)
       at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.processSingleCall(CommandAwareRpcDispatcher.java:262)
       at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.invokeRemoteCommand(CommandAwareRpcDispatcher.java:163)
       ... 89 more
      Caused by: org.infinispan.CacheException: Unable to marshall value AtomicHashMap{delegate={0=9, 1=1371817490165, 3={javax.portlet.p.da9d9c2a-8169-4f9f-9f5c-541538c08067?javax.portlet.faces.viewIdHistory.view=/pages/planning/EOContacts.xhtml?javax.faces.portletbridge.STATE_ID=view%3AGda9d9c2a_2d8169_2d4f9f_2d9f5c_2d541538c08067&javax.portlet.faces.PortletMode=view, javax.portlet.p.da9d9c2a-8169-4f9f-9f5c-541538c08067?org.ajax4jsf.application.AjaxStateHolder=org.ajax4jsf.application.AjaxStateHolder@1d6dddba, javax.portlet.p.da9d9c2a-8169-4f9f-9f5c-541538c08067?cpprContactsBean=ru.tersys.projects.asdu.repair.web.jsf.bean.planning.CpprContactsBean@1fbd715a, javax.portlet.p.da9d9c2a-8169-4f9f-9f5c-541538c08067?org.ajax4jsf.application.AjaxStateManager.view_sequence=1, javax.portlet.p.da9d9c2a-8169-4f9f-9f5c-541538c08067?org.jboss.portletbridge.RequestScopeManager=org.jboss.portletbridge.RequestScopeManager@55ac4773}}}
       at org.infinispan.marshall.MarshalledValue.serialize0(MarshalledValue.java:136)
       at org.infinispan.marshall.MarshalledValue.serialize(MarshalledValue.java:104)
       at org.infinispan.marshall.MarshalledValue.getRaw(MarshalledValue.java:213)
       at org.infinispan.marshall.MarshalledValue$Externalizer.writeObject(MarshalledValue.java:325)
       at org.infinispan.marshall.MarshalledValue$Externalizer.writeObject(MarshalledValue.java:316)
       at org.infinispan.marshall.jboss.ExternalizerTable$ExternalizerAdapter.writeObject(ExternalizerTable.java:406)
       at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:145)
       at org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:62)
       at org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:119)
       at org.infinispan.marshall.exts.ReplicableCommandExternalizer.writeCommandParameters(ReplicableCommandExternalizer.java:84)
       at org.infinispan.marshall.exts.ReplicableCommandExternalizer.writeObject(ReplicableCommandExternalizer.java:69)
       at org.infinispan.marshall.exts.ReplicableCommandExternalizer.writeObject(ReplicableCommandExternalizer.java:57)
       at org.infinispan.marshall.jboss.ExternalizerTable$ExternalizerAdapter.writeObject(ExternalizerTable.java:406)
       at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:145)
       at org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:62)
       at org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:119)
       at org.infinispan.marshall.exts.ReplicableCommandExternalizer.writeCommandParameters(ReplicableCommandExternalizer.java:84)
       at org.infinispan.marshall.exts.CacheRpcCommandExternalizer.marshallParameters(CacheRpcCommandExternalizer.java:126)
       at org.infinispan.marshall.exts.CacheRpcCommandExternalizer.writeObject(CacheRpcCommandExternalizer.java:113)
       at org.infinispan.marshall.exts.CacheRpcCommandExternalizer.writeObject(CacheRpcCommandExternalizer.java:68)
       at org.infinispan.marshall.jboss.ExternalizerTable$ExternalizerAdapter.writeObject(ExternalizerTable.java:406)
       at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:145)
       at org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:62)
       at org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:119)
       at org.infinispan.marshall.jboss.AbstractJBossMarshaller.objectToObjectStream(AbstractJBossMarshaller.java:86)
       at org.infinispan.marshall.VersionAwareMarshaller.objectToBuffer(VersionAwareMarshaller.java:86)
       at org.infinispan.marshall.AbstractMarshaller.objectToBuffer(AbstractMarshaller.java:57)
       at org.infinispan.marshall.AbstractDelegatingMarshaller.objectToBuffer(AbstractDelegatingMarshaller.java:89)
       at org.infinispan.remoting.transport.jgroups.MarshallerAdapter.objectToBuffer(MarshallerAdapter.java:45)
       at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.marshallCall(CommandAwareRpcDispatcher.java:245)
       ... 91 more
      Caused by: java.io.NotActiveException: Fields were never written
       at org.jboss.marshalling.river.RiverObjectOutputStream.finish(RiverObjectOutputStream.java:175)
       at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1009)
       at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:885)
       at org.jboss.marshalling.river.BlockMarshaller.doWriteObject(BlockMarshaller.java:69)
       at org.jboss.marshalling.river.BlockMarshaller.writeObject(BlockMarshaller.java:60)
       at org.jboss.marshalling.MarshallerObjectOutputStream.writeObjectOverride(MarshallerObjectOutputStream.java:54)
       at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326) [rt.jar:1.6.0_25]
       at java.util.HashMap.writeObject(HashMap.java:1000) [rt.jar:1.6.0_25]
       at sun.reflect.GeneratedMethodAccessor175.invoke(Unknown Source) [:1.6.0_25]
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_25]
       at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_25]
       at org.jboss.marshalling.reflect.SerializableClass.callWriteObject(SerializableClass.java:175)
       at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1007)
       at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:998)
       at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:998)
       at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:885)
       at org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1063)
       at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1019)
       at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:885)
       at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:680)
       at org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:62)
       at org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:119)
       at org.jboss.as.clustering.SimpleMarshalledValue.getBytes(SimpleMarshalledValue.java:74)
       at org.jboss.as.clustering.SimpleMarshalledValue.writeObject(SimpleMarshalledValue.java:172)
       at sun.reflect.GeneratedMethodAccessor177.invoke(Unknown Source) [:1.6.0_25]
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_25]
       at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_25]
       at org.jboss.marshalling.reflect.SerializableClass.callWriteObject(SerializableClass.java:175)
       at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1007)
       at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:885)
       at org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:62)
       at org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:119)
       at org.infinispan.marshall.MarshallUtil.marshallMap(MarshallUtil.java:60)
       at org.infinispan.marshall.exts.MapExternalizer.writeObject(MapExternalizer.java:63)
       at org.infinispan.marshall.exts.MapExternalizer.writeObject(MapExternalizer.java:47)
       at org.infinispan.marshall.jboss.ExternalizerTable$ExternalizerAdapter.writeObject(ExternalizerTable.java:406)
       at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:145)
       at org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:62)
       at org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:119)
       at org.infinispan.atomic.AtomicHashMap$Externalizer.writeObject(AtomicHashMap.java:229)
       at org.infinispan.atomic.AtomicHashMap$Externalizer.writeObject(AtomicHashMap.java:226)
       at org.infinispan.marshall.jboss.ExternalizerTable$ExternalizerAdapter.writeObject(ExternalizerTable.java:406)
       at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:145)
       at org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:62)
       at org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:119)
       at org.infinispan.marshall.jboss.AbstractJBossMarshaller.objectToObjectStream(AbstractJBossMarshaller.java:86)
       at org.infinispan.marshall.VersionAwareMarshaller.objectToObjectStream(VersionAwareMarshaller.java:151)
       at org.infinispan.marshall.AbstractDelegatingMarshaller.objectToObjectStream(AbstractDelegatingMarshaller.java:44)
       at org.infinispan.marshall.MarshalledValue.serialize0(MarshalledValue.java:119)
       ... 120 more
      Caused by: an exception which occurred:
       in field states
       in object java.util.HashMap@2e02702e
       in object org.jboss.as.clustering.SimpleMarshalledValue@2e02702e
       in object org.infinispan.util.FastCopyHashMap@48c39033
       in object org.infinispan.atomic.AtomicHashMap@63eea5be
       in object org.infinispan.marshall.MarshalledValue@63eea5be
       in object org.infinispan.commands.write.PutKeyValueCommand@1a90eeef
       in object org.infinispan.commands.tx.PrepareCommand@f39a29d9
      

       

       

      my configuration:

       

      jboss 7.1 with standalone-ha.xml configuration

      gatein 3.5

      portletbridge 2

      richfaces 3

       

      project source in attachment.

       

      please help.