You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
WebSocketConfigurationSupport.defaultSockJsTaskScheduler adds NoOpScheduler to context that is not usable in any way [SPR-16189] #20737
WebSocketConfigurationSupport.defaultSockJsTaskScheduler() produces TaskScheduler bean and adds it to application context. But if SockJS is not used and not configured - it creates NoOpScheduler that can only throw IllegalStateExceptions. If other component is added to context that requires TaskScheduler it picks that NoOpScheduler and fails with "Unexpected use of scheduler" on it use instead of "No such bean" on creation.
It seems to me that it will be better not to add such NoOpScheduler to application context since it is not usable in any way.
Rossen Stoyanchev, this seems somewhat convoluted overall between WebSocketConfigurationSupport and WebSocketMessageBrokerConfigurationSupport... Let's see what we can do about it.
Activity
spring-projects-issues commentedon Nov 13, 2017
Juergen Hoeller commented
Rossen Stoyanchev, this seems somewhat convoluted overall between
WebSocketConfigurationSupportandWebSocketMessageBrokerConfigurationSupport... Let's see what we can do about it.