5 Replies Latest reply on Dec 2, 2014 2:44 PM by Brad Maxwell

    Shutting down WildFly with configured remote ejb connection seems to cause java.util.concurrent.RejectedExecutionException being thrown at server shutdown

    Ondra Chaloupka Expert

      Hi,

       

      I have a test application where remote connection to second WildFly is configured. The app works fine just at the time of container is going to be shutdown there is logged error exception

       

      ERROR [org.jboss.remoting.handler-errors] (default I/O-7) Close handler threw an exception: java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.FutureTask@83fbfbf rejected from java.util.concurrent.ThreadPoolExecutor@114598d4[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 6]
          at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2048)
          at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:821)
          at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1372)
          at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:110)
          at org.jboss.ejb.client.EJBClientContext.unregisterEJBReceiver(EJBClientContext.java:440)
          at org.jboss.ejb.client.EJBReceiverContext.close(EJBReceiverContext.java:57)
          at org.jboss.ejb.client.remoting.RemotingConnectionEJBReceiver$1$1.handleClose(RemotingConnectionEJBReceiver.java:185)
          at org.jboss.ejb.client.remoting.RemotingConnectionEJBReceiver$1$1.handleClose(RemotingConnectionEJBReceiver.java:182)
          at org.jboss.remoting3.spi.SpiUtils.safeHandleClose(SpiUtils.java:54)
          at org.jboss.remoting3.spi.AbstractHandleableCloseable$CloseHandlerTask.run(AbstractHandleableCloseable.java:501)
          at org.jboss.remoting3.spi.AbstractHandleableCloseable.runCloseTask(AbstractHandleableCloseable.java:406)
          at org.jboss.remoting3.spi.AbstractHandleableCloseable.closeComplete(AbstractHandleableCloseable.java:277)
          at org.jboss.remoting3.remote.RemoteConnectionChannel.closeAction(RemoteConnectionChannel.java:531)
          at org.jboss.remoting3.spi.AbstractHandleableCloseable.closeAsync(AbstractHandleableCloseable.java:359)
          at org.jboss.remoting3.remote.RemoteConnectionHandler.closeAllChannels(RemoteConnectionHandler.java:423)
          at org.jboss.remoting3.remote.RemoteConnectionHandler.receiveCloseRequest(RemoteConnectionHandler.java:213)
          at org.jboss.remoting3.remote.RemoteReadListener.handleEvent(RemoteReadListener.java:110)
          at org.jboss.remoting3.remote.RemoteReadListener.handleEvent(RemoteReadListener.java:45)
          at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
          at org.xnio.channels.TranslatingSuspendableChannel.handleReadable(TranslatingSuspendableChannel.java:199)
          at org.xnio.channels.TranslatingSuspendableChannel$1.handleEvent(TranslatingSuspendableChannel.java:113)
          at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
          at org.xnio.ChannelListeners$DelegatingChannelListener.handleEvent(ChannelListeners.java:1092)
          at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
          at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
          at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:88)
          at org.xnio.nio.WorkerThread.run(WorkerThread.java:539)
      

       

      Do you consider it as a bug - as I expect that shutdown should be clean from error messages in log - or there could be some problem in configuration of my remote connection?

       

      <subsystem xmlns="urn:jboss:domain:remoting:3.0">
        <endpoint worker="default"/>
        <http-connector name="http-remoting-connector" connector-ref="default" security-realm="ApplicationRealm"/>
        <outbound-connections>
          <remote-outbound-connection name="remote-ejb-connection" outbound-socket-binding-ref="binding-remote-ejb-connection" username="user1" security-realm="PasswordRealm" protocol="http-remoting">
            <properties>
              <property name="SASL_POLICY_NOANONYMOUS" value="false"/>
              <property name="SSL_ENABLED" value="false"/>
            </properties>
          </remote-outbound-connection>
        </outbound-connections>
      </subsystem>
      

       

      Thanks

      Ondra