java.util.concurrent.RejectedExecutionException: event executor terminated

Spring JIRA | Prashant Deva | 3 months ago
  1. 0

    This is the exception i get. Running on tomcat 8. Clients were connected to the server when I initiated the shutdown {code:java} 15:25:55,258 DEBUG clientInboundChannel-34 stomp.StompBrokerRelayMessageHandler:777 - Forwarding DISCONNECT session=fea710adeb5c429280e56fa78a739a84 15:25:55,258 DEBUG localhost-startStop-2 support.DefaultLifecycleProcessor:235 - Bean 'subProtocolWebSocketHandler' completed its stop procedure 15:25:55,259 DEBUG localhost-startStop-2 support.DefaultLifecycleProcessor:226 - Asking bean 'stompWebSocketHandlerMapping' of type [class org.springframework.web.socket.server.support.WebSocketHandlerMapping] to stop 15:25:55,259 TRACE reactor-tcp-io-6 stomp.StompEncoder:107 - Encoding STOMP DISCONNECT, headers=null 15:25:55,259 DEBUG localhost-startStop-2 support.DefaultLifecycleProcessor:235 - Bean 'stompWebSocketHandlerMapping' completed its stop procedure 15:25:55,259 DEBUG localhost-startStop-2 support.DefaultLifecycleProcessor:226 - Asking bean 'userDestinationMessageHandler' of type [class org.springframework.messaging.simp.user.UserDestinationMessageHandler] to stop 15:25:55,259 DEBUG localhost-startStop-2 support.ExecutorSubscribableChannel:61 - clientInboundChannel removed UserDestinationMessageHandler[DefaultUserDestinationResolver[prefix=/user/]] 15:25:55,260 DEBUG localhost-startStop-2 support.ExecutorSubscribableChannel:61 - brokerChannel removed UserDestinationMessageHandler[DefaultUserDestinationResolver[prefix=/user/]] 15:25:55,260 DEBUG localhost-startStop-2 support.DefaultLifecycleProcessor:235 - Bean 'userDestinationMessageHandler' completed its stop procedure 15:25:55,260 DEBUG localhost-startStop-2 support.DefaultLifecycleProcessor:226 - Asking bean 'stompBrokerRelayMessageHandler' of type [class org.springframework.messaging.simp.stomp.StompBrokerRelayMessageHandler] to stop 15:25:55,260 INFO localhost-startStop-2 stomp.StompBrokerRelayMessageHandler:177 - Stopping... 15:25:55,260 INFO localhost-startStop-2 stomp.StompBrokerRelayMessageHandler:270 - BrokerAvailabilityEvent[available=false, StompBrokerRelay[127.0.0.1:61613]] 15:25:55,261 DEBUG reactor-tcp-io-6 stomp.StompBrokerRelayMessageHandler:714 - TCP connection to broker closed in session fea710adeb5c429280e56fa78a739a84 15:25:55,261 TRACE localhost-startStop-2 support.AnnotationConfigWebApplicationContext:361 - Publishing event in WebApplicationContext for namespace 'dispatcher-servlet': BrokerAvailabilityEvent[available=false, StompBrokerRelay[127.0.0.1:61613]] 15:25:55,261 DEBUG reactor-tcp-io-6 stomp.StompBrokerRelayMessageHandler:832 - Cleaning up connection state for session fea710adeb5c429280e56fa78a739a84 15:25:55,296 ERROR globalEventExecutor-1-6 DefaultPromise.rejectedExecution:181 - Failed to submit a listener notification task. Event loop shut down? java.util.concurrent.RejectedExecutionException: event executor terminated at io.netty.util.concurrent.SingleThreadEventExecutor.reject(SingleThreadEventExecutor.java:836) at io.netty.util.concurrent.SingleThreadEventExecutor.offerTask(SingleThreadEventExecutor.java:342) at io.netty.util.concurrent.SingleThreadEventExecutor.addTask(SingleThreadEventExecutor.java:335) at io.netty.util.concurrent.SingleThreadEventExecutor.execute(SingleThreadEventExecutor.java:761) at io.netty.util.concurrent.DefaultPromise.safeExecute(DefaultPromise.java:767) at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:435) at io.netty.util.concurrent.DefaultPromise.trySuccess(DefaultPromise.java:111) at io.netty.channel.DefaultChannelPromise.trySuccess(DefaultChannelPromise.java:82) at io.netty.channel.AbstractChannel$CloseFuture.setClosed(AbstractChannel.java:1058) at io.netty.channel.AbstractChannel$AbstractUnsafe.doClose0(AbstractChannel.java:686) at io.netty.channel.AbstractChannel$AbstractUnsafe.access$700(AbstractChannel.java:419) at io.netty.channel.AbstractChannel$AbstractUnsafe$5.run(AbstractChannel.java:646) at io.netty.util.concurrent.GlobalEventExecutor$TaskRunner.run(GlobalEventExecutor.java:233) at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144) at java.lang.Thread.run(Thread.java:745) 15:25:55,297 WARN globalEventExecutor-1-6 channel.AbstractChannel:151 - Can't invoke task later as EventLoop rejected it java.util.concurrent.RejectedExecutionException: event executor terminated at io.netty.util.concurrent.SingleThreadEventExecutor.reject(SingleThreadEventExecutor.java:836) at io.netty.util.concurrent.SingleThreadEventExecutor.offerTask(SingleThreadEventExecutor.java:342) at io.netty.util.concurrent.SingleThreadEventExecutor.addTask(SingleThreadEventExecutor.java:335) at io.netty.util.concurrent.SingleThreadEventExecutor.execute(SingleThreadEventExecutor.java:761) at io.netty.channel.AbstractChannel$AbstractUnsafe.invokeLater(AbstractChannel.java:931) at io.netty.channel.AbstractChannel$AbstractUnsafe.access$900(AbstractChannel.java:419) at io.netty.channel.AbstractChannel$AbstractUnsafe$5.run(AbstractChannel.java:649) at io.netty.util.concurrent.GlobalEventExecutor$TaskRunner.run(GlobalEventExecutor.java:233) at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144) at java.lang.Thread.run(Thread.java:745) {code}

    Spring JIRA | 3 months ago | Prashant Deva
    java.util.concurrent.RejectedExecutionException: event executor terminated
  2. 0

    RejectedExecutionException without any shutdown calls

    GitHub | 2 years ago | jknair
    java.util.concurrent.RejectedExecutionException: event executor terminated
  3. 0

    Rejected Execution Exception under load

    GitHub | 6 months ago | JatinderSingh
    java.util.concurrent.RejectedExecutionException: event executor terminated
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    tomcat8 spring-boot war memory leak

    Stack Overflow | 1 month ago | Shahbour
    java.util.concurrent.RejectedExecutionException: event executor terminated
  6. 0

    Calling HttpClient.shutdown() causes problem to later created clients

    GitHub | 2 years ago | spodila
    java.util.concurrent.RejectedExecutionException: event executor terminated

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.util.concurrent.RejectedExecutionException

      event executor terminated

      at io.netty.util.concurrent.SingleThreadEventExecutor.reject()
    2. Netty
      DefaultThreadFactory$DefaultRunnableDecorator.run
      1. io.netty.util.concurrent.SingleThreadEventExecutor.reject(SingleThreadEventExecutor.java:836)
      2. io.netty.util.concurrent.SingleThreadEventExecutor.offerTask(SingleThreadEventExecutor.java:342)
      3. io.netty.util.concurrent.SingleThreadEventExecutor.addTask(SingleThreadEventExecutor.java:335)
      4. io.netty.util.concurrent.SingleThreadEventExecutor.execute(SingleThreadEventExecutor.java:761)
      5. io.netty.channel.AbstractChannel$AbstractUnsafe.invokeLater(AbstractChannel.java:931)
      6. io.netty.channel.AbstractChannel$AbstractUnsafe.access$900(AbstractChannel.java:419)
      7. io.netty.channel.AbstractChannel$AbstractUnsafe$5.run(AbstractChannel.java:649)
      8. io.netty.util.concurrent.GlobalEventExecutor$TaskRunner.run(GlobalEventExecutor.java:233)
      9. io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)
      9 frames
    3. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame