Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-2751

RejectedExecutionException: XNIO007007 on EAP shutdown

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 7.0.0.ER5
    • 7.0.0.ER4
    • Remoting
    • None

      EAP logs Error message on shutdown (both standalone and domain mode). This happens on all tested platforms, we hit it by acceptance startup jobs. We do not have clean start & stop of EAP.
      This is serious issue, it is regression against 6.4.0 and 7.0.0.ER3.

      reproduce
      # start EAP

      $ ./standalone.sh
      ...
      08:15:17,863 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: JBoss EAP 7.0.0.GA (WildFly Core 2.0.6.Final-redhat-1)
         started in 2065ms - Started 267 of 569 services (386 services are lazy, passive or on-demand)
      

      # shutdown via CLI

      $ ./jboss-cli.sh -c shutdown
      

      # check console where EAP was started

      08:17:05,679 INFO  [org.jboss.as.server] (management-handler-thread - 4) WFLYSRV0211: Suspending server with 0ms timeout.
      08:17:05,686 INFO  [org.jboss.as.server] (Thread-2) WFLYSRV0220: Server shutdown has been requested.
      08:17:05,693 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-6) WFLYJCA0010: Unbound data source [java:jboss/datasources/ExampleDS]
      08:17:05,709 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0019: Host default-host stopping
      08:17:05,713 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-7) WFLYJCA0019: Stopped Driver service with driver-name = h2
      08:17:05,716 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0008: Undertow HTTP listener default suspending
      08:17:05,715 ERROR [org.jboss.remoting.resource] (MSC service thread 1-1) Close action for Connection handler for Remoting connection
         6a54ce47 to /127.0.0.1:45278 failed to execute (resource may be left in an indeterminate state): java.util.concurrent.RejectedExecutionException:
         XNIO007007: Thread is terminating
      	at org.xnio.nio.WorkerThread.execute(WorkerThread.java:588)
      	at org.jboss.remoting3.remote.RemoteConnection$RemoteWriteListener.send(RemoteConnection.java:311)
      	at org.jboss.remoting3.remote.RemoteConnection.send(RemoteConnection.java:126)
      	at org.jboss.remoting3.remote.RemoteConnectionHandler.sendCloseRequestBody(RemoteConnectionHandler.java:289)
      	at org.jboss.remoting3.remote.RemoteConnectionHandler.sendCloseRequestBody(RemoteConnectionHandler.java:278)
      	at org.jboss.remoting3.remote.RemoteConnectionHandler.sendCloseRequest(RemoteConnectionHandler.java:235)
      	at org.jboss.remoting3.remote.RemoteConnectionHandler.closeAction(RemoteConnectionHandler.java:413)
      	at org.jboss.remoting3.spi.AbstractHandleableCloseable.closeAsync(AbstractHandleableCloseable.java:372)
      	at org.jboss.remoting3.ConnectionImpl.closeAction(ConnectionImpl.java:54)
      	at org.jboss.remoting3.spi.AbstractHandleableCloseable.closeAsync(AbstractHandleableCloseable.java:372)
      	at org.jboss.remoting3.EndpointImpl.closeAction(EndpointImpl.java:225)
      	at org.jboss.remoting3.spi.AbstractHandleableCloseable.closeAsync(AbstractHandleableCloseable.java:372)
      	at org.jboss.as.remoting.EndpointService.stop(EndpointService.java:98)
      	at org.jboss.msc.service.ServiceControllerImpl$StopTask.stopService(ServiceControllerImpl.java:2056)
      	at org.jboss.msc.service.ServiceControllerImpl$StopTask.run(ServiceControllerImpl.java:2017)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      
      08:17:05,722 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0007: Undertow HTTP listener default stopped, was bound to 127.0.0.1:8080
      08:17:05,723 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-7) WFLYUT0004: Undertow 1.3.12.Final-redhat-1 stopping
      08:17:05,725 ERROR [org.jboss.remoting.resource] (Remoting "dhcp-10-40-5-167:MANAGEMENT" task-8) Close action for Channel ID 7640d11e (inbound) of Remoting 
         connection 6a54ce47 to /127.0.0.1:45278 failed to execute (resource may be left in an indeterminate state): java.util.concurrent.RejectedExecutionException: 
         XNIO007007: Thread is terminating
      	at org.xnio.nio.WorkerThread.execute(WorkerThread.java:588)
      	at org.jboss.remoting3.remote.RemoteConnection$RemoteWriteListener.send(RemoteConnection.java:311)
      	at org.jboss.remoting3.remote.RemoteConnection.send(RemoteConnection.java:122)
      	at org.jboss.remoting3.remote.RemoteConnectionChannel.closeReadsAndWrites(RemoteConnectionChannel.java:261)
      	at org.jboss.remoting3.remote.RemoteConnectionChannel.closeAction(RemoteConnectionChannel.java:534)
      	at org.jboss.remoting3.spi.AbstractHandleableCloseable.closeAsync(AbstractHandleableCloseable.java:372)
      	at org.jboss.remoting3.remote.RemoteConnectionHandler.closeAllChannels(RemoteConnectionHandler.java:437)
      	at org.jboss.remoting3.remote.RemoteConnectionHandler.handleConnectionClose(RemoteConnectionHandler.java:114)
      	at org.jboss.remoting3.remote.RemoteReadListener$1$1.run(RemoteReadListener.java:57)
      	at org.jboss.remoting3.EndpointImpl$TrackingExecutor$1.run(EndpointImpl.java:717)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      
      

            tomazcerar Tomaž Cerar (Inactive)
            pkremens@redhat.com Petr Kremensky (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: