8 Replies Latest reply on Oct 10, 2012 5:02 AM by javahamburg

    Strange message after invoking management query

    javahamburg Newbie

      Hi,

      I query the management queue, but after invokation I get the following message on the server side (the client-side closes without exceptions):

      [Old I/O server worker (parentId: 1985191693, [id: 0x76539f0d, localhost/127.0.0.1:5445])] 14:14:16,787 SEVERE [org.hornetq.core.server.impl.ServerSessionImpl]  Failed to remove temporary queue jms.queue.hornetq.management.c86d2cef-5a2c-44a7-abaa-2bd9a7e839a4
      

       

      This is basically the code used:

      ClientRequestor requestor = new ClientRequestor(getSession(), "jms.queue.hornetq.management");
      ClientMessage message = getSession().createMessage(false);
      ManagementHelper.putAttribute(message, ResourceNames.CORE_SERVER, "addressNames");
      ClientMessage reply = requestor.request(message);
      Object[] arrayObjects = (Object[])ManagementHelper.getResult(reply);
      

       

      When I try to use the requestor.close() method, I get a NPE on the serverside.

       

      Any Ideas? Thanks

      Daniel

        • 1. Re: Strange message after invoking management query
          Jeff Mesnil Master

          what's the stacktrace of the NPE on the server?

          • 2. Re: Strange message after invoking management query
            javahamburg Newbie

            Here is the full stacktrace on the server, only happens when calling close(), otherwise only the mentioned "Failed to remove temporary queue" log message is printed:

            [Old I/O server worker (parentId: 1230646724, [id: 0x495a2dc4, localhost/127.0.0.1:5445])] 11:29:10,099 WARNING [org.hornetq.core.protocol.core.ServerSessionPacketHandler]  Sending unexpected exception to the client

            java.lang.NullPointerException

                at org.hornetq.core.server.impl.ScheduledDeliveryHandlerImpl.cancel(ScheduledDeliveryHandlerImpl.java:119)

                at org.hornetq.core.server.impl.QueueImpl.deleteMatchingReferences(QueueImpl.java:948)

                at org.hornetq.core.server.impl.QueueImpl.deleteAllReferences(QueueImpl.java:921)

                at org.hornetq.core.server.impl.HornetQServerImpl.destroyQueue(HornetQServerImpl.java:1101)

                at org.hornetq.core.server.impl.ServerSessionImpl.deleteQueue(ServerSessionImpl.java:483)

                at org.hornetq.core.protocol.core.ServerSessionPacketHandler.handlePacket(ServerSessionPacketHandler.java:245)

                at org.hornetq.core.protocol.core.impl.ChannelImpl.handlePacket(ChannelImpl.java:474)

                at org.hornetq.core.protocol.core.impl.RemotingConnectionImpl.doBufferReceived(RemotingConnectionImpl.java:496)

                at org.hornetq.core.protocol.core.impl.RemotingConnectionImpl.bufferReceived(RemotingConnectionImpl.java:457)

                at org.hornetq.core.remoting.server.impl.RemotingServiceImpl$DelegatingBufferHandler.bufferReceived(RemotingServiceImpl.java:459)

                at org.hornetq.core.remoting.impl.netty.HornetQChannelHandler.messageReceived(HornetQChannelHandler.java:73)

                at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:100)

                at org.jboss.netty.channel.StaticChannelPipeline.sendUpstream(StaticChannelPipeline.java:362)

                at org.jboss.netty.channel.StaticChannelPipeline$StaticChannelHandlerContext.sendUpstream(StaticChannelPipeline.java:514)

                at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:287)

                at org.hornetq.core.remoting.impl.netty.HornetQFrameDecoder2.decode(HornetQFrameDecoder2.java:169)

                at org.hornetq.core.remoting.impl.netty.HornetQFrameDecoder2.messageReceived(HornetQFrameDecoder2.java:134)

                at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:80)

                at org.jboss.netty.channel.StaticChannelPipeline.sendUpstream(StaticChannelPipeline.java:362)

                at org.jboss.netty.channel.StaticChannelPipeline.sendUpstream(StaticChannelPipeline.java:357)

                at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:274)

                at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:261)

                at org.jboss.netty.channel.socket.oio.OioWorker.run(OioWorker.java:90)

                at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)

                at org.jboss.netty.util.internal.IoWorkerRunnable.run(IoWorkerRunnable.java:46)

                at org.jboss.netty.util.VirtualExecutorService$ChildExecutorRunnable.run(VirtualExecutorService.java:181)

                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:662)

            [Old I/O server worker (parentId: 1230646724, [id: 0x495a2dc4, localhost/127.0.0.1:5445])] 11:29:10,107 SEVERE [org.hornetq.core.server.impl.ServerSessionImpl]  Failed to remove temporary queue jms.queue.hornetq.management.3e7f73e5-500a-44d3-b4aa-573f25518a83

             

            On the client side:

            HornetQException[errorCode=0 message=null]

                at org.hornetq.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:286)

                at org.hornetq.core.client.impl.ClientSessionImpl.deleteQueue(ClientSessionImpl.java:350)

                at org.hornetq.core.client.impl.DelegatingSession.deleteQueue(DelegatingSession.java:322)

                at org.hornetq.api.core.client.ClientRequestor.close(ClientRequestor.java:106)

                at caller ...

            • 4. Re: Strange message after invoking management query
              Justin Bertram Master

              What version of HornetQ are you using?

              • 5. Re: Strange message after invoking management query
                javahamburg Newbie

                2.2.5.Final on Linux 64bit. JDK 1.6u33

                • 7. Re: Strange message after invoking management query
                  Clebert Suconic Master

                  you should move to a later release. 2.2.5 is fairly old now

                  1 of 1 people found this helpful
                  • 8. Re: Strange message after invoking management query
                    javahamburg Newbie

                    Thanks, I'll wait for 2.3.0, since I'm really interessted in the replication feature.

                    Updating the poms from 2.0.0 to 2.2.5 was a pain, and there seems not to be any official  documentation for this - so I just want to delay this pain.