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 + Redis Session = java.lang.IllegalStateException: Unexpected use of scheduler. #12814
Comments
This is the second time that we see that issue and I think this should be addressed in Spring Framework. Paging @rstoyanchev for feedback. @nagyzsolthun Thanks for the sample.Cconfiguring the task scheduler yourself is a workaround for now, I'll submit a PR to your sample shortly. |
Here's the complete stack:
|
@nagyzsolthun I've submitted a PR to your project. I think that we should try to find a way to avoid registering a broken |
When using spring-boot-starter-websocket together with spring-session-data-redis and Jedis I see this exception at startup. Example project: https://github.com/nagyzsolthun/spring-websocket-redis-exception
java.lang.IllegalStateException: Unexpected use of scheduler.
at org.springframework.web.socket.config.annotation.WebSocketConfigurationSupport$NoOpScheduler.schedule(WebSocketConfigurationSupport.java:108) ~[spring-websocket-5.0.5.RELEASE.jar:5.0.5.RELEASE]
...
How to use Spring Websocket with Spring Redis?
The text was updated successfully, but these errors were encountered: