3 Replies Latest reply on Apr 7, 2009 7:11 PM by Jim Alateras

    NPE Exception using Kaha Persistent Store

    Jim Alateras Newbie

      Hi,

       

      I get the following NPE running ativemq with the Kaha persistence store. I wasn't doing anything in particular during that time so i'm wondering whether anyone else has seen this and whether there is a resolution.

       

      Caused by: javax.jms.JMSException: POST COMMIT FAILED

           at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:49)

           at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1255)

           at org.apache.activemq.TransactionContext.commit(TransactionContext.java:266)

           at org.apache.activemq.ActiveMQSession.commit(ActiveMQSession.java:506)

           at au.com.observant.ringocore.dispatcher.enqueue.DefaultEnqueueStrategy.dispatch(DefaultEnqueueStrategy.java:109)

           ... 11 more

      Caused by: javax.transaction.xa.XAException: POST COMMIT FAILED

           at org.apache.activemq.transaction.LocalTransaction.commit(LocalTransaction.java:73)

           at org.apache.activemq.broker.TransactionBroker.commitTransaction(TransactionBroker.java:170)

           at org.apache.activemq.broker.BrokerFilter.commitTransaction(BrokerFilter.java:94)

           at org.apache.activemq.broker.MutableBrokerFilter.commitTransaction(MutableBrokerFilter.java:101)

           at org.apache.activemq.broker.TransportConnection.processCommitTransactionOnePhase(TransportConnection.java:418)

           at org.apache.activemq.command.TransactionInfo.visit(TransactionInfo.java:100)

           at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:308)

           at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:182)

           at org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:104)

           at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:68)

           at org.apache.activemq.transport.vm.VMTransport.iterate(VMTransport.java:204)

           at org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:122)

           at org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:43)

           at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)

           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)

           ... 1 more

      Caused by: java.lang.NullPointerException

           at org.apache.activemq.kaha.impl.index.hash.HashIndex.hash(HashIndex.java:598)

           at org.apache.activemq.kaha.impl.index.hash.HashIndex.getBin(HashIndex.java:456)

           at org.apache.activemq.kaha.impl.index.hash.HashIndex.get(HashIndex.java:294)

           at org.apache.activemq.kaha.impl.container.MapContainerImpl.getEntry(MapContainerImpl.java:233)

           at org.apache.activemq.store.kahadaptor.KahaMessageStore.setBatch(KahaMessageStore.java:181)

           at org.apache.activemq.store.ProxyMessageStore.setBatch(ProxyMessageStore.java:97)

           at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.setBatch(QueueStorePrefetch.java:78)

           at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.addMessageLast(AbstractStoreCursor.java:163)

           at org.apache.activemq.broker.region.cursors.StoreQueueCursor.addMessageLast(StoreQueueCursor.java:100)

           at org.apache.activemq.broker.region.Queue.sendMessage(Queue.java:1203)

           at org.apache.activemq.broker.region.Queue$7.afterCommit(Queue.java:506)

           at org.apache.activemq.transaction.Transaction.fireAfterCommit(Transaction.java:87)

           at org.apache.activemq.transaction.LocalTransaction.commit(LocalTransaction.java:68)

           ... 15 more