Skip to content

exception during websocket server shutdown [SPR-14716] #19281

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
spring-projects-issues opened this issue Sep 14, 2016 · 1 comment
Closed

exception during websocket server shutdown [SPR-14716] #19281

spring-projects-issues opened this issue Sep 14, 2016 · 1 comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) status: bulk-closed An outdated, unresolved issue that's closed in bulk as part of a cleaning process

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Sep 14, 2016

Prashant Deva opened SPR-14716 and commented

This is the exception i get.
Running on tomcat 8. Clients were connected to the server when I initiated the shutdown

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)

Affects: 4.2.6

Issue Links:

@spring-projects-issues spring-projects-issues added type: bug A general bug status: waiting-for-triage An issue we've not yet triaged or decided on in: web Issues in web modules (web, webmvc, webflux, websocket) and removed type: bug A general bug labels Jan 11, 2019
@rstoyanchev rstoyanchev added status: bulk-closed An outdated, unresolved issue that's closed in bulk as part of a cleaning process and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Jan 11, 2019
@spring-projects-issues
Copy link
Collaborator Author

Bulk closing outdated, unresolved issues. Please, reopen if still relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) status: bulk-closed An outdated, unresolved issue that's closed in bulk as part of a cleaning process
Projects
None yet
Development

No branches or pull requests

2 participants