Skip to content
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

Websocket session closing #186

Open
kjella opened this issue Aug 26, 2020 · 4 comments
Open

Websocket session closing #186

kjella opened this issue Aug 26, 2020 · 4 comments

Comments

@kjella
Copy link

kjella commented Aug 26, 2020

Using version 4.1.2-rc.3-SNAPSHOT I get the following exception after a couple of hours running the bot:
java.lang.IllegalStateException: Message will not be sent because the WebSocket session has been closed

Here is the complete stack trace:

2020-08-29 15:54:25.257 DEBUG 6 --- [ient-SecureIO-2] me.ramswaroop.jbot.core.slack.Bot        : WebSocket closed: StandardWebSocketSession[id=0, uri=null], Close Status: CloseStatus[code=1006, reason=Unexpected Status of SSLEngineResult after an unwrap() operation]
 2020-08-29 15:54:32.241 DEBUG 6 --- [pool-1-thread-1] me.ramswaroop.jbot.core.slack.Bot        : Pinging Slack...
 2020-08-29 15:54:32.247 ERROR 6 --- [pool-1-thread-1] me.ramswaroop.jbot.core.slack.Bot        : Error pinging Slack. Slack bot may go offline when not active. Exception:

 java.lang.IllegalStateException: Message will not be sent because the WebSocket session has been closed
 	at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.writeMessagePart(WsRemoteEndpointImplBase.java:424) ~[tomcat-embed-websocket-8.5.4.jar!/:8.5.4]
 	at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendMessageBlock(WsRemoteEndpointImplBase.java:309) ~[tomcat-embed-websocket-8.5.4.jar!/:8.5.4]
 	at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendMessageBlock(WsRemoteEndpointImplBase.java:250) ~[tomcat-embed-websocket-8.5.4.jar!/:8.5.4]
 	at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendPartialString(WsRemoteEndpointImplBase.java:223) ~[tomcat-embed-websocket-8.5.4.jar!/:8.5.4]
 	at org.apache.tomcat.websocket.WsRemoteEndpointBasic.sendText(WsRemoteEndpointBasic.java:49) ~[tomcat-embed-websocket-8.5.4.jar!/:8.5.4]
 	at org.springframework.web.socket.adapter.standard.StandardWebSocketSession.sendTextMessage(StandardWebSocketSession.java:197) ~[spring-websocket-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]
 	at org.springframework.web.socket.adapter.AbstractWebSocketSession.sendMessage(AbstractWebSocketSession.java:104) ~[spring-websocket-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]
 	at me.ramswaroop.jbot.core.slack.Bot$PingTask.run(Bot.java:361) ~[jbot-4.1.2-rc.3-SNAPSHOT.jar!/:4.1.2-rc.3-SNAPSHOT]
 	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[na:na]
 	at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) ~[na:na]
 	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) ~[na:na]
 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na]
 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na]
 	at java.base/java.lang.Thread.run(Thread.java:834) ~[na:na]

 2020-08-29 15:54:32.247  INFO 6 --- [pool-1-thread-1] o.s.w.s.c.WebSocketConnectionManager     : Stopping WebSocketConnectionManager
@rampatra
Copy link
Owner

Can you please paste the complete stack trace? The above is not complete.

@kjella
Copy link
Author

kjella commented Aug 31, 2020

Just updated my original issue with all the logging statements regarding the IllegalStateException.

@kjella
Copy link
Author

kjella commented Sep 4, 2020

@rampatra Do you have enough information?

@kjella
Copy link
Author

kjella commented Oct 12, 2020

Any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants