7 Replies Latest reply on Apr 14, 2009 8:30 AM by Tim Fox

    NPE in transaction commit

    Yong Hao Gao Master

      I'm doing the xa-transaction example, in my example, I can see the XAResource committed (returned without exception), but there is NPE from another thread after the commit. Did I do something wrong? I have no idea so far.

      [java] org.jboss.jms.example.SpawnedJMSServer out:19:13:11,113 ERROR @New I/O server worker #1-2 [ServerSessionImpl] Failed to acknowledge
      [java] org.jboss.jms.example.SpawnedJMSServer out:java.lang.NullPointerException
      [java] org.jboss.jms.example.SpawnedJMSServer out: at org.jboss.messaging.core.server.impl.QueueImpl.acknowledge(QueueImpl.java:608)
      [java] org.jboss.jms.example.SpawnedJMSServer out: at org.jboss.messaging.core.server.impl.ServerConsumerImpl.acknowledge(ServerConsumerImpl.java:371)
      [java] org.jboss.jms.example.SpawnedJMSServer out: at org.jboss.messaging.core.server.impl.ServerSessionImpl.doHandleAcknowledge(ServerSessionImpl.java:1516)
      [java] org.jboss.jms.example.SpawnedJMSServer out: at org.jboss.messaging.core.server.impl.ServerSessionImpl.handleAcknowledge(ServerSessionImpl.java:454)
      [java] org.jboss.jms.example.SpawnedJMSServer out: at org.jboss.messaging.core.server.impl.ServerSessionPacketHandler.handlePacket(ServerSessionPacketHandler.java:146)
      [java] org.jboss.jms.example.SpawnedJMSServer out: at org.jboss.messaging.core.remoting.impl.RemotingConnectionImpl$ChannelImpl.handlePacket(RemotingConnectionImpl.java:1582)
      [java] org.jboss.jms.example.SpawnedJMSServer out: at org.jboss.messaging.core.remoting.impl.RemotingConnectionImpl$ChannelImpl.access$600(RemotingConnectionImpl.java:913)
      [java] org.jboss.jms.example.SpawnedJMSServer out: at org.jboss.messaging.core.remoting.impl.RemotingConnectionImpl.bufferReceived(RemotingConnectionImpl.java:527)
      [java] org.jboss.jms.example.SpawnedJMSServer out: at org.jboss.messaging.core.remoting.server.impl.RemotingServiceImpl$DelegatingBufferHandler.bufferReceived(RemotingServiceImpl.java:358)
      [java] org.jboss.jms.example.SpawnedJMSServer out: at org.jboss.messaging.integration.transports.netty.MessagingChannelHandler.messageReceived(MessagingChannelHandler.java:75)
      [java] org.jboss.jms.example.SpawnedJMSServer out: at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:105)
      [java] org.jboss.jms.example.SpawnedJMSServer out: at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:567)
      [java] org.jboss.jms.example.SpawnedJMSServer out: at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:802)
      [java] org.jboss.jms.example.SpawnedJMSServer out: at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:385)
      [java] org.jboss.jms.example.SpawnedJMSServer out: at org.jboss.netty.handler.codec.frame.FrameDecoder.fireMessageReceived(FrameDecoder.java:310)
      [java] org.jboss.jms.example.SpawnedJMSServer out: at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:287)
      [java] org.jboss.jms.example.SpawnedJMSServer out: at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:210)
      [java] org.jboss.jms.example.SpawnedJMSServer out: at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:105)
      [java] org.jboss.jms.example.SpawnedJMSServer out: at org.jboss.netty.handler.codec.frame.FrameDecoder.handleUpstream(FrameDecoder.java:170)
      [java] org.jboss.jms.example.SpawnedJMSServer out: at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:567)
      [java] org.jboss.jms.example.SpawnedJMSServer out: at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:562)
      [java] org.jboss.jms.example.SpawnedJMSServer out: at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:342)
      [java] org.jboss.jms.example.SpawnedJMSServer out: at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:329)
      [java] org.jboss.jms.example.SpawnedJMSServer out: at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:296)
      [java] org.jboss.jms.example.SpawnedJMSServer out: at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:251)
      [java] org.jboss.jms.example.SpawnedJMSServer out: at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:173)
      [java] org.jboss.jms.example.SpawnedJMSServer out: at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:72)
      [java] org.jboss.jms.example.SpawnedJMSServer out: at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
      [java] org.jboss.jms.example.SpawnedJMSServer out: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
      [java] org.jboss.jms.example.SpawnedJMSServer out: at java.lang.Thread.run(Thread.java:595)
      [java]