-
Notifications
You must be signed in to change notification settings - Fork 38.4k
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
WebSocketMessageBrokerConfigurationSupport requiring JDK 7+ due to setRemoveOnCancelPolicy [SPR-12238] #16852
Comments
Rossen Stoyanchev commented Tomcat and Jetty each require JDK 1.7 for their WebSocket support and so does JSR-356. Can you elaborate how you run into this? |
zyro commented zyro23/grails-spring-websocket#13 (comment) i guess a user tried to use the grails plugin with jdk 1.6 resulting in the app not even starting... i am unsure how to handle this, too. i have no problem at all marking that grails plugin as "only jdk 1.7+ compatible and if you try 1.6 expect a crash" - however that would not be very "user-friendly" although trying to use it with 1.6 makes just no sense... |
Juergen Hoeller commented I wasn't expecting anyone to run this on JDK 6 either. That said, it should be easy enough to simply conditionally call that setRemoveOnCancelPolicy method. Juergen |
Chandan commented Has this been tested for IBM provided Java (version java_1.7_64). in container Web Sphere. I recently upgraded to 4.1.2 for pulling fix for #16888, but the the upgrade breaks due to exception in WebSphere. Asked here as well: http://stackoverflow.com/questions/27107825/spring-build-4-1-2-is-throwing-error-about-missing-method-setremoveoncancelpolic. Following is the stack trace org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler org.springframework.web.socket.config.annotation.WebSocketConfigurationSupport.defaultSockJsTaskScheduler()] threw exception; nested exception is java.lang.NoSuchMethodError: org/springframework/scheduling/concurrent/ThreadPoolTaskScheduler.setRemoveOnCancelPolicy(Z)V |
zyro opened SPR-12238 and commented
https://github.com/spring-projects/spring-framework/blob/master/spring-websocket/src/main/java/org/springframework/web/socket/config/annotation/WebSocketMessageBrokerConfigurationSupport.java#L104
calls http://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/scheduling/concurrent/ThreadPoolTaskScheduler.html#setRemoveOnCancelPolicy-boolean-
which requires JDK 1.7+
example JDK 1.6 stacktrace-snippet:
thanks, zyro
Affects: 4.0.6, 4.0.7, 4.1 GA
Issue Links:
Referenced from: commits 0c680d6, e003d21
Backported to: 4.0.8
The text was updated successfully, but these errors were encountered: