2 Replies Latest reply on Jun 17, 2013 9:59 AM by Omar BOURAS

    infinispan 5.1.7 with jgroups 3.2.7: org.jgroups.Message.setBuffer NoSuchMethodError

    Omar BOURAS Newbie

      Hello,

      We had a trouble with infinispan 5.1.7.Final with jgroups 3.2.7. The following stacktrace is observed when We start our second node's cluster:

       

      11:52:31,569 ERROR [org.infinispan.remoting.rpc.RpcManagerImpl] (Scheduled-StaleNodesLinksCleaner-1) ISPN000073: Unexpected error while replicating: java.lang.NoSuchMethodError: org.jgroups.Message.setBuffer(Lorg/jgroups/util/Buffer;)V
          at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.constructMessage(CommandAwareRpcDispatcher.java:240) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.processSingleCall(CommandAwareRpcDispatcher.java:275) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.invokeRemoteCommand(CommandAwareRpcDispatcher.java:165) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.remoting.transport.jgroups.JGroupsTransport.invokeRemotely(JGroupsTransport.java:489) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.remoting.rpc.RpcManagerImpl.invokeRemotely(RpcManagerImpl.java:161) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.remoting.rpc.RpcManagerImpl.invokeRemotely(RpcManagerImpl.java:183) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.remoting.rpc.RpcManagerImpl.invokeRemotely(RpcManagerImpl.java:240) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.remoting.rpc.RpcManagerImpl.invokeRemotely(RpcManagerImpl.java:227) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.remoting.rpc.RpcManagerImpl.invokeRemotely(RpcManagerImpl.java:222) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.remoting.rpc.RpcManagerImpl.broadcastRpcCommand(RpcManagerImpl.java:201) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.ReplicationInterceptor.broadcastPrepare(ReplicationInterceptor.java:136) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.ReplicationInterceptor.visitPrepareCommand(ReplicationInterceptor.java:128) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:133) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.EntryWrappingInterceptor.visitPrepareCommand(EntryWrappingInterceptor.java:93) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:133) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.locking.AbstractTxLockingInterceptor.invokeNextAndCommitIf1Pc(AbstractTxLockingInterceptor.java:120) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.locking.OptimisticLockingInterceptor.visitPrepareCommand(OptimisticLockingInterceptor.java:131) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:133) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.NotificationInterceptor.visitPrepareCommand(NotificationInterceptor.java:58) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:133) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.TxInterceptor.visitPrepareCommand(TxInterceptor.java:106) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:133) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.StateTransferLockInterceptor.handleWithRetries(StateTransferLockInterceptor.java:213) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.StateTransferLockInterceptor.visitPrepareCommand(StateTransferLockInterceptor.java:85) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:133) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:130) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:126) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:133) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:132) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.InvocationContextInterceptor.handleDefault(InvocationContextInterceptor.java:91) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:126) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:133) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.BatchingInterceptor.handleDefault(BatchingInterceptor.java:86) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:126) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:133) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:345) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.transaction.TransactionCoordinator.commit(TransactionCoordinator.java:174) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.transaction.synchronization.SynchronizationAdapter.afterCompletion(SynchronizationAdapter.java:81) [infinispan-core.jar:5.1.7.Final]
          at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.afterCompletion(SynchronizationImple.java:96) [jbossjta.jar:]
          at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.afterCompletion(TwoPhaseCoordinator.java:402) [jbossjta.jar:]
          at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:103) [jbossjta.jar:]
          at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:162) [jbossjta.jar:]
          at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1165) [jbossjta.jar:]
          at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:126) [jbossjta.jar:]
          at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:75)
          at org.infinispan.batch.BatchContainer.resolveTransaction(BatchContainer.java:123) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.batch.BatchContainer.endBatch(BatchContainer.java:105) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.batch.AutoBatchSupport.endAtomic(AutoBatchSupport.java:49) [infinispan-core.jar:5.1.7.Final]
          at org.picketlink.idm.impl.tree.IDMTreeCacheImpl.access$400(IDMTreeCacheImpl.java:34) [picketlink-idm-cache.jar:1.4.1.Final]
          at org.picketlink.idm.impl.tree.IDMTreeCacheImpl$StaleNodesLinksCleaner.processNode(IDMTreeCacheImpl.java:376) [picketlink-idm-cache.jar:1.4.1.Final]
          at org.picketlink.idm.impl.tree.IDMTreeCacheImpl$StaleNodesLinksCleaner.processNode(IDMTreeCacheImpl.java:382) [picketlink-idm-cache.jar:1.4.1.Final]
          at org.picketlink.idm.impl.tree.IDMTreeCacheImpl$StaleNodesLinksCleaner.processNode(IDMTreeCacheImpl.java:382) [picketlink-idm-cache.jar:1.4.1.Final]
          at org.picketlink.idm.impl.tree.IDMTreeCacheImpl$StaleNodesLinksCleaner.run(IDMTreeCacheImpl.java:326) [picketlink-idm-cache.jar:1.4.1.Final]
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [rt.jar:1.6.0_30]
          at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) [rt.jar:1.6.0_30]
          at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [rt.jar:1.6.0_30]
          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) [rt.jar:1.6.0_30]
          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180) [rt.jar:1.6.0_30]
          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) [rt.jar:1.6.0_30]
          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_30]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_30]
          at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_30]
      
      11:52:31,587 ERROR [org.infinispan.interceptors.InvocationContextInterceptor] (Scheduled-StaleNodesLinksCleaner-1) ISPN000136: Execution error: org.infinispan.CacheException: java.lang.NoSuchMethodError: org.jgroups.Message.setBuffer(Lorg/jgroups/util/Buffer;)V
          at org.infinispan.remoting.rpc.RpcManagerImpl.invokeRemotely(RpcManagerImpl.java:171) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.remoting.rpc.RpcManagerImpl.invokeRemotely(RpcManagerImpl.java:183) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.remoting.rpc.RpcManagerImpl.invokeRemotely(RpcManagerImpl.java:240) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.remoting.rpc.RpcManagerImpl.invokeRemotely(RpcManagerImpl.java:227) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.remoting.rpc.RpcManagerImpl.invokeRemotely(RpcManagerImpl.java:222) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.remoting.rpc.RpcManagerImpl.broadcastRpcCommand(RpcManagerImpl.java:201) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.ReplicationInterceptor.broadcastPrepare(ReplicationInterceptor.java:136) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.ReplicationInterceptor.visitPrepareCommand(ReplicationInterceptor.java:128) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:133) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.EntryWrappingInterceptor.visitPrepareCommand(EntryWrappingInterceptor.java:93) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:133) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.locking.AbstractTxLockingInterceptor.invokeNextAndCommitIf1Pc(AbstractTxLockingInterceptor.java:120) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.locking.OptimisticLockingInterceptor.visitPrepareCommand(OptimisticLockingInterceptor.java:131) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:133) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.NotificationInterceptor.visitPrepareCommand(NotificationInterceptor.java:58) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:133) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.TxInterceptor.visitPrepareCommand(TxInterceptor.java:106) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:133) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.StateTransferLockInterceptor.handleWithRetries(StateTransferLockInterceptor.java:213) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.StateTransferLockInterceptor.visitPrepareCommand(StateTransferLockInterceptor.java:85) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:133) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:130) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:126) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:133) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:132) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.InvocationContextInterceptor.handleDefault(InvocationContextInterceptor.java:91) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:126) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:133) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.BatchingInterceptor.handleDefault(BatchingInterceptor.java:86) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:126) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:133) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:345) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.transaction.TransactionCoordinator.commit(TransactionCoordinator.java:174) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.transaction.synchronization.SynchronizationAdapter.afterCompletion(SynchronizationAdapter.java:81) [infinispan-core.jar:5.1.7.Final]
          at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.afterCompletion(SynchronizationImple.java:96) [jbossjta.jar:]
          at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.afterCompletion(TwoPhaseCoordinator.java:402) [jbossjta.jar:]
          at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:103) [jbossjta.jar:]
          at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:162) [jbossjta.jar:]
          at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1165) [jbossjta.jar:]
          at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:126) [jbossjta.jar:]
          at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:75)
          at org.infinispan.batch.BatchContainer.resolveTransaction(BatchContainer.java:123) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.batch.BatchContainer.endBatch(BatchContainer.java:105) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.batch.AutoBatchSupport.endAtomic(AutoBatchSupport.java:49) [infinispan-core.jar:5.1.7.Final]
          at org.picketlink.idm.impl.tree.IDMTreeCacheImpl.access$400(IDMTreeCacheImpl.java:34) [picketlink-idm-cache.jar:1.4.1.Final]
          at org.picketlink.idm.impl.tree.IDMTreeCacheImpl$StaleNodesLinksCleaner.processNode(IDMTreeCacheImpl.java:376) [picketlink-idm-cache.jar:1.4.1.Final]
          at org.picketlink.idm.impl.tree.IDMTreeCacheImpl$StaleNodesLinksCleaner.processNode(IDMTreeCacheImpl.java:382) [picketlink-idm-cache.jar:1.4.1.Final]
          at org.picketlink.idm.impl.tree.IDMTreeCacheImpl$StaleNodesLinksCleaner.processNode(IDMTreeCacheImpl.java:382) [picketlink-idm-cache.jar:1.4.1.Final]
          at org.picketlink.idm.impl.tree.IDMTreeCacheImpl$StaleNodesLinksCleaner.run(IDMTreeCacheImpl.java:326) [picketlink-idm-cache.jar:1.4.1.Final]
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [rt.jar:1.6.0_30]
          at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) [rt.jar:1.6.0_30]
          at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [rt.jar:1.6.0_30]
          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) [rt.jar:1.6.0_30]
          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180) [rt.jar:1.6.0_30]
          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) [rt.jar:1.6.0_30]
          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_30]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_30]
          at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_30]
      Caused by: java.lang.NoSuchMethodError: org.jgroups.Message.setBuffer(Lorg/jgroups/util/Buffer;)V
          at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.constructMessage(CommandAwareRpcDispatcher.java:240) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.processSingleCall(CommandAwareRpcDispatcher.java:275) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.invokeRemoteCommand(CommandAwareRpcDispatcher.java:165) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.remoting.transport.jgroups.JGroupsTransport.invokeRemotely(JGroupsTransport.java:489) [infinispan-core.jar:5.1.7.Final]
          at org.infinispan.remoting.rpc.RpcManagerImpl.invokeRemotely(RpcManagerImpl.java:161) [infinispan-core.jar:5.1.7.Final]
          ... 65 more
      

      I 've checked the used jgroups version. The org.jgroups.Message.setBuffer method is in it with the correct signature