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

NullPointerException on RHEL with OpenJDK if reconnection retries are happening while the server is being shut down

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • TBD EAP 5
    • EAP_EWP 5.1.2 CR2, EAP_EWP 5.1.2 CR3, EAP_EWP 5.1.2 CR4
    • HornetQ
    • None
    • Hide
      An issue has been identified where an NullPointerException can occor on Red Hat Enterprise Linux with OpenJDK if reconnection retries are occurring while the server is being shut down. Messages similar to the following are reported in the log. The workaround to this issue is to first confirm that there is no activity when shutting down the server.
                <screen>
      [Thread-8 (HornetQ-server-HornetQServerImpl::server 2-10536304)] 16-Dec 7:46:11,567 WARNING [ServerLocatorImpl] NULL
      java.lang.NullPointerException
      at org.hornetq.core.server.cluster.impl.ClusterConnectionImpl.onConnection(ClusterConnectionImpl.java:565)
      at org.hornetq.core.client.impl.ClientSessionFactoryImpl.getConnection(ClientSessionFactoryImpl.java:1313)
      at org.hornetq.core.client.impl.ClientSessionFactoryImpl.getConnectionWithRetry(ClientSessionFactoryImpl.java:990)
      at org.hornetq.core.client.impl.ClientSessionFactoryImpl.connect(ClientSessionFactoryImpl.java:223)
      at org.hornetq.core.client.impl.ServerLocatorImpl$StaticConnector$Connector.tryConnect(ServerLocatorImpl.java:1778)
      at org.hornetq.core.client.impl.ServerLocatorImpl$StaticConnector.connect(ServerLocatorImpl.java:1615)
      at org.hornetq.core.client.impl.ServerLocatorImpl.connect(ServerLocatorImpl.java:592)
      at org.hornetq.core.client.impl.ServerLocatorImpl$3.run(ServerLocatorImpl.java:559)
                </screen>
      Show
      An issue has been identified where an NullPointerException can occor on Red Hat Enterprise Linux with OpenJDK if reconnection retries are occurring while the server is being shut down. Messages similar to the following are reported in the log. The workaround to this issue is to first confirm that there is no activity when shutting down the server.           <screen> [Thread-8 (HornetQ-server-HornetQServerImpl::server 2-10536304)] 16-Dec 7:46:11,567 WARNING [ServerLocatorImpl] NULL java.lang.NullPointerException at org.hornetq.core.server.cluster.impl.ClusterConnectionImpl.onConnection(ClusterConnectionImpl.java:565) at org.hornetq.core.client.impl.ClientSessionFactoryImpl.getConnection(ClientSessionFactoryImpl.java:1313) at org.hornetq.core.client.impl.ClientSessionFactoryImpl.getConnectionWithRetry(ClientSessionFactoryImpl.java:990) at org.hornetq.core.client.impl.ClientSessionFactoryImpl.connect(ClientSessionFactoryImpl.java:223) at org.hornetq.core.client.impl.ServerLocatorImpl$StaticConnector$Connector.tryConnect(ServerLocatorImpl.java:1778) at org.hornetq.core.client.impl.ServerLocatorImpl$StaticConnector.connect(ServerLocatorImpl.java:1615) at org.hornetq.core.client.impl.ServerLocatorImpl.connect(ServerLocatorImpl.java:592) at org.hornetq.core.client.impl.ServerLocatorImpl$3.run(ServerLocatorImpl.java:559)           </screen>
    • Documented as Known Issue

      There is npe in log of org.hornetq.tests.integration.cluster.distribution.NettySymmetricClusterTest in HQ test suite on RHEL with opejJDK:

      Exception:
      [Thread-8 (HornetQ-server-HornetQServerImpl::server 2-10536304)] 16-Dec 7:46:11,567 WARNING [ServerLocatorImpl] NULL
      java.lang.NullPointerException
      at org.hornetq.core.server.cluster.impl.ClusterConnectionImpl.onConnection(ClusterConnectionImpl.java:565)
      at org.hornetq.core.client.impl.ClientSessionFactoryImpl.getConnection(ClientSessionFactoryImpl.java:1313)
      at org.hornetq.core.client.impl.ClientSessionFactoryImpl.getConnectionWithRetry(ClientSessionFactoryImpl.java:990)
      at org.hornetq.core.client.impl.ClientSessionFactoryImpl.connect(ClientSessionFactoryImpl.java:223)
      at org.hornetq.core.client.impl.ServerLocatorImpl$StaticConnector$Connector.tryConnect(ServerLocatorImpl.java:1778)
      at org.hornetq.core.client.impl.ServerLocatorImpl$StaticConnector.connect(ServerLocatorImpl.java:1615)
      at org.hornetq.core.client.impl.ServerLocatorImpl.connect(ServerLocatorImpl.java:592)
      at org.hornetq.core.client.impl.ServerLocatorImpl$3.run(ServerLocatorImpl.java:559)

      Attached logs from HQ server and console logs. (logs are the same as in JBPAPP-7775)

      I didn't have opportunity to investigate it deeper. Could you look at it, please?

      Thank you,

      Mirek

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

              Created:
              Updated:
              Resolved: