1 2 Previous Next 24 Replies Latest reply on Sep 5, 2014 2:32 PM by Filipe Ferraz

    org.infinispan.commons.CacheException: java.lang.RuntimeException: Failure to marshal argument(s)

    Humberto Ferreira da Luz Jr. Novice

      I'm migrating my clustered JBoss EAP 6.2 domain with two servers to Wildfly 8 Final. I configured my applications for JEE7 (JSF, CDI, Primefaces, EJB, JPA), but I'm getting the following stacktrace when I access my JSF page:

       

      [Server:server-one] 19:22:41,564 ERROR [org.infinispan.interceptors.InvocationContextInterceptor] (default task-15) ISPN000136: Execution error: org.infinispan.commons.CacheException: java.lang.RuntimeException: Failure to marshal argument(s)
      [Server:server-one] at org.infinispan.commons.util.Util.rewrapAsCacheException(Util.java:581)
      [Server:server-one] at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.invokeRemoteCommand(CommandAwareRpcDispatcher.java:176)
      [Server:server-one] at org.infinispan.remoting.transport.jgroups.JGroupsTransport.invokeRemotely(JGroupsTransport.java:521)
      [Server:server-one] at org.infinispan.remoting.rpc.RpcManagerImpl.invokeRemotely(RpcManagerImpl.java:281)
      [Server:server-one] at org.infinispan.interceptors.distribution.TxDistributionInterceptor.prepareOnAffectedNodes(TxDistributionInterceptor.java:219)
      [Server:server-one] at org.infinispan.interceptors.distribution.TxDistributionInterceptor.visitPrepareCommand(TxDistributionInterceptor.java:203)
      [Server:server-one] at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:125)
      [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
      [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:112)
      [Server:server-one] at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:96)
      [Server:server-one] at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:125)
      [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
      [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:112)
      [Server:server-one] at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:96)
      [Server:server-one] at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:125)
      [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
      [Server:server-one] at org.infinispan.interceptors.EntryWrappingInterceptor.visitPrepareCommand(EntryWrappingInterceptor.java:96)
      [Server:server-one] at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:125)
      [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
      [Server:server-one] at org.infinispan.interceptors.locking.AbstractTxLockingInterceptor.invokeNextAndCommitIf1Pc(AbstractTxLockingInterceptor.java:78)
      [Server:server-one] at org.infinispan.interceptors.locking.PessimisticLockingInterceptor.visitPrepareCommand(PessimisticLockingInterceptor.java:83)
      [Server:server-one] at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:125)
      [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
      [Server:server-one] at org.infinispan.interceptors.NotificationInterceptor.visitPrepareCommand(NotificationInterceptor.java:36)
      [Server:server-one] at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:125)
      [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
      [Server:server-one] at org.infinispan.interceptors.TxInterceptor.invokeNextInterceptorAndVerifyTransaction(TxInterceptor.java:114)
      [Server:server-one] at org.infinispan.interceptors.TxInterceptor.visitPrepareCommand(TxInterceptor.java:101)
      [Server:server-one] at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:125)
      [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
      [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:112)
      [Server:server-one] at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:96)
      [Server:server-one] at org.infinispan.statetransfer.TransactionSynchronizerInterceptor.visitPrepareCommand(TransactionSynchronizerInterceptor.java:42)
      [Server:server-one] at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:125)
      [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
      [Server:server-one] at org.infinispan.statetransfer.StateTransferInterceptor.handleTopologyAffectedCommand(StateTransferInterceptor.java:263)
      [Server:server-one] at org.infinispan.statetransfer.StateTransferInterceptor.handleTxCommand(StateTransferInterceptor.java:194)
      [Server:server-one] at org.infinispan.statetransfer.StateTransferInterceptor.visitPrepareCommand(StateTransferInterceptor.java:94)
      [Server:server-one] at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:125)
      [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
      [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:112)
      [Server:server-one] at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:96)
      [Server:server-one] at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:125)
      [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
      [Server:server-one] at org.infinispan.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:110)
      [Server:server-one] at org.infinispan.interceptors.InvocationContextInterceptor.handleDefault(InvocationContextInterceptor.java:73)
      [Server:server-one] at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:96)
      [Server:server-one] at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:125)
      [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
      [Server:server-one] at org.infinispan.interceptors.BatchingInterceptor.handleDefault(BatchingInterceptor.java:66)
      [Server:server-one] at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:96)
      [Server:server-one] at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:125)
      [Server:server-one] at org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:333)
      [Server:server-one] at org.infinispan.transaction.TransactionCoordinator.commit(TransactionCoordinator.java:154)
      [Server:server-one] at org.infinispan.transaction.synchronization.SynchronizationAdapter.afterCompletion(SynchronizationAdapter.java:58)
      [Server:server-one] at org.infinispan.transaction.tm.DummyTransaction.notifyAfterCompletion(DummyTransaction.java:263)
      [Server:server-one] at org.infinispan.transaction.tm.DummyTransaction.runCommitTx(DummyTransaction.java:312)
      [Server:server-one] at org.infinispan.transaction.tm.DummyTransaction.commit(DummyTransaction.java:69)
      [Server:server-one] at org.infinispan.transaction.tm.DummyBaseTransactionManager.commit(DummyBaseTransactionManager.java:80)
      [Server:server-one] at org.infinispan.batch.BatchContainer.resolveTransaction(BatchContainer.java:101)
      [Server:server-one] at org.infinispan.batch.BatchContainer.endBatch(BatchContainer.java:83)
      [Server:server-one] at org.infinispan.batch.BatchContainer.endBatch(BatchContainer.java:64)
      [Server:server-one] at org.infinispan.CacheImpl.endBatch(CacheImpl.java:777)
      [Server:server-one] at org.infinispan.AbstractDelegatingCache.endBatch(AbstractDelegatingCache.java:53)
      [Server:server-one] at org.wildfly.clustering.web.infinispan.InfinispanBatcher$1.end(InfinispanBatcher.java:56)
      [Server:server-one] at org.wildfly.clustering.web.infinispan.InfinispanBatcher$1.close(InfinispanBatcher.java:46)
      [Server:server-one] at org.wildfly.clustering.web.undertow.session.DistributableSession.requestDone(DistributableSession.java:72)
      [Server:server-one] at io.undertow.servlet.spec.ServletContextImpl.updateSessionAccessTime(ServletContextImpl.java:704) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at io.undertow.servlet.spec.HttpServletResponseImpl.responseDone(HttpServletResponseImpl.java:522) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:287) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at io.undertow.server.Connectors.executeRootHandler(Connectors.java:168) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:687) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_51]
      [Server:server-one] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_51]
      [Server:server-one] at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]
      [Server:server-one] Caused by: java.lang.RuntimeException: Failure to marshal argument(s)
      [Server:server-one] at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.marshallCall(CommandAwareRpcDispatcher.java:333)
      [Server:server-one] at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.processSingleCall(CommandAwareRpcDispatcher.java:352)
      [Server:server-one] at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.invokeRemoteCommand(CommandAwareRpcDispatcher.java:167)
      [Server:server-one] ... 76 more
      [Server:server-one] Caused by: org.infinispan.commons.marshall.NotSerializableException: org.jboss.weld.bean.ManagedBean
      [Server:server-one] Caused by: an exception which occurred:
      [Server:server-one] in object java.util.HashMap@b37422bb
      [Server:server-one] in object org.jboss.as.clustering.marshalling.SimpleMarshalledValue@b37422bb
      [Server:server-one] in object org.infinispan.commands.write.PutKeyValueCommand@db517a36
      [Server:server-one] in object org.infinispan.commands.tx.PrepareCommand@6fa34718
      [Server:server-one]
      [Server:server-one] 19:22:41,630 ERROR [org.infinispan.transaction.TransactionCoordinator] (default task-15) ISPN000097: Error while processing a prepare in a single-phase transaction: org.infinispan.commons.CacheException: java.lang.RuntimeException: Failure to marshal argument(s)
      [Server:server-one] at org.infinispan.commons.util.Util.rewrapAsCacheException(Util.java:581)
      [Server:server-one] at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.invokeRemoteCommand(CommandAwareRpcDispatcher.java:176)
      [Server:server-one] at org.infinispan.remoting.transport.jgroups.JGroupsTransport.invokeRemotely(JGroupsTransport.java:521)
      [Server:server-one] at org.infinispan.remoting.rpc.RpcManagerImpl.invokeRemotely(RpcManagerImpl.java:281)
      [Server:server-one] at org.infinispan.interceptors.distribution.TxDistributionInterceptor.prepareOnAffectedNodes(TxDistributionInterceptor.java:219)
      [Server:server-one] at org.infinispan.interceptors.distribution.TxDistributionInterceptor.visitPrepareCommand(TxDistributionInterceptor.java:203)
      [Server:server-one] at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:125)
      [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
      [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:112)
      [Server:server-one] at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:96)
      [Server:server-one] at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:125)
      [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
      [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:112)
      [Server:server-one] at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:96)
      [Server:server-one] at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:125)
      [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
      [Server:server-one] at org.infinispan.interceptors.EntryWrappingInterceptor.visitPrepareCommand(EntryWrappingInterceptor.java:96)
      [Server:server-one] at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:125)
      [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
      [Server:server-one] at org.infinispan.interceptors.locking.AbstractTxLockingInterceptor.invokeNextAndCommitIf1Pc(AbstractTxLockingInterceptor.java:78)
      [Server:server-one] at org.infinispan.interceptors.locking.PessimisticLockingInterceptor.visitPrepareCommand(PessimisticLockingInterceptor.java:83)
      [Server:server-one] at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:125)
      [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
      [Server:server-one] at org.infinispan.interceptors.NotificationInterceptor.visitPrepareCommand(NotificationInterceptor.java:36)
      [Server:server-one] at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:125)
      [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
      [Server:server-one] at org.infinispan.interceptors.TxInterceptor.invokeNextInterceptorAndVerifyTransaction(TxInterceptor.java:114)
      [Server:server-one] at org.infinispan.interceptors.TxInterceptor.visitPrepareCommand(TxInterceptor.java:101)
      [Server:server-one] at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:125)
      [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
      [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:112)
      [Server:server-one] at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:96)
      [Server:server-one] at org.infinispan.statetransfer.TransactionSynchronizerInterceptor.visitPrepareCommand(TransactionSynchronizerInterceptor.java:42)
      [Server:server-one] at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:125)
      [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
      [Server:server-one] at org.infinispan.statetransfer.StateTransferInterceptor.handleTopologyAffectedCommand(StateTransferInterceptor.java:263)
      [Server:server-one] at org.infinispan.statetransfer.StateTransferInterceptor.handleTxCommand(StateTransferInterceptor.java:194)
      [Server:server-one] at org.infinispan.statetransfer.StateTransferInterceptor.visitPrepareCommand(StateTransferInterceptor.java:94)
      [Server:server-one] at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:125)
      [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
      [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:112)
      [Server:server-one] at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:96)
      [Server:server-one] at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:125)
      [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
      [Server:server-one] at org.infinispan.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:110)
      [Server:server-one] at org.infinispan.interceptors.InvocationContextInterceptor.handleDefault(InvocationContextInterceptor.java:73)
      [Server:server-one] at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:96)
      [Server:server-one] at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:125)
      [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
      [Server:server-one] at org.infinispan.interceptors.BatchingInterceptor.handleDefault(BatchingInterceptor.java:66)
      [Server:server-one] at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:96)
      [Server:server-one] at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:125)
      [Server:server-one] at org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:333)
      [Server:server-one] at org.infinispan.transaction.TransactionCoordinator.commit(TransactionCoordinator.java:154)
      [Server:server-one] at org.infinispan.transaction.synchronization.SynchronizationAdapter.afterCompletion(SynchronizationAdapter.java:58)
      [Server:server-one] at org.infinispan.transaction.tm.DummyTransaction.notifyAfterCompletion(DummyTransaction.java:263)
      [Server:server-one] at org.infinispan.transaction.tm.DummyTransaction.runCommitTx(DummyTransaction.java:312)
      [Server:server-one] at org.infinispan.transaction.tm.DummyTransaction.commit(DummyTransaction.java:69)
      [Server:server-one] at org.infinispan.transaction.tm.DummyBaseTransactionManager.commit(DummyBaseTransactionManager.java:80)
      [Server:server-one] at org.infinispan.batch.BatchContainer.resolveTransaction(BatchContainer.java:101)
      [Server:server-one] at org.infinispan.batch.BatchContainer.endBatch(BatchContainer.java:83)
      [Server:server-one] at org.infinispan.batch.BatchContainer.endBatch(BatchContainer.java:64)
      [Server:server-one] at org.infinispan.CacheImpl.endBatch(CacheImpl.java:777)
      [Server:server-one] at org.infinispan.AbstractDelegatingCache.endBatch(AbstractDelegatingCache.java:53)
      [Server:server-one] at org.wildfly.clustering.web.infinispan.InfinispanBatcher$1.end(InfinispanBatcher.java:56)
      [Server:server-one] at org.wildfly.clustering.web.infinispan.InfinispanBatcher$1.close(InfinispanBatcher.java:46)
      [Server:server-one] at org.wildfly.clustering.web.undertow.session.DistributableSession.requestDone(DistributableSession.java:72)
      [Server:server-one] at io.undertow.servlet.spec.ServletContextImpl.updateSessionAccessTime(ServletContextImpl.java:704) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at io.undertow.servlet.spec.HttpServletResponseImpl.responseDone(HttpServletResponseImpl.java:522) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:287) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at io.undertow.server.Connectors.executeRootHandler(Connectors.java:168) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:687) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_51]
      [Server:server-one] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_51]
      [Server:server-one] at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]
      [Server:server-one] Caused by: java.lang.RuntimeException: Failure to marshal argument(s)
      [Server:server-one] at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.marshallCall(CommandAwareRpcDispatcher.java:333)
      [Server:server-one] at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.processSingleCall(CommandAwareRpcDispatcher.java:352)
      [Server:server-one] at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.invokeRemoteCommand(CommandAwareRpcDispatcher.java:167)
      [Server:server-one] ... 76 more
      [Server:server-one] Caused by: org.infinispan.commons.marshall.NotSerializableException: org.jboss.weld.bean.ManagedBean
      [Server:server-one] Caused by: an exception which occurred:
      [Server:server-one] in object java.util.HashMap@b37422bb
      [Server:server-one] in object org.jboss.as.clustering.marshalling.SimpleMarshalledValue@b37422bb
      [Server:server-one] in object org.infinispan.commands.write.PutKeyValueCommand@db517a36
      [Server:server-one] in object org.infinispan.commands.tx.PrepareCommand@6fa34718
      [Server:server-one]
      [Server:server-one] 19:22:41,709 ERROR [org.infinispan.transaction.tm.DummyTransaction] (default task-15) ISPN000111: afterCompletion() failed for SynchronizationAdapter{localTransaction=LocalTransaction{remoteLockedNodes=[srv-216:server-one/web, srv-217:server-one/web], isMarkedForRollback=false, lockedKeys=null, backupKeyLocks=[nsbafvbXYPuzo-BRdBI1Go8z], topologyId=32, isFromStateTransfer=false} org.infinispan.transaction.synchronization.SyncLocalTransaction@74} org.infinispan.transaction.synchronization.SynchronizationAdapter@93: org.infinispan.commons.CacheException: Could not commit.
      [Server:server-one] at org.infinispan.transaction.synchronization.SynchronizationAdapter.afterCompletion(SynchronizationAdapter.java:60)
      [Server:server-one] at org.infinispan.transaction.tm.DummyTransaction.notifyAfterCompletion(DummyTransaction.java:263)
      [Server:server-one] at org.infinispan.transaction.tm.DummyTransaction.runCommitTx(DummyTransaction.java:312)
      [Server:server-one] at org.infinispan.transaction.tm.DummyTransaction.commit(DummyTransaction.java:69)
      [Server:server-one] at org.infinispan.transaction.tm.DummyBaseTransactionManager.commit(DummyBaseTransactionManager.java:80)
      [Server:server-one] at org.infinispan.batch.BatchContainer.resolveTransaction(BatchContainer.java:101)
      [Server:server-one] at org.infinispan.batch.BatchContainer.endBatch(BatchContainer.java:83)
      [Server:server-one] at org.infinispan.batch.BatchContainer.endBatch(BatchContainer.java:64)
      [Server:server-one] at org.infinispan.CacheImpl.endBatch(CacheImpl.java:777)
      [Server:server-one] at org.infinispan.AbstractDelegatingCache.endBatch(AbstractDelegatingCache.java:53)
      [Server:server-one] at org.wildfly.clustering.web.infinispan.InfinispanBatcher$1.end(InfinispanBatcher.java:56)
      [Server:server-one] at org.wildfly.clustering.web.infinispan.InfinispanBatcher$1.close(InfinispanBatcher.java:46)
      [Server:server-one] at org.wildfly.clustering.web.undertow.session.DistributableSession.requestDone(DistributableSession.java:72)
      [Server:server-one] at io.undertow.servlet.spec.ServletContextImpl.updateSessionAccessTime(ServletContextImpl.java:704) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at io.undertow.servlet.spec.HttpServletResponseImpl.responseDone(HttpServletResponseImpl.java:522) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:287) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at io.undertow.server.Connectors.executeRootHandler(Connectors.java:168) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:687) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_51]
      [Server:server-one] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_51]
      [Server:server-one] at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]
      [Server:server-one] Caused by: javax.transaction.xa.XAException
      [Server:server-one] at org.infinispan.transaction.TransactionCoordinator.handleCommitFailure(TransactionCoordinator.java:204)
      [Server:server-one] at org.infinispan.transaction.TransactionCoordinator.commit(TransactionCoordinator.java:156)
      [Server:server-one] at org.infinispan.transaction.synchronization.SynchronizationAdapter.afterCompletion(SynchronizationAdapter.java:58)
      [Server:server-one] ... 23 more
      [Server:server-one]
      [Server:server-one] 19:22:52,911 ERROR [io.undertow.request] (default task-7) UT005023: Exception handling request to /identificacao_institucional/index: javax.servlet.ServletException: viewId:/index.xhtml - View /index.xhtml could not be restored.
      [Server:server-one] at javax.faces.webapp.FacesServlet.service(FacesServlet.java:659) [jboss-jsf-api_2.2_spec-2.2.5.jar:2.2.5]
      [Server:server-one] at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:130) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:70) [primefaces-4.0.jar:4.0]
      [Server:server-one] at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:56) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at org.omnifaces.filter.GzipResponseFilter.doFilter(GzipResponseFilter.java:149) [omnifaces-1.7.jar:1.7]
      [Server:server-one] at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:77) [omnifaces-1.7.jar:1.7]
      [Server:server-one] at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:56) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at org.omnifaces.facesviews.FacesViewsForwardingFilter.doFilter(FacesViewsForwardingFilter.java:130) [omnifaces-1.7.jar:1.7]
      [Server:server-one] at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:77) [omnifaces-1.7.jar:1.7]
      [Server:server-one] at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:56) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at org.omnifaces.filter.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:115) [omnifaces-1.7.jar:1.7]
      [Server:server-one] at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:77) [omnifaces-1.7.jar:1.7]
      [Server:server-one] at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:56) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
      [Server:server-one] at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at io.undertow.security.handlers.AuthenticationCallHandler.handleRequest(AuthenticationCallHandler.java:52) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:61) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
      [Server:server-one] at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:240) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at io.undertow.server.Connectors.executeRootHandler(Connectors.java:168) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:687) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
      [Server:server-one] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_51]
      [Server:server-one] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_51]
      [Server:server-one] at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]
      [Server:server-one] Caused by: javax.faces.application.ViewExpiredException: viewId:/index.xhtml - View /index.xhtml could not be restored.
      [Server:server-one] at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:210) [jsf-impl-2.2.5-jbossorg-3.jar:]
      [Server:server-one] at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.2.5-jbossorg-3.jar:]
      [Server:server-one] at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:121) [jsf-impl-2.2.5-jbossorg-3.jar:]
      [Server:server-one] at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198) [jsf-impl-2.2.5-jbossorg-3.jar:]
      [Server:server-one] at javax.faces.webapp.FacesServlet.service(FacesServlet.java:646) [jboss-jsf-api_2.2_spec-2.2.5.jar:2.2.5]
      [Server:server-one] ... 41 more
      
      

       

      I found a similar issue, fixed by Wildfly team: SavedRequest causes NotSerializableException in clustered mode

       

      Anyone know if that's a bug or just a configuration issue?

        • 1. Re: org.infinispan.commons.CacheException: java.lang.RuntimeException: Failure to marshal argument(s)
          Scott Marlow Master

          One of the changes in WildFly, is to replicate all stateful beans by default.  See https://community.jboss.org/wiki/ClusteringChangesInWildFly8 for a description of the clustering changes.

           

          Could you try adding @Stateful(passivationCapable=false) to your EJB beans that you don't want to be replicated across the cluster.  This is probably all of your stateful beans that do not have the @Clustered annotation.


          Let us know if that helps.


          Scott

          • 2. Re: org.infinispan.commons.CacheException: java.lang.RuntimeException: Failure to marshal argument(s)
            Scott Marlow Master

            My mistake, just looked at your exception call stack again and its not looking like an EJB issue.

            • 3. Re: org.infinispan.commons.CacheException: java.lang.RuntimeException: Failure to marshal argument(s)
              Scott Marlow Master

              Do you expect the managed bean(s) being referenced (from your JSF page) to be replicated across the cluster?

              • 4. Re: org.infinispan.commons.CacheException: java.lang.RuntimeException: Failure to marshal argument(s)
                Humberto Ferreira da Luz Jr. Novice

                Thanks for your help Scott.

                All my EJBs are stateless session beans.

                And I indeed expect my managed bean to be replicated across the cluster. The bean referenced in the page was originally an Omnifaces viewscoped bean, but I tried to solve the issue by changing it to the new JSF 2.2 javax.faces.view.ViewScoped.

                I'm going to try another scope (like Session and Request) to check if it's related to viewscope replication.

                • 5. Re: Re: org.infinispan.commons.CacheException: java.lang.RuntimeException: Failure to marshal argument(s)
                  Humberto Ferreira da Luz Jr. Novice

                  I tried changing my bean scope to Session, but it didn't work.

                   

                  After I changed my beans.xml from:

                   

                  <?xml version="1.0" encoding="UTF-8"?>
                  <beans xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                    xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/beans_1_1.xsd"
                    bean-discovery-mode="all">
                  </beans>
                  

                   

                  To:

                   

                  <?xml version="1.0" encoding="UTF-8"?>
                  <beans xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                    xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/beans_1_1.xsd"
                    bean-discovery-mode="all">
                    <scan>
                    <exclude name="org.jboss.weld.bean.ManagedBean"></exclude>
                    </scan>
                  </beans>
                  

                   

                  I began to get this:

                   

                  [Server:server-one] 09:03:28,918 ERROR [io.undertow.request] (default task-9) UT005023: Exception handling request to /identificacao_institucional/index: javax.servlet.ServletException: ISPN000217: Received exception from srv-217:server-one/web, see cause for remote stack trace
                  [Server:server-one] at javax.faces.webapp.FacesServlet.service(FacesServlet.java:659) [jboss-jsf-api_2.2_spec-2.2.5.jar:2.2.5]
                  [Server:server-one] at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  [Server:server-one] at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:130) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  [Server:server-one] at org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:70) [primefaces-4.0.jar:4.0]
                  [Server:server-one] at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:56) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  [Server:server-one] at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  [Server:server-one] at org.omnifaces.filter.GzipResponseFilter.doFilter(GzipResponseFilter.java:149) [omnifaces-1.7.jar:1.7]
                  [Server:server-one] at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:77) [omnifaces-1.7.jar:1.7]
                  [Server:server-one] at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:56) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  [Server:server-one] at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  [Server:server-one] at org.omnifaces.facesviews.FacesViewsForwardingFilter.doFilter(FacesViewsForwardingFilter.java:130) [omnifaces-1.7.jar:1.7]
                  [Server:server-one] at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:77) [omnifaces-1.7.jar:1.7]
                  [Server:server-one] at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:56) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  [Server:server-one] at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  [Server:server-one] at org.omnifaces.filter.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:115) [omnifaces-1.7.jar:1.7]
                  [Server:server-one] at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:77) [omnifaces-1.7.jar:1.7]
                  [Server:server-one] at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:56) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  [Server:server-one] at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  [Server:server-one] at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  [Server:server-one] at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  [Server:server-one] at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  [Server:server-one] at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
                  [Server:server-one] at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
                  [Server:server-one] at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  [Server:server-one] at io.undertow.security.handlers.AuthenticationCallHandler.handleRequest(AuthenticationCallHandler.java:52) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
                  [Server:server-one] at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
                  [Server:server-one] at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:61) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  [Server:server-one] at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  [Server:server-one] at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
                  [Server:server-one] at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
                  [Server:server-one] at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
                  [Server:server-one] at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
                  [Server:server-one] at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
                  [Server:server-one] at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:240) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  [Server:server-one] at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  [Server:server-one] at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  [Server:server-one] at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  [Server:server-one] at io.undertow.server.Connectors.executeRootHandler(Connectors.java:168) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
                  [Server:server-one] at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:687) [undertow-core-1.0.0.Final.jar:1.0.0.Final]
                  [Server:server-one] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_51]
                  [Server:server-one] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_51]
                  [Server:server-one] at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_51]
                  [Server:server-one] Caused by: org.infinispan.remoting.RemoteException: ISPN000217: Received exception from srv-217:server-one/web, see cause for remote stack trace
                  [Server:server-one] at org.infinispan.remoting.transport.AbstractTransport.checkResponse(AbstractTransport.java:41)
                  [Server:server-one] at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.processSingleCall(CommandAwareRpcDispatcher.java:362)
                  [Server:server-one] at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.invokeRemoteCommand(CommandAwareRpcDispatcher.java:167)
                  [Server:server-one] at org.infinispan.remoting.transport.jgroups.JGroupsTransport.invokeRemotely(JGroupsTransport.java:521)
                  [Server:server-one] at org.infinispan.remoting.rpc.RpcManagerImpl.invokeRemotely(RpcManagerImpl.java:281)
                  [Server:server-one] at org.infinispan.interceptors.distribution.TxDistributionInterceptor.visitLockControlCommand(TxDistributionInterceptor.java:180)
                  [Server:server-one] at org.infinispan.commands.control.LockControlCommand.acceptVisitor(LockControlCommand.java:110)
                  [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
                  [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:112)
                  [Server:server-one] at org.infinispan.commands.AbstractVisitor.visitLockControlCommand(AbstractVisitor.java:147)
                  [Server:server-one] at org.infinispan.commands.control.LockControlCommand.acceptVisitor(LockControlCommand.java:110)
                  [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
                  [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:112)
                  [Server:server-one] at org.infinispan.commands.AbstractVisitor.visitLockControlCommand(AbstractVisitor.java:147)
                  [Server:server-one] at org.infinispan.commands.control.LockControlCommand.acceptVisitor(LockControlCommand.java:110)
                  [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
                  [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:112)
                  [Server:server-one] at org.infinispan.commands.AbstractVisitor.visitLockControlCommand(AbstractVisitor.java:147)
                  [Server:server-one] at org.infinispan.commands.control.LockControlCommand.acceptVisitor(LockControlCommand.java:110)
                  [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
                  [Server:server-one] at org.infinispan.interceptors.locking.PessimisticLockingInterceptor.acquireRemoteIfNeeded(PessimisticLockingInterceptor.java:272)
                  [Server:server-one] at org.infinispan.interceptors.locking.PessimisticLockingInterceptor.visitPutKeyValueCommand(PessimisticLockingInterceptor.java:103)
                  [Server:server-one] at org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:70)
                  [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
                  [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:112)
                  [Server:server-one] at org.infinispan.commands.AbstractVisitor.visitPutKeyValueCommand(AbstractVisitor.java:32)
                  [Server:server-one] at org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:70)
                  [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
                  [Server:server-one] at org.infinispan.interceptors.TxInterceptor.enlistWriteAndInvokeNext(TxInterceptor.java:255)
                  [Server:server-one] at org.infinispan.interceptors.TxInterceptor.visitPutKeyValueCommand(TxInterceptor.java:186)
                  [Server:server-one] at org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:70)
                  [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
                  [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:112)
                  [Server:server-one] at org.infinispan.commands.AbstractVisitor.visitPutKeyValueCommand(AbstractVisitor.java:32)
                  [Server:server-one] at org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:70)
                  [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
                  [Server:server-one] at org.infinispan.statetransfer.StateTransferInterceptor.handleNonTxWriteCommand(StateTransferInterceptor.java:206)
                  [Server:server-one] at org.infinispan.statetransfer.StateTransferInterceptor.visitPutKeyValueCommand(StateTransferInterceptor.java:141)
                  [Server:server-one] at org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:70)
                  [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
                  [Server:server-one] at org.infinispan.interceptors.CacheMgmtInterceptor.updateStoreStatistics(CacheMgmtInterceptor.java:148)
                  [Server:server-one] at org.infinispan.interceptors.CacheMgmtInterceptor.visitPutKeyValueCommand(CacheMgmtInterceptor.java:134)
                  [Server:server-one] at org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:70)
                  [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
                  [Server:server-one] at org.infinispan.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:110)
                  [Server:server-one] at org.infinispan.interceptors.InvocationContextInterceptor.handleDefault(InvocationContextInterceptor.java:73)
                  [Server:server-one] at org.infinispan.commands.AbstractVisitor.visitPutKeyValueCommand(AbstractVisitor.java:32)
                  [Server:server-one] at org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:70)
                  [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
                  [Server:server-one] at org.infinispan.interceptors.BatchingInterceptor.handleDefault(BatchingInterceptor.java:79)
                  [Server:server-one] at org.infinispan.commands.AbstractVisitor.visitPutKeyValueCommand(AbstractVisitor.java:32)
                  [Server:server-one] at org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:70)
                  [Server:server-one] at org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:333)
                  [Server:server-one] at org.infinispan.CacheImpl.executeCommandAndCommitIfNeeded(CacheImpl.java:1306)
                  [Server:server-one] at org.infinispan.CacheImpl.putIfAbsentInternal(CacheImpl.java:903)
                  [Server:server-one] at org.infinispan.CacheImpl.putIfAbsent(CacheImpl.java:893)
                  [Server:server-one] at org.infinispan.CacheImpl.putIfAbsent(CacheImpl.java:1366)
                  [Server:server-one] at org.infinispan.CacheImpl.putIfAbsent(CacheImpl.java:245)
                  [Server:server-one] at org.infinispan.AbstractDelegatingCache.putIfAbsent(AbstractDelegatingCache.java:231)
                  [Server:server-one] at org.jboss.as.clustering.infinispan.invoker.Creator$CreateOperation.invoke(Creator.java:32)
                  [Server:server-one] at org.jboss.as.clustering.infinispan.invoker.SimpleCacheInvoker.invoke(SimpleCacheInvoker.java:34)
                  [Server:server-one] at org.jboss.as.clustering.infinispan.invoker.RetryingCacheInvoker.invoke(RetryingCacheInvoker.java:82)
                  [Server:server-one] at org.wildfly.clustering.web.infinispan.session.coarse.CoarseSessionFactory.createValue(CoarseSessionFactory.java:96)
                  [Server:server-one] at org.wildfly.clustering.web.infinispan.session.coarse.CoarseSessionFactory.createValue(CoarseSessionFactory.java:55)
                  [Server:server-one] at org.wildfly.clustering.web.infinispan.session.InfinispanSessionManager.createSession(InfinispanSessionManager.java:171)
                  [Server:server-one] at org.wildfly.clustering.web.undertow.session.DistributableSessionManager.createSession(DistributableSessionManager.java:93)
                  [Server:server-one] at io.undertow.servlet.spec.ServletContextImpl.getSession(ServletContextImpl.java:678) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  [Server:server-one] at io.undertow.servlet.spec.HttpServletRequestImpl.getSession(HttpServletRequestImpl.java:353) [undertow-servlet-1.0.0.Final.jar:1.0.0.Final]
                  [Server:server-one] at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:270) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]
                  [Server:server-one] at com.sun.faces.context.SessionMap.getSession(SessionMap.java:235) [jsf-impl-2.2.5-jbossorg-3.jar:]
                  [Server:server-one] at com.sun.faces.context.SessionMap.put(SessionMap.java:126) [jsf-impl-2.2.5-jbossorg-3.jar:]
                  [Server:server-one] at com.sun.faces.context.SessionMap.put(SessionMap.java:61) [jsf-impl-2.2.5-jbossorg-3.jar:]
                  [Server:server-one] at com.sun.faces.application.view.ViewScopeContextManager.getContextMap(ViewScopeContextManager.java:229) [jsf-impl-2.2.5-jbossorg-3.jar:]
                  [Server:server-one] at com.sun.faces.application.view.ViewScopeContextManager.getContextMap(ViewScopeContextManager.java:206) [jsf-impl-2.2.5-jbossorg-3.jar:]
                  [Server:server-one] at com.sun.faces.application.view.ViewScopeContextManager.getBean(ViewScopeContextManager.java:183) [jsf-impl-2.2.5-jbossorg-3.jar:]
                  [Server:server-one] at com.sun.faces.application.view.ViewScopeContext.get(ViewScopeContext.java:108) [jsf-impl-2.2.5-jbossorg-3.jar:]
                  [Server:server-one] at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:81) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
                  [Server:server-one] at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:78) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
                  [Server:server-one] at br.uel.ati.util.identificacao_institucional.controller.FotoController$Proxy$_$$_WeldClientProxy.getChaveAcesso(Unknown Source) [classes:]
                  [Server:server-one] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_51]
                  [Server:server-one] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_51]
                  [Server:server-one] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_51]
                  [Server:server-one] at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_51]
                  [Server:server-one] at javax.el.BeanELResolver.getValue(BeanELResolver.java:363) [javax.el-3.0.0.jar:3.0.0]
                  [Server:server-one] at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176) [jsf-impl-2.2.5-jbossorg-3.jar:]
                  [Server:server-one] at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203) [jsf-impl-2.2.5-jbossorg-3.jar:]
                  [Server:server-one] at com.sun.el.parser.AstValue.getValue(AstValue.java:140) [javax.el-3.0.0.jar:3.0.0]
                  [Server:server-one] at com.sun.el.parser.AstValue.getTarget(AstValue.java:186) [javax.el-3.0.0.jar:3.0.0]
                  [Server:server-one] at com.sun.el.parser.AstValue.getType(AstValue.java:86) [javax.el-3.0.0.jar:3.0.0]
                  [Server:server-one] at com.sun.el.ValueExpressionImpl.getType(ValueExpressionImpl.java:201) [javax.el-3.0.0.jar:3.0.0]
                  [Server:server-one] at org.jboss.weld.el.WeldValueExpression.getType(WeldValueExpression.java:93) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
                  [Server:server-one] at org.jboss.weld.el.WeldValueExpression.getType(WeldValueExpression.java:93) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]
                  [Server:server-one] at com.sun.faces.facelets.el.TagValueExpression.getType(TagValueExpression.java:98) [jsf-impl-2.2.5-jbossorg-3.jar:]
                  [Server:server-one] at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:95) [jsf-impl-2.2.5-jbossorg-3.jar:]
                  [Server:server-one] at javax.faces.component.UIViewParameter.getConvertedValue(UIViewParameter.java:437) [jboss-jsf-api_2.2_spec-2.2.5.jar:2.2.5]
                  [Server:server-one] at javax.faces.component.UIInput.validate(UIInput.java:976) [jboss-jsf-api_2.2_spec-2.2.5.jar:2.2.5]
                  [Server:server-one] at javax.faces.component.UIInput.executeValidate(UIInput.java:1249) [jboss-jsf-api_2.2_spec-2.2.5.jar:2.2.5]
                  [Server:server-one] at javax.faces.component.UIInput.processValidators(UIInput.java:712) [jboss-jsf-api_2.2_spec-2.2.5.jar:2.2.5]
                  [Server:server-one] at javax.faces.component.UIViewParameter.processValidators(UIViewParameter.java:278) [jboss-jsf-api_2.2_spec-2.2.5.jar:2.2.5]
                  [Server:server-one] at org.omnifaces.component.input.ViewParam.processValidators(ViewParam.java:78) [omnifaces-1.7.jar:1.7]
                  [Server:server-one] at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1258) [jboss-jsf-api_2.2_spec-2.2.5.jar:2.2.5]
                  [Server:server-one] at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1258) [jboss-jsf-api_2.2_spec-2.2.5.jar:2.2.5]
                  [Server:server-one] at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:1195) [jboss-jsf-api_2.2_spec-2.2.5.jar:2.2.5]
                  [Server:server-one] at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76) [jsf-impl-2.2.5-jbossorg-3.jar:]
                  [Server:server-one] at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.2.5-jbossorg-3.jar:]
                  [Server:server-one] at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198) [jsf-impl-2.2.5-jbossorg-3.jar:]
                  [Server:server-one] at javax.faces.webapp.FacesServlet.service(FacesServlet.java:646) [jboss-jsf-api_2.2_spec-2.2.5.jar:2.2.5]
                  [Server:server-one] ... 41 more
                  [Server:server-one] Caused by: org.infinispan.util.concurrent.TimeoutException: Unable to acquire lock after [15 seconds] on key [_JdivJPC6a01V7EhUfBosV6Y] for requestor [GlobalTransaction:<srv-216:server-one/web>:100:remote]! Lock held by [GlobalTransaction:<srv-217:server-one/web>:99:local]
                  [Server:server-one] at org.infinispan.util.concurrent.locks.LockManagerImpl.lock(LockManagerImpl.java:198)
                  [Server:server-one] at org.infinispan.util.concurrent.locks.LockManagerImpl.acquireLock(LockManagerImpl.java:171)
                  [Server:server-one] at org.infinispan.interceptors.locking.AbstractTxLockingInterceptor.lockKeyAndCheckOwnership(AbstractTxLockingInterceptor.java:169)
                  [Server:server-one] at org.infinispan.interceptors.locking.AbstractTxLockingInterceptor.lockAndRegisterBackupLock(AbstractTxLockingInterceptor.java:98)
                  [Server:server-one] at org.infinispan.interceptors.locking.PessimisticLockingInterceptor.visitLockControlCommand(PessimisticLockingInterceptor.java:235)
                  [Server:server-one] at org.infinispan.commands.control.LockControlCommand.acceptVisitor(LockControlCommand.java:110)
                  [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
                  [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:112)
                  [Server:server-one] at org.infinispan.commands.AbstractVisitor.visitLockControlCommand(AbstractVisitor.java:147)
                  [Server:server-one] at org.infinispan.commands.control.LockControlCommand.acceptVisitor(LockControlCommand.java:110)
                  [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
                  [Server:server-one] at org.infinispan.interceptors.TxInterceptor.invokeNextInterceptorAndVerifyTransaction(TxInterceptor.java:114)
                  [Server:server-one] at org.infinispan.interceptors.TxInterceptor.visitLockControlCommand(TxInterceptor.java:181)
                  [Server:server-one] at org.infinispan.commands.control.LockControlCommand.acceptVisitor(LockControlCommand.java:110)
                  [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
                  [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:112)
                  [Server:server-one] at org.infinispan.commands.AbstractVisitor.visitLockControlCommand(AbstractVisitor.java:147)
                  [Server:server-one] at org.infinispan.statetransfer.TransactionSynchronizerInterceptor.visitLockControlCommand(TransactionSynchronizerInterceptor.java:75)
                  [Server:server-one] at org.infinispan.commands.control.LockControlCommand.acceptVisitor(LockControlCommand.java:110)
                  [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
                  [Server:server-one] at org.infinispan.statetransfer.StateTransferInterceptor.handleTopologyAffectedCommand(StateTransferInterceptor.java:263)
                  [Server:server-one] at org.infinispan.statetransfer.StateTransferInterceptor.handleTxCommand(StateTransferInterceptor.java:194)
                  [Server:server-one] at org.infinispan.statetransfer.StateTransferInterceptor.visitLockControlCommand(StateTransferInterceptor.java:136)
                  [Server:server-one] at org.infinispan.commands.control.LockControlCommand.acceptVisitor(LockControlCommand.java:110)
                  [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
                  [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:112)
                  [Server:server-one] at org.infinispan.commands.AbstractVisitor.visitLockControlCommand(AbstractVisitor.java:147)
                  [Server:server-one] at org.infinispan.commands.control.LockControlCommand.acceptVisitor(LockControlCommand.java:110)
                  [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
                  [Server:server-one] at org.infinispan.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:110)
                  [Server:server-one] at org.infinispan.interceptors.InvocationContextInterceptor.visitLockControlCommand(InvocationContextInterceptor.java:78)
                  [Server:server-one] at org.infinispan.commands.control.LockControlCommand.acceptVisitor(LockControlCommand.java:110)
                  [Server:server-one] at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
                  [Server:server-one] at org.infinispan.interceptors.BatchingInterceptor.handleDefault(BatchingInterceptor.java:58)
                  [Server:server-one] at org.infinispan.commands.AbstractVisitor.visitLockControlCommand(AbstractVisitor.java:147)
                  [Server:server-one] at org.infinispan.commands.control.LockControlCommand.acceptVisitor(LockControlCommand.java:110)
                  [Server:server-one] at org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:333)
                  [Server:server-one] at org.infinispan.commands.control.LockControlCommand.perform(LockControlCommand.java:129)
                  [Server:server-one] at org.infinispan.remoting.InboundInvocationHandlerImpl.handleInternal(InboundInvocationHandlerImpl.java:95)
                  [Server:server-one] at org.infinispan.remoting.InboundInvocationHandlerImpl.access$000(InboundInvocationHandlerImpl.java:50)
                  [Server:server-one] at org.infinispan.remoting.InboundInvocationHandlerImpl$2.run(InboundInvocationHandlerImpl.java:172)
                  [Server:server-one] ... 3 more
                  

                   

                  Btw, srv-217 is my 2nd server (slave), while srv-216 is the master.

                  • 6. Re: Re: Re: org.infinispan.commons.CacheException: java.lang.RuntimeException: Failure to marshal argument(s)
                    Humberto Ferreira da Luz Jr. Novice

                    I was wrong, my modifications in beans.xml didn't solve this:

                     

                    [Server:server-one] Caused by: org.infinispan.commons.marshall.NotSerializableException: org.jboss.weld.bean.ManagedBean
                    [Server:server-one] Caused by: an exception which occurred:
                    [Server:server-one] in object java.util.HashMap@62eb1c6c
                    [Server:server-one] in object org.jboss.as.clustering.marshalling.SimpleMarshalledValue@62eb1c6c
                    [Server:server-one] in object org.infinispan.commands.write.PutKeyValueCommand@7347ab00
                    [Server:server-one] in object org.infinispan.commands.tx.PrepareCommand@ff24684f
                    
                    

                     

                    It was just being displayed in srv-217 log instead.

                     

                    I tried disabling srv-217 and I was able to use my application through srv-216, but it also often triggers the same infinispan exception.

                     

                    The issue also happens when running my application on standalone mode.

                    • 7. Re: org.infinispan.commons.CacheException: java.lang.RuntimeException: Failure to marshal argument(s)
                      Scott Marlow Master

                      What happens if you change your managed bean(s) to be java.io.Serializable? 

                      • 8. Re: Re: Re: Re: org.infinispan.commons.CacheException: java.lang.RuntimeException: Failure to marshal argument(s)
                        Radoslav Husar Master

                        The org.jboss.weld.bean.ManagedBean object should never ever get serialized. Sounds like a bug.

                         

                        Any chance you could attach a simple reproducer?

                        • 9. Re: Re: Re: Re: Re: org.infinispan.commons.CacheException: java.lang.RuntimeException: Failure to marshal argument(s)
                          Humberto Ferreira da Luz Jr. Novice

                          I attached a simple reproducer that triggers the stacktrace pasted in the original post.

                           

                          The reproducer is extremely simple, so I guess it's something related to infinispan configuration, which I didn't even edit:

                           

                          <subsystem xmlns="urn:jboss:domain:infinispan:2.0">
                                          <cache-container name="server" default-cache="default" module="org.wildfly.clustering.server" aliases="singleton cluster">
                                              <transport lock-timeout="60000"/>
                                              <replicated-cache name="default" batching="true" mode="SYNC">
                                                  <locking isolation="REPEATABLE_READ"/>
                                              </replicated-cache>
                                          </cache-container>
                                          <cache-container name="web" default-cache="dist" module="org.wildfly.clustering.web.infinispan">
                                              <transport lock-timeout="60000"/>
                                              <distributed-cache name="dist" batching="true" mode="ASYNC" owners="4" l1-lifespan="0">
                                                  <file-store/>
                                              </distributed-cache>
                                          </cache-container>
                                          <cache-container name="ejb" default-cache="dist" module="org.wildfly.clustering.ejb.infinispan" aliases="sfsb">
                                              <transport lock-timeout="60000"/>
                                              <distributed-cache name="dist" batching="true" mode="ASYNC" owners="4" l1-lifespan="0">
                                                  <file-store/>
                                              </distributed-cache>
                                          </cache-container>
                                          <cache-container name="hibernate" default-cache="local-query" module="org.hibernate">
                                              <transport lock-timeout="60000"/>
                                              <local-cache name="local-query">
                                                  <transaction mode="NONE"/>
                                                  <eviction strategy="LRU" max-entries="10000"/>
                                                  <expiration max-idle="100000"/>
                                              </local-cache>
                                              <invalidation-cache name="entity" mode="SYNC">
                                                  <transaction mode="NON_XA"/>
                                                  <eviction strategy="LRU" max-entries="10000"/>
                                                  <expiration max-idle="100000"/>
                                              </invalidation-cache>
                                              <replicated-cache name="timestamps" mode="ASYNC">
                                                  <transaction mode="NONE"/>
                                                  <eviction strategy="NONE"/>
                                              </replicated-cache>
                                          </cache-container>
                                      </subsystem>
                          
                          
                          • 10. Re: Re: Re: Re: Re: org.infinispan.commons.CacheException: java.lang.RuntimeException: Failure to marshal argument(s)
                            Humberto Ferreira da Luz Jr. Novice

                            I guess I should also mention that I'm using mod_jk for load balance, so maybe something has changed.

                            • 12. Re: Re: Re: Re: Re: Re: org.infinispan.commons.CacheException: java.lang.RuntimeException: Failure to marshal argument(s)
                              Scott Marlow Master

                              Are you still getting the following error?

                              Caused by: org.infinispan.commons.marshall.NotSerializableException: org.jboss.weld.bean.ManagedBean

                              • 13. Re: Re: Re: Re: Re: Re: Re: org.infinispan.commons.CacheException: java.lang.RuntimeException: Failure to marshal argument(s)
                                Humberto Ferreira da Luz Jr. Novice

                                Yes, I am.

                                 

                                I used a diff tool to check what I changed in domain.xml comparing it to an untouched wildfly zip. I just added oracle driver, around 10 xa-datasources, 2 security-domains and 2 mail-sessions. The reproducer that I have attached doesn't use any of those resources and it still triggers that exception.

                                 

                                Based on the quote below from wildfly documentation, my only guess is that I have to change some configuration in order to work with mod_jk.

                                 

                                <use-jk/>
                                Previously, the instance-id of the node handling a given request was appended to the jsessionid (for use by load balancers such as mod_jk, mod_proxy_balancer, mod_cluster, etc.) depending on the value specified for <use-jk/>.
                                In the new implementation, the instance-id, if defined, is always appended to the jsessionid.
                                
                                
                                
                                • 14. Re: Re: Re: Re: Re: Re: Re: org.infinispan.commons.CacheException: java.lang.RuntimeException: Failure to marshal argument(s)
                                  Humberto Ferreira da Luz Jr. Novice

                                  I tried to use mod_cluster instead of mod_jk, but the issue persists.

                                   

                                  I noticed that JSF Session Scope and Omnifaces View Scope are working fine. The issue is raised when I use the new JSF faces.view.ViewScope.

                                   

                                  After faces.view.ViewScope fails, all other scopes fail for the same session.

                                  1 2 Previous Next