When I user websocket spring-websocket I get error with below stack trace:
Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2023-11-05 11:07:24 2023-11-05T05:37:24.694Z ERROR 1 --- [ main] o.s.boot.SpringApplication : Application run failed
2023-11-05 11:07:24
2023-11-05 11:07:24 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'stompWebSocketHandlerMapping' defined in class path resource [org/springframework/web/socket/config/annotation/DelegatingWebSocketMessageBrokerConfiguration.class]: Post-processing of merged bean definition failed
2023-11-05 11:07:24 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:575)
2023-11-05 11:07:24 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:520)
2023-11-05 11:07:24 at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:325)
2023-11-05 11:07:24 at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
2023-11-05 11:07:24 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:323)
2023-11-05 11:07:24 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
2023-11-05 11:07:24 at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:973)
2023-11-05 11:07:24 at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:950)
2023-11-05 11:07:24 at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:616)
2023-11-05 11:07:24 at org.springframework.boot.web.reactive.context.ReactiveWebServerApplicationContext.refresh(ReactiveWebServerApplicationContext.java:66)
2023-11-05 11:07:24 at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:738)
2023-11-05 11:07:24 at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:440)
2023-11-05 11:07:24 at org.springframework.boot.SpringApplication.run(SpringApplication.java:316)
2023-11-05 11:07:24 at in.beze.pc.PcApp.main(PcApp.java:70)
2023-11-05 11:07:24 Caused by: java.lang.IllegalStateException: Failed to introspect Class [org.springframework.web.socket.server.support.WebSocketHandlerMapping] from ClassLoader [jdk.internal.loader.ClassLoaders$AppClassLoader@4d065142]
2023-11-05 11:07:24 at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:483)
2023-11-05 11:07:24 at org.springframework.util.ReflectionUtils.doWithLocalMethods(ReflectionUtils.java:320)
2023-11-05 11:07:24 at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.buildLifecycleMetadata(InitDestroyAnnotationBeanPostProcessor.java:297)
2023-11-05 11:07:24 at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.findLifecycleMetadata(InitDestroyAnnotationBeanPostProcessor.java:274)
2023-11-05 11:07:24 at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.findLifecycleMetadata(InitDestroyAnnotationBeanPostProcessor.java:203)
2023-11-05 11:07:24 at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(InitDestroyAnnotationBeanPostProcessor.java:182)
2023-11-05 11:07:24 at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(CommonAnnotationBeanPostProcessor.java:296)
2023-11-05 11:07:24 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyMergedBeanDefinitionPostProcessors(AbstractAutowireCapableBeanFactory.java:1083)
2023-11-05 11:07:24 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:572)
Motivation for or Use Case
Just trying microservices with new version.
Reproduce the error
Generate the application.
Build docker images for microservices and gateway app.
Run docker-compose up -d
All images are running but gateway application failed and exited.
Overview of the issue
When I user websocket spring-websocket I get error with below stack trace:
Motivation for or Use Case
Just trying microservices with new version.
Reproduce the error
Related issues
Suggest a Fix
JHipster Version(s)
Hipster release v8.0.0
JHipster configuration
pce@ C:\Beze\workspace\upgraded\v8\pce ├─┬ masters@0.0.0 -> .\masters │ └── generator-jhipster@8.0.0 ├─┬ pc@0.0.1-SNAPSHOT -> .\pc │ └── generator-jhipster@8.0.0 └─┬ stability@0.0.0 -> .\stability └── generator-jhipster@8.0.0
Browsers and Operating System
Windows 11