Jakub Markos created ISPN-4084:
----------------------------------
Summary: NotSerializableException for RecoveryInfoKey
Key: ISPN-4084
URL:
https://issues.jboss.org/browse/ISPN-4084
Project: Infinispan
Issue Type: Bug
Components: Transactions
Affects Versions: 7.0.0.Alpha1
Reporter: Jakub Markos
Assignee: Dan Berindei
While testing the recovery, this below exception showed up. I've sent a PR that fixes
this.
{code}
14:53:54,139 ERROR [org.infinispan.interceptors.InvocationContextInterceptor]
(remote-thread-0) ISPN000136: Execution error: org.infinispan.commons.CacheException:
java.lang.RuntimeException: Failure to marshal argument(s)
at org.infinispan.commons.util.Util.rewrapAsCacheException(Util.java:581)
[infinispan-commons.jar:7.0.0-SNAPSHOT]
at
org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.invokeRemoteCommand(CommandAwareRpcDispatcher.java:176)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.remoting.transport.jgroups.JGroupsTransport.invokeRemotely(JGroupsTransport.java:521)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.remoting.rpc.RpcManagerImpl.invokeRemotely(RpcManagerImpl.java:280)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.interceptors.distribution.BaseDistributionInterceptor.handleNonTxWriteCommand(BaseDistributionInterceptor.java:225)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.interceptors.distribution.NonTxDistributionInterceptor.visitRemoveCommand(NonTxDistributionInterceptor.java:110)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.commands.write.RemoveCommand.acceptVisitor(RemoveCommand.java:57)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.interceptors.EntryWrappingInterceptor.invokeNextAndApplyChanges(EntryWrappingInterceptor.java:326)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.interceptors.EntryWrappingInterceptor.setSkipRemoteGetsAndInvokeNextForDataCommand(EntryWrappingInterceptor.java:407)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.interceptors.EntryWrappingInterceptor.visitRemoveCommand(EntryWrappingInterceptor.java:221)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.commands.write.RemoveCommand.acceptVisitor(RemoveCommand.java:57)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.interceptors.locking.NonTransactionalLockingInterceptor.visitRemoveCommand(NonTransactionalLockingInterceptor.java:83)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.commands.write.RemoveCommand.acceptVisitor(RemoveCommand.java:57)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:112)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.commands.AbstractVisitor.visitRemoveCommand(AbstractVisitor.java:37)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.commands.write.RemoveCommand.acceptVisitor(RemoveCommand.java:57)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:112)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.commands.AbstractVisitor.visitRemoveCommand(AbstractVisitor.java:37)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.commands.write.RemoveCommand.acceptVisitor(RemoveCommand.java:57)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.statetransfer.StateTransferInterceptor.handleNonTxWriteCommand(StateTransferInterceptor.java:218)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.statetransfer.StateTransferInterceptor.visitRemoveCommand(StateTransferInterceptor.java:156)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.commands.write.RemoveCommand.acceptVisitor(RemoveCommand.java:57)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.interceptors.CacheMgmtInterceptor.visitRemoveCommand(CacheMgmtInterceptor.java:166)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.commands.write.RemoveCommand.acceptVisitor(RemoveCommand.java:57)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:110)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.interceptors.InvocationContextInterceptor.handleDefault(InvocationContextInterceptor.java:73)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.commands.AbstractVisitor.visitRemoveCommand(AbstractVisitor.java:37)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.commands.write.RemoveCommand.acceptVisitor(RemoveCommand.java:57)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:333)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at org.infinispan.CacheImpl.executeCommandAndCommitIfNeeded(CacheImpl.java:1399)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at org.infinispan.CacheImpl.removeInternal(CacheImpl.java:409)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at org.infinispan.CacheImpl.remove(CacheImpl.java:402)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at org.infinispan.CacheImpl.remove(CacheImpl.java:397)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.transaction.xa.recovery.RecoveryManagerImpl.removeRecoveryInformation(RecoveryManagerImpl.java:145)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.transaction.xa.recovery.RecoveryManagerImpl.removeRecoveryInformationFromCluster(RecoveryManagerImpl.java:131)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.transaction.xa.TransactionXaAdapter.forgetSuccessfullyCompletedTransaction(TransactionXaAdapter.java:222)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.transaction.xa.TransactionXaAdapter.commit(TransactionXaAdapter.java:114)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
com.arjuna.ats.internal.jta.resources.arjunacore.XAResourceRecord.topLevelOnePhaseCommit(XAResourceRecord.java:682)
[jbossjts-jacorb-4.17.15.Final-redhat-4.jar:4.17.15.Final-redhat-4]
at
com.arjuna.ats.arjuna.coordinator.BasicAction.onePhaseCommit(BasicAction.java:2270)
[jbossjts-jacorb-4.17.15.Final-redhat-4.jar:4.17.15.Final-redhat-4]
at com.arjuna.ats.arjuna.coordinator.BasicAction.End(BasicAction.java:1475)
[jbossjts-jacorb-4.17.15.Final-redhat-4.jar:4.17.15.Final-redhat-4]
at
com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:98)
[jbossjts-jacorb-4.17.15.Final-redhat-4.jar:4.17.15.Final-redhat-4]
at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:162)
[jbossjts-jacorb-4.17.15.Final-redhat-4.jar:4.17.15.Final-redhat-4]
at
com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1165)
[jbossjts-jacorb-4.17.15.Final-redhat-4.jar:4.17.15.Final-redhat-4]
at
com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:126)
[jbossjts-jacorb-4.17.15.Final-redhat-4.jar:4.17.15.Final-redhat-4]
at
com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:75)
at
org.infinispan.statetransfer.StateConsumerImpl.doApplyState(StateConsumerImpl.java:548)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.statetransfer.StateConsumerImpl.applyState(StateConsumerImpl.java:495)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.statetransfer.StateResponseCommand.perform(StateResponseCommand.java:62)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.remoting.InboundInvocationHandlerImpl.handleInternal(InboundInvocationHandlerImpl.java:95)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.remoting.InboundInvocationHandlerImpl.access$000(InboundInvocationHandlerImpl.java:50)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.remoting.InboundInvocationHandlerImpl$2.run(InboundInvocationHandlerImpl.java:178)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
[rt.jar:1.7.0_06]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
[rt.jar:1.7.0_06]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_06]
Caused by: java.lang.RuntimeException: Failure to marshal argument(s)
at
org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.marshallCall(CommandAwareRpcDispatcher.java:333)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.processSingleCall(CommandAwareRpcDispatcher.java:348)
[infinispan-core.jar:7.0.0-SNAPSHOT]
at
org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.invokeRemoteCommand(CommandAwareRpcDispatcher.java:167)
[infinispan-core.jar:7.0.0-SNAPSHOT]
... 59 more
Caused by: org.infinispan.commons.marshall.NotSerializableException:
org.infinispan.transaction.xa.recovery.RecoveryInfoKey
Caused by: an exception which occurred:
in object org.infinispan.transaction.xa.recovery.RecoveryInfoKey@df5e0f57
-> toString = RecoveryInfoKey{xid=< 131077, 29, 36,
0000000000-1-11034-127122-10-7-80638321-38-47000849,
0000000000-1-11034-127122-10-7-80638321-38-47000900000000 >,
cacheName='myCache'}
in object org.infinispan.commands.write.RemoveCommand@c63db89
-> toString = RemoveCommand{key=RecoveryInfoKey{xid=< 131077, 29,
36, 0000000000-1-11034-127122-10-7-80638321-38-47000849,
0000000000-1-11034-127122-10-7-80638321-38-47000900000000 >,
cacheName='myCache'}, value=null, flags=null, valueMatcher=MATCH_ALWAYS}
in object org.infinispan.commands.remote.SingleRpcCommand@1781c43c
-> toString = SingleRpcCommand{cacheName='recoveryCache',
command=RemoveCommand{key=RecoveryInfoKey{xid=< 131077, 29, 36,
0000000000-1-11034-127122-10-7-80638321-38-47000849,
0000000000-1-11034-127122-10-7-80638321-38-47000900000000 >,
cacheName='myCache'}, value=null, flags=null, valueMatcher=MATCH_ALWAYS}}
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira