Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-7829

NPE on ServerSessionImpl when the send failed for any reason

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • EAP_EWP 5.1.2 CR4
    • EAP_EWP 5.1.2 CR3
    • HornetQ
    • None
    • Not Required

      There is npe thrown from ServerSessionImpl in org.hornetq.tests.integration.security.SecurityTest - testSendMessageUpdateSender.

      Log:
      [junit] * [Thread-0 (HornetQ-remoting-threads-HornetQServerImpl::serverUUID=05317d77-352f-11e1-a650-001d0901cc3f-21067408-13563633)] 2-Jan 5:46:26,478 SEVERE [ServerSessionPacketHandler] Caught unexpected exception
      [junit] java.lang.NullPointerException
      [junit] at org.hornetq.core.server.impl.ServerSessionImpl.send(ServerSessionImpl.java:1134)
      [junit] at org.hornetq.core.protocol.core.ServerSessionPacketHandler.handlePacket(ServerSessionPacketHandler.java:441)
      [junit] at org.hornetq.core.protocol.core.impl.ChannelImpl.handlePacket(ChannelImpl.java:504)
      [junit] at org.hornetq.core.protocol.core.impl.RemotingConnectionImpl.doBufferReceived(RemotingConnectionImpl.java:538)
      [junit] at org.hornetq.core.protocol.core.impl.RemotingConnectionImpl.bufferReceived(RemotingConnectionImpl.java:499)
      [junit] at org.hornetq.core.remoting.server.impl.RemotingServiceImpl$DelegatingBufferHandler.bufferReceived(RemotingServiceImpl.java:512)
      [junit] at org.hornetq.core.remoting.impl.invm.InVMConnection$1.run(InVMConnection.java:150)
      [junit] at org.hornetq.utils.OrderedExecutorFactory$OrderedExecutor$1.run(OrderedExecutorFactory.java:100)
      [junit] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      [junit] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      [junit] at java.lang.Thread.run(Thread.java:662)

      I didn't have time to look at it deeper. Just adding line from which npe is thrown:

      if (message.getAddress().equals(managementAddress))

            csuconic@redhat.com Clebert Suconic
            mnovak1@redhat.com Miroslav Novak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: