9 Replies Latest reply on Sep 11, 2014 9:22 AM by Tomaz Cerar

    NullPointerException from io.undertow.servlet.spec.HttpServletRequestImpl

    Gytis Trikleris Apprentice

      Hello,

       

      for the last month we have been seeing an intermittent failure on Narayana CI job caused by the NullPointerException from io.undertow.servlet.spec.HttpServletRequestImpl. It happens on the multi-thread WS-AT test, which makes 10 concurrent webservice invocations. Error comes from the following execution chain:

      {code}

      io.undertow.servlet.spec.HttpServletRequestImpl#getRemotePort()

        io.undertow.server.HttpServerExchange#getSourceAddress()

        org.xnio.Connection#getPeerAddress(InetSocketAddress.class)

        org.xnio.nio.NioSocketStreamConnection#getPeerAddress()

        conduit.getSocketChannel().socket().getRemoteSocketAddress()

      {code}

      Last line returns null, and causes io.undertow.servlet.spec.HttpServletRequestimpl#getRemotePort() to throw NPE when it executes exchange.getSourceAddress().getPort().

       

      It looks like a bug not related with Narayana. However, I wanted to confirm here before raising it with WildFly. Currently this is files as a Narayana issue: [JBTM-2193] NullPointerException in ThreadedTransactionTest - JBoss Issue Tracker