2 Replies Latest reply on Apr 21, 2010 10:54 AM by carstenlenz

    NullPointerException on QueueImpl.acknowledge()

    carstenlenz

      Hi,

       

      I have a strange problem using HornetQ with JBoss 5.0.1 :

       

      I have configured a core-bridge between two jboss-as. On the consumer side my app gets all sent messages correctly but the server log shows the following exception:

       

      java.lang.NullPointerException
              at org.hornetq.core.server.impl.QueueImpl.acknowledge(QueueImpl.java:522)
              at org.hornetq.core.server.impl.ServerConsumerImpl.acknowledge(ServerConsumerImpl.java:540)
              at org.hornetq.core.server.impl.ServerSessionImpl.handleAcknowledge(ServerSessionImpl.java:648)
              at org.hornetq.core.server.impl.ServerSessionPacketHandler.handlePacket(ServerSessionPacketHandler.java:157)
              at org.hornetq.core.remoting.impl.ChannelImpl.handlePacket(ChannelImpl.java:466)
              at org.hornetq.core.remoting.impl.RemotingConnectionImpl.doBufferReceived(RemotingConnectionImpl.java:423)
              at org.hornetq.core.remoting.impl.RemotingConnectionImpl.bufferReceived(RemotingConnectionImpl.java:389)
              at org.hornetq.core.remoting.server.impl.RemotingServiceImpl$DelegatingBufferHandler.bufferReceived(RemotingServiceImpl.java:432)
              at org.hornetq.core.remoting.impl.invm.InVMConnection$1.run(InVMConnection.java:131)
              at org.hornetq.utils.OrderedExecutorFactory$OrderedExecutor$1.run(OrderedExecutorFactory.java:96)
              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
              at java.lang.Thread.run(Thread.java:619)
      

       

      I debugged the code and saw that the parameter tx is null.

       

      On server restart all messages get redelivered (which is "good" because acknowledge failed )

       

      I set up the jboss instance using the HornetQ configuration script and all configs are pretty much standard. Is there something obvious I am missing?