-
Bug
-
Resolution: Done
-
Major
-
7.1.0.ER3
When I configure EAP to use reverse-proxy against itself with wrong client-side certificate, I can see some NPE in server.log:
18:27:41,500 ERROR [io.undertow.proxy] (default I/O-2) UT005028: Proxy request to /proxy failed: java.nio.channels.ClosedChannelException at io.undertow.client.http.HttpClientConnection$5.handleEvent(HttpClientConnection.java:194) at io.undertow.client.http.HttpClientConnection$5.handleEvent(HttpClientConnection.java:173) at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) at org.xnio.StreamConnection.invokeCloseListener(StreamConnection.java:80) at org.xnio.Connection.writeClosed(Connection.java:117) at io.undertow.protocols.ssl.UndertowSslConnection.writeClosed(UndertowSslConnection.java:145) at io.undertow.protocols.ssl.SslConduit.notifyWriteClosed(SslConduit.java:588) at io.undertow.protocols.ssl.SslConduit.notifyReadClosed(SslConduit.java:625) at io.undertow.protocols.ssl.SslConduit.doUnwrap(SslConduit.java:713) at io.undertow.protocols.ssl.SslConduit.doHandshake(SslConduit.java:648) at io.undertow.protocols.ssl.SslConduit.access$900(SslConduit.java:63) at io.undertow.protocols.ssl.SslConduit$SslReadReadyHandler.readReady(SslConduit.java:1100) at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:89) at org.xnio.nio.WorkerThread.run(WorkerThread.java:571) 18:27:41,501 ERROR [org.xnio.listener] (default I/O-2) XNIO001007: A channel event listener threw an exception: java.lang.NullPointerException at io.undertow.client.http.HttpRequestConduit.processWrite(HttpRequestConduit.java:102) at io.undertow.client.http.HttpRequestConduit.flush(HttpRequestConduit.java:660) at io.undertow.conduits.AbstractFixedLengthStreamSinkConduit.flush(AbstractFixedLengthStreamSinkConduit.java:229) at org.xnio.conduits.ConduitStreamSinkChannel.flush(ConduitStreamSinkChannel.java:162) at org.xnio.ChannelListeners$14.handleEvent(ChannelListeners.java:413) at org.xnio.ChannelListeners$14.handleEvent(ChannelListeners.java:409) at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) at org.xnio.conduits.WriteReadyHandler$ChannelListenerHandler.writeReady(WriteReadyHandler.java:65) at io.undertow.protocols.ssl.SslConduit$SslWriteReadyHandler.writeReady(SslConduit.java:1227) at io.undertow.protocols.ssl.SslConduit$3.run(SslConduit.java:275) at org.xnio.nio.WorkerThread.safeRun(WorkerThread.java:592) at org.xnio.nio.WorkerThread.run(WorkerThread.java:472) 18:27:41,501 ERROR [org.xnio.listener] (default I/O-2) XNIO001007: A channel event listener threw an exception: java.lang.NullPointerException at io.undertow.client.http.HttpRequestConduit.processWrite(HttpRequestConduit.java:102) at io.undertow.client.http.HttpRequestConduit.flush(HttpRequestConduit.java:660) at io.undertow.conduits.AbstractFixedLengthStreamSinkConduit.flush(AbstractFixedLengthStreamSinkConduit.java:229) at org.xnio.conduits.ConduitStreamSinkChannel.flush(ConduitStreamSinkChannel.java:162) at org.xnio.ChannelListeners$14.handleEvent(ChannelListeners.java:413) at org.xnio.ChannelListeners$14.handleEvent(ChannelListeners.java:409) at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) at org.xnio.conduits.WriteReadyHandler$ChannelListenerHandler.writeReady(WriteReadyHandler.java:65) at io.undertow.protocols.ssl.SslConduit$SslWriteReadyHandler.writeReady(SslConduit.java:1227) at io.undertow.protocols.ssl.SslConduit$3.run(SslConduit.java:275) at org.xnio.nio.WorkerThread.safeRun(WorkerThread.java:592) at org.xnio.nio.WorkerThread.run(WorkerThread.java:472)
See 'Steps to Reproduce' to reproduce the issue.
We should generally avoid NPEs.
- is cloned by
-
UNDERTOW-1154 NPE when accessing via HttpClientConnection with wrong bad certificate
- Resolved
- is incorporated by
-
WFCORE-3394 Upgrade Undertow from 1.4.18 to 1.4.21.Final
- Resolved