3 Replies Latest reply on Oct 14, 2008 8:14 AM by Manik Surtani

    Bug with commit

    Alexander Yerenkow Newbie

      I'm using GA hibernate 3.3.1 and jbosscache 2.2.0;
      I've a situation here - I made some changes in DB, and during some SQLes remove a node from jbosscache;
      After that I'm trying to commit transaction, and exception is thrown.

      13:59:08,212 ERROR [STDERR] javax.transaction.RollbackException: [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] Can't commit because the transaction is in aborted state
      13:59:08,212 ERROR [STDERR] at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1401)
      13:59:08,212 ERROR [STDERR] at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:135)
      13:59:08,212 ERROR [STDERR] at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:87)
      13:59:08,212 ERROR [STDERR] at org.jboss.tm.usertx.client.ServerVMClientUserTransaction.commit(ServerVMClientUserTransaction.java:140)
      13:59:08,213 ERROR [STDERR] at org.hibernate.transaction.JTATransaction.commit(JTATransaction.java:154)

      .....

      13:59:08,221 ERROR [STDERR] Caused by: java.lang.NullPointerException
      13:59:08,221 ERROR [STDERR] at java.util.HashMap.putAll(HashMap.java:498)
      13:59:08,221 ERROR [STDERR] at org.jboss.cache.loader.JDBCCacheLoader._put(JDBCCacheLoader.java:226)
      13:59:08,221 ERROR [STDERR] at org.jboss.cache.loader.JDBCCacheLoader.put(JDBCCacheLoader.java:76)
      13:59:08,222 ERROR [STDERR] at org.jboss.cache.loader.AbstractCacheLoader.put(AbstractCacheLoader.java:288)
      13:59:08,222 ERROR [STDERR] at org.jboss.cache.loader.AdjListJDBCCacheLoader.prepare(AdjListJDBCCacheLoader.java:189)
      13:59:08,222 ERROR [STDERR] at org.jboss.cache.interceptors.CacheStoreInterceptor.prepareCacheLoader(CacheStoreInterceptor.java:360)
      13:59:08,223 ERROR [STDERR] at org.jboss.cache.interceptors.CacheStoreInterceptor.handlePrepareCommand(CacheStoreInterceptor.java:185)
      13:59:08,223 ERROR [STDERR] at org.jboss.cache.interceptors.base.SkipCheckChainedInterceptor.visitPrepareCommand(SkipCheckChainedInterceptor.java:289)
      13:59:08,223 ERROR [STDERR] at org.jboss.cache.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:46)
      13:59:08,223 ERROR [STDERR] at org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:142)
      13:59:08,224 ERROR [STDERR] at org.jboss.cache.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:157)
      13:59:08,224 ERROR [STDERR] at org.jboss.cache.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:119)
      13:59:08,224 ERROR [STDERR] at org.jboss.cache.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:46)
      13:59:08,224 ERROR [STDERR] at org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:142)
      13:59:08,225 ERROR [STDERR] at org.jboss.cache.interceptors.PessimisticLockInterceptor.handlePrepareCommand(PessimisticLockInterceptor.java:125)
      13:59:08,225 ERROR [STDERR] at org.jboss.cache.interceptors.base.PostProcessingCommandInterceptor.visitPrepareCommand(PostProcessingCommandInterceptor.java:347)
      13:59:08,225 ERROR [STDERR] at org.jboss.cache.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:46)
      13:59:08,226 ERROR [STDERR] at org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:142)
      13:59:08,226 ERROR [STDERR] at org.jboss.cache.interceptors.ReplicationInterceptor.visitPrepareCommand(ReplicationInterceptor.java:42)
      13:59:08,226 ERROR [STDERR] at org.jboss.cache.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:46)
      13:59:08,226 ERROR [STDERR] at org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:142)
      13:59:08,227 ERROR [STDERR] at org.jboss.cache.interceptors.NotificationInterceptor.visitPrepareCommand(NotificationInterceptor.java:29)
      13:59:08,227 ERROR [STDERR] at org.jboss.cache.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:46)
      13:59:08,227 ERROR [STDERR] at org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:142)
      13:59:08,227 ERROR [STDERR] at org.jboss.cache.interceptors.TxInterceptor.runPreparePhase(TxInterceptor.java:690)
      13:59:08,227 ERROR [STDERR] at org.jboss.cache.interceptors.TxInterceptor$LocalSynchronizationHandler.beforeCompletion(TxInterceptor.java:1098)
      13:59:08,228 ERROR [STDERR] at org.jboss.cache.interceptors.OrderedSynchronizationHandler.beforeCompletion(OrderedSynchronizationHandler.java:60)
      13:59:08,228 ERROR [STDERR] at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:114)
      13:59:08,228 ERROR [STDERR] at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:247)
      13:59:08,228 ERROR [STDERR] at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:86)
      13:59:08,229 ERROR [STDERR] at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:177)
      13:59:08,229 ERROR [STDERR] at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1389)
      13:59:08,229 ERROR [STDERR] ... 33 more