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

IllegalStateException on server shutdown

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • None
    • 7.0.0.CR1
    • Remoting
    • None

    Description

      We've caught a RejectedExecutionException on server shutdown (no deployments, no special configuration, standalone profile, windows). It might be difficult to reproduce , as we've only seen it once in ~40 other windows server starts.
      Here's the stactrace:

      08:04:09,655 ERROR [org.jboss.remoting.resource] (MSC service thread 1-7) Close action for Connection handler for Remoting connection 054bb4d4 to /127.0.0.1:64319 failed to execute (resource may be left in an indeterminate state): java.lang.IllegalStateException
      	at org.xnio.Buffers$3.getResource(Buffers.java:1935)
      	at org.xnio.Buffers$3.getResource(Buffers.java:1921)
      	at org.xnio.channels.FramedMessageChannel.doFlushBuffer(FramedMessageChannel.java:326)
      	at org.xnio.channels.FramedMessageChannel.flushAction(FramedMessageChannel.java:310)
      	at org.xnio.channels.TranslatingSuspendableChannel.flush(TranslatingSuspendableChannel.java:641)
      	at org.jboss.remoting3.remote.RemoteConnection$RemoteWriteListener.shutdownWrites(RemoteConnection.java:294)
      	at org.jboss.remoting3.remote.RemoteConnection.shutdownWrites(RemoteConnection.java:130)
      	at org.jboss.remoting3.remote.RemoteConnectionHandler.closeAction(RemoteConnectionHandler.java:414)
      	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)
      

      Here's the logs:

      Calling "W:\workspace\eap-7x-manu-startup-multiple-WIN\3e707a3a\workspace\manu.testsuite.eap.eap6.startup.MultipleStartupEap6\jboss-eap-7.0\bin\standalone.conf.bat"
      Setting JAVA property to "t:\opt\windows\amd64\jdk1.8.0_last\bin\java"
      ===============================================================================
      
        JBoss Bootstrap Environment
      
        JBOSS_HOME: "W:\workspace\eap-7x-manu-startup-multiple-WIN\3e707a3a\workspace\manu.testsuite.eap.eap6.startup.MultipleStartupEap6\jboss-eap-7.0"
      
        JAVA: "t:\opt\windows\amd64\jdk1.8.0_last\bin\java"
      
        JAVA_OPTS: "-verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=3M -XX:-TraceClassUnloading -Dprogram.name=standalone.bat -Xms1G -Xmx1G -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8"
      
      ===============================================================================
      
      08:04:01,561 INFO  [org.jboss.modules] (main) JBoss Modules version 1.5.1.Final-redhat-1
      08:04:01,926 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final-redhat-1
      08:04:02,032 INFO  [org.jboss.as] (MSC service thread 1-6) WFLYSRV0049: JBoss EAP 7.0.0.GA (WildFly Core 2.1.1.Final-redhat-1) starting
      08:04:03,413 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0039: Creating http management service using socket-binding (management-http)
      08:04:03,436 INFO  [org.xnio] (MSC service thread 1-6) XNIO version 3.3.6.Final-redhat-1
      08:04:03,444 INFO  [org.xnio.nio] (MSC service thread 1-6) XNIO NIO Implementation Version 3.3.6.Final-redhat-1
      08:04:03,475 INFO  [org.wildfly.extension.io] (ServerService Thread Pool -- 37) WFLYIO001: Worker 'default' has auto-configured to 8 core threads with 64 task threads based on your 4 available processors
      08:04:03,483 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 38) WFLYCLINF0001: Activating Infinispan subsystem.
      08:04:03,489 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 33) WFLYJCA0004: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
      08:04:03,531 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 55) WFLYUT0003: Undertow 1.3.21.Final-redhat-1 starting
      08:04:03,534 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0003: Undertow 1.3.21.Final-redhat-1 starting
      08:04:03,536 INFO  [org.jboss.as.connector] (MSC service thread 1-7) WFLYJCA0009: Starting JCA Subsystem (WildFly/IronJacamar 1.3.3.Final-redhat-1)
      08:04:03,539 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-2) WFLYJCA0018: Started Driver service with driver-name = h2
      08:04:03,542 INFO  [org.jboss.as.jsf] (ServerService Thread Pool -- 44) WFLYJSF0007: Activated the following JSF Implementations: [main]
      08:04:03,546 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 56) WFLYWS0002: Activating WebServices Extension
      08:04:03,601 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 46) WFLYNAM0001: Activating Naming Subsystem
      08:04:03,604 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 53) WFLYSEC0002: Activating Security Subsystem
      08:04:03,611 INFO  [org.jboss.as.security] (MSC service thread 1-7) WFLYSEC0001: Current PicketBox version=4.9.5.Final-redhat-1
      08:04:03,627 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 55) WFLYUT0014: Creating file handler for path 'W:\workspace\eap-7x-manu-startup-multiple-WIN\3e707a3a\workspace\manu.testsuite.eap.eap6.startup.MultipleStartupEap6\jboss-eap-7.0/welcome-content' with options [directory-listing: 'false', follow-symlink: 'false', case-sensitive: 'true', safe-symlink-paths: '[]']
      08:04:03,635 INFO  [org.jboss.as.naming] (MSC service thread 1-2) WFLYNAM0003: Starting Naming Service
      08:04:03,636 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-2) WFLYMAIL0001: Bound mail session [java:jboss/mail/Default]
      08:04:03,867 INFO  [org.jboss.remoting] (MSC service thread 1-6) JBoss Remoting version 4.0.18.Final-redhat-1
      08:04:03,868 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-7) WFLYUT0012: Started server default-server.
      08:04:03,874 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0018: Host default-host starting
      08:04:03,923 INFO  [org.jboss.as.ejb3] (MSC service thread 1-6) WFLYEJB0482: Strict pool mdb-strict-max-pool is using a max instance size of 16 (per class), which is derived from the number of CPUs on this host.
      08:04:03,923 INFO  [org.jboss.as.ejb3] (MSC service thread 1-1) WFLYEJB0481: Strict pool slsb-strict-max-pool is using a max instance size of 64 (per class), which is derived from thread worker pool sizing.
      08:04:03,949 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-7) WFLYUT0006: Undertow HTTP listener default listening on 127.0.0.1:8080
      08:04:04,151 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-5) WFLYJCA0001: Bound data source [java:jboss/datasources/ExampleDS]
      08:04:04,154 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-3) WFLYDS0013: Started FileSystemDeploymentService for directory W:\workspace\eap-7x-manu-startup-multiple-WIN\3e707a3a\workspace\manu.testsuite.eap.eap6.startup.MultipleStartupEap6\jboss-eap-7.0\standalone\deployments
      08:04:04,295 INFO  [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-2) ISPN000128: Infinispan version: Infinispan 'Mahou' 8.1.2.Final-redhat-1
      08:04:04,469 INFO  [org.jboss.ws.common.management] (MSC service thread 1-6) JBWS022052: Starting JBossWS 5.1.3.SP1-redhat-1 (Apache CXF 3.1.4.redhat-1) 
      08:04:04,573 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management
      08:04:04,573 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990
      08:04:04,573 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: JBoss EAP 7.0.0.GA (WildFly Core 2.1.1.Final-redhat-1) started in 3612ms - Started 267 of 553 services (371 services are lazy, passive or on-demand)
      08:04:09,591 INFO  [org.jboss.as.server] (management-handler-thread - 4) WFLYSRV0236: Suspending server with no timeout.
      08:04:09,595 INFO  [org.jboss.as.server] (Thread-2) WFLYSRV0220: Server shutdown has been requested.
      08:04:09,623 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) WFLYJCA0010: Unbound data source [java:jboss/datasources/ExampleDS]
      08:04:09,630 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0019: Host default-host stopping
      08:04:09,636 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0008: Undertow HTTP listener default suspending
      08:04:09,636 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0007: Undertow HTTP listener default stopped, was bound to 127.0.0.1:8080
      08:04:09,637 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0004: Undertow 1.3.21.Final-redhat-1 stopping
      08:04:09,640 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-7) WFLYJCA0019: Stopped Driver service with driver-name = h2
      08:04:09,655 ERROR [org.jboss.remoting.resource] (MSC service thread 1-7) Close action for Connection handler for Remoting connection 054bb4d4 to /127.0.0.1:64319 failed to execute (resource may be left in an indeterminate state): java.lang.IllegalStateException
      	at org.xnio.Buffers$3.getResource(Buffers.java:1935)
      	at org.xnio.Buffers$3.getResource(Buffers.java:1921)
      	at org.xnio.channels.FramedMessageChannel.doFlushBuffer(FramedMessageChannel.java:326)
      	at org.xnio.channels.FramedMessageChannel.flushAction(FramedMessageChannel.java:310)
      	at org.xnio.channels.TranslatingSuspendableChannel.flush(TranslatingSuspendableChannel.java:641)
      	at org.jboss.remoting3.remote.RemoteConnection$RemoteWriteListener.shutdownWrites(RemoteConnection.java:294)
      	at org.jboss.remoting3.remote.RemoteConnection.shutdownWrites(RemoteConnection.java:130)
      	at org.jboss.remoting3.remote.RemoteConnectionHandler.closeAction(RemoteConnectionHandler.java:414)
      	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:04:09,670 INFO  [org.jboss.as] (MSC service thread 1-1) WFLYSRV0050: JBoss EAP 7.0.0.GA (WildFly Core 2.1.1.Final-redhat-1) stopped in 66ms
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mkopecky@redhat.com Marek Kopecky
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: