java.util.concurrent.RejectedExecutionException: event executor terminated

Spring JIRA | Prashant Deva | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  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 | 7 months ago | Prashant Deva
    java.util.concurrent.RejectedExecutionException: event executor terminated
  2. 0

    RejectedExecutionException without any shutdown calls

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

    tomcat8 spring-boot war memory leak

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

    Automated exception search integrated into your IDE

  5. 0

    Rejected Execution Exception under load

    GitHub | 11 months ago | JatinderSingh
    java.util.concurrent.RejectedExecutionException: event executor terminated
  6. 0

    Failed to submit an exceptionCaught() event

    GitHub | 3 months ago | jknack
    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.util.concurrent.DefaultPromise.safeExecute(DefaultPromise.java:767)
      6. io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:435)
      7. io.netty.util.concurrent.DefaultPromise.trySuccess(DefaultPromise.java:111)
      8. io.netty.channel.DefaultChannelPromise.trySuccess(DefaultChannelPromise.java:82)
      9. io.netty.channel.AbstractChannel$CloseFuture.setClosed(AbstractChannel.java:1058)
      10. io.netty.channel.AbstractChannel$AbstractUnsafe.doClose0(AbstractChannel.java:686)
      11. io.netty.channel.AbstractChannel$AbstractUnsafe.access$700(AbstractChannel.java:419)
      12. io.netty.channel.AbstractChannel$AbstractUnsafe$5.run(AbstractChannel.java:646)
      13. io.netty.util.concurrent.GlobalEventExecutor$TaskRunner.run(GlobalEventExecutor.java:233)
      14. io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)
      14 frames
    3. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame