Description
start application server in debug mode
- ./standalone.sh --debug
- attach debugger into eap
- debug some eap code e.g. io.undertow.util.DateUtils#getCurrentDateTime
- When "Ctrl + C" or "kill <pid>" application server is not stopped and exception is thrown e.g.
20:17:05,038 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-6) WFLYJCA0010: Unbound data source [java:jboss/datasources/ExampleDS] 20:17:05,051 INFO [org.wildfly.extension.undertow] (MSC service thread 1-7) WFLYUT0019: Host default-host stopping 20:17:05,055 INFO [org.wildfly.extension.undertow] (MSC service thread 1-3) WFLYUT0008: Undertow HTTPS listener https suspending 20:17:05,061 INFO [org.wildfly.extension.undertow] (MSC service thread 1-3) WFLYUT0007: Undertow HTTPS listener https stopped, was bound to 127.0.0.1:8443 20:17:05,061 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-8) WFLYJCA0019: Stopped Driver service with driver-name = h2 20:17:05,064 INFO [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0008: Undertow HTTP listener default suspending 20:17:05,065 INFO [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0007: Undertow HTTP listener default stopped, was bound to 127.0.0.1:8080 20:17:05,066 INFO [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0004: Undertow 1.4.3.Final-redhat-1 stopping 20:17:05,080 ERROR [org.xnio.listener] (default I/O-15) XNIO001007: A channel event listener threw an exception: java.util.concurrent.RejectedExecutionException: XNIO007007: Thread is terminating at org.xnio.nio.WorkerThread.executeAfter(WorkerThread.java:623) at io.undertow.server.protocol.ParseTimeoutUpdater.handleSchedule(ParseTimeoutUpdater.java:85) at io.undertow.server.protocol.ParseTimeoutUpdater.connectionIdle(ParseTimeoutUpdater.java:64) at io.undertow.server.protocol.http.HttpReadListener.newRequest(HttpReadListener.java:116) at io.undertow.server.protocol.http.HttpReadListener.exchangeComplete(HttpReadListener.java:299) at io.undertow.server.protocol.http.HttpServerConnection.exchangeComplete(HttpServerConnection.java:232) at io.undertow.server.HttpServerExchange$ExchangeCompleteNextListener.proceed(HttpServerExchange.java:1825) at org.wildfly.extension.undertow.deployment.GlobalRequestControllerHandler$1.exchangeEvent(GlobalRequestControllerHandler.java:25) at io.undertow.server.HttpServerExchange.invokeExchangeCompleteListeners(HttpServerExchange.java:1245) at io.undertow.server.HttpServerExchange.closeAndFlushResponse(HttpServerExchange.java:1662) at io.undertow.server.HttpServerExchange.endExchange(HttpServerExchange.java:1652) at io.undertow.server.AbstractServerConnection$CloseSetter.handleEvent(AbstractServerConnection.java:316) at io.undertow.server.AbstractServerConnection$CloseSetter.handleEvent(AbstractServerConnection.java:296) 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 org.xnio.nio.AbstractNioStreamConnection.writeClosed(AbstractNioStreamConnection.java:47) at org.xnio.nio.NioSocketConduit.terminateWrites(NioSocketConduit.java:182) at org.xnio.nio.NioSocketConduit.truncateWrites(NioSocketConduit.java:198) at org.xnio.conduits.ConduitStreamSinkChannel.close(ConduitStreamSinkChannel.java:186) at org.xnio.IoUtils.safeClose(IoUtils.java:152) at org.xnio.conduits.WriteReadyHandler$ChannelListenerHandler.forceTermination(WriteReadyHandler.java:57) at org.xnio.nio.NioSocketConduit.forceTermination(NioSocketConduit.java:108) at org.xnio.nio.WorkerThread.run(WorkerThread.java:496)
- Server can be stopped by:
- stopping debugging
- kill -9 <pid>
Debugging halt jvm, so this behavior is expected. Just supress the exception, not to make uneccessary noise.
Another example of exception, achieved by breakpoint in SPNEGOAuthenticationMechanism
15:01:18,716 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-1) WFLYJCA0019: Stopped Driver service with driver-name = h2 15:01:18,716 INFO [org.wildfly.extension.undertow] (MSC service thread 1-7) WFLYUT0008: Undertow HTTPS listener https suspending 15:01:18,719 INFO [org.wildfly.extension.undertow] (MSC service thread 1-7) WFLYUT0007: Undertow HTTPS listener https stopped, was bound to 127.0.0.1:8443 15:01:18,716 INFO [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0008: Undertow HTTP listener default suspending 15:01:18,721 INFO [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0007: Undertow HTTP listener default stopped, was bound to 127.0.0.1:8080 15:01:18,722 INFO [org.wildfly.extension.undertow] (MSC service thread 1-3) WFLYUT0004: Undertow 1.4.0.Final stopping 15:01:18,732 ERROR [org.xnio.listener] (default I/O-14) XNIO001007: A channel event listener threw an exception: java.util.concurrent.RejectedExecutionException: XNIO007007: Thread is terminating at org.xnio.nio.WorkerThread.executeAfter(WorkerThread.java:623) at io.undertow.util.DateUtils.getCurrentDateTime(DateUtils.java:251) at io.undertow.util.DateUtils.addDateHeaderIfRequired(DateUtils.java:235) at io.undertow.server.protocol.http.HttpTransferEncoding.createSinkConduit(HttpTransferEncoding.java:203) at io.undertow.server.protocol.http.HttpServerConnection.getSinkConduit(HttpServerConnection.java:209) at io.undertow.server.HttpServerExchange.getResponseChannel(HttpServerExchange.java:1281) at io.undertow.servlet.spec.ServletOutputStreamImpl.close(ServletOutputStreamImpl.java:599) at io.undertow.servlet.spec.HttpServletResponseImpl.closeStreamAndWriter(HttpServletResponseImpl.java:478) at io.undertow.servlet.core.ServletBlockingHttpExchange.close(ServletBlockingHttpExchange.java:92) at io.undertow.server.HttpServerExchange.endExchange(HttpServerExchange.java:1581) at io.undertow.server.AbstractServerConnection$CloseSetter.handleEvent(AbstractServerConnection.java:316) at io.undertow.server.AbstractServerConnection$CloseSetter.handleEvent(AbstractServerConnection.java:296) 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 org.xnio.nio.AbstractNioStreamConnection.writeClosed(AbstractNioStreamConnection.java:47) at org.xnio.nio.NioSocketConduit.terminateWrites(NioSocketConduit.java:182) at org.xnio.nio.NioSocketConduit.truncateWrites(NioSocketConduit.java:198) at org.xnio.conduits.ConduitStreamSinkChannel.close(ConduitStreamSinkChannel.java:186) at org.xnio.IoUtils.safeClose(IoUtils.java:152) at org.xnio.conduits.WriteReadyHandler$ChannelListenerHandler.forceTermination(WriteReadyHandler.java:57) at org.xnio.nio.NioSocketConduit.forceTermination(NioSocketConduit.java:108) at org.xnio.nio.WorkerThread.run(WorkerThread.java:496)
Attachments
Issue Links
- relates to
-
UNDERTOW-869 Possible RejectedExecutionError logged on shutdown
- Resolved