-
-
Notifications
You must be signed in to change notification settings - Fork 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
generate-application with websockets does not start #19797
Comments
Does anyone have any insights on this, please? |
This is still an issue with JHipster 7.9.3 |
@TimMaltGermany : I transfered your ticket here as jhipster online project is not followed enough |
Seems related to #14567. Right now we don't support websocket + reactive/webflux. As the gateway is now always reactive it will fail. Spring Websocket abstactions only works for non reactive part, so some handwritten code is needed to create the endpoints and to use the current thin abstraction layer for stomp etc. For the actual issue, we don't support websockets + reactive on cli, but we do via jdl and the jhipster online ui (which is wrong until the linked issue is resolved, either by doing it on our side or hope spring will update their integation to support webflux). |
Duplicated of #14567 |
Bug description
I used the web generator at https://start.jhipster.tech/generate-application to generate a new JHipster application with web sockets, but it fails to start with the following error message:
Factory method 'stompWebSocketHandlerMapping' threw exception; nested exception is java.lang.IllegalStateException: No suitable default RequestUpgradeStrategy found
To Reproduce
Steps to reproduce the behavior:
Go to 'generate-application'
Change these settings:
Download as Zip file, install and try to run locally
. See error:
2022-07-07 08:20:51.862 WARN 63429 --- [ restartedMain] onfigReactiveWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'stompWebSocketHandlerMapping' defined in class path resource [org/springframework/web/socket/config/annotation/DelegatingWebSocketMessageBrokerConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.web.servlet.HandlerMapping]: Factory method 'stompWebSocketHandlerMapping' threw exception; nested exception is java.lang.IllegalStateException: No suitable default RequestUpgradeStrategy found 2022-07-07 08:20:52.030 ERROR 63429 --- [ restartedMain] o.s.boot.SpringApplication : Application run failed
Expected behavior
Application should start up without an error
Desktop (please complete the following information):
Additional context
content of .jo-rc.json file:
The text was updated successfully, but these errors were encountered: