You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@streampark.apache.org by "G337-BeiJing-Ratel (via GitHub)" <gi...@apache.org> on 2023/02/06 03:56:38 UTC

[GitHub] [incubator-streampark] G337-BeiJing-Ratel opened a new issue, #2301: IllegalStateException: javax.websocket.server.ServerContainer not available

G337-BeiJing-Ratel opened a new issue, #2301:
URL: https://github.com/apache/incubator-streampark/issues/2301

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/incubator-streampark/issues?q=is%3Aissue+label%3A%22bug%22) and found no similar issues.
   
   
   ### What happened
   
   2.0.0-rc4编译完启动的时候报错:
   
   
   ### StreamPark Version
   
   incubator-streampark-2.0.0-rc4
   
   ### Java Version
   
   jdk1.8.0_181
   
   ### Flink Version
   
   1.14.0
   
   ### Scala Version of Flink
   
   2.10.12
   
   ### Error Exception
   
   ```log
   2023-02-06 11:34:22 | ERROR | main | org.springframework.boot.SpringApplication:824] Application run failed
   org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverEndpointExporter' defined in class path resource [org/apache/streampark/console/base/config/WebSocketConfig.class]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: javax.websocket.server.ServerContainer not available
           at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1804)
           at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:620)
           at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
           at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
           at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
           at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
           at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
           at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955)
           at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
           at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
           at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147)
           at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:734)
           at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408)
           at org.springframework.boot.SpringApplication.run(SpringApplication.java:308)
           at org.apache.streampark.console.StreamParkConsoleBootstrap.main(StreamParkConsoleBootstrap.java:69)
   Caused by: java.lang.IllegalStateException: javax.websocket.server.ServerContainer not available
           at org.springframework.util.Assert.state(Assert.java:76)
           at org.springframework.web.socket.server.standard.ServerEndpointExporter.afterPropertiesSet(ServerEndpointExporter.java:107)
           at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1863)
           at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800)
           ... 14 common frames omitted
   ```
   
   
   ### Screenshots
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-streampark] Observe-secretly commented on issue #2301: IllegalStateException: javax.websocket.server.ServerContainer not available

Posted by "Observe-secretly (via GitHub)" <gi...@apache.org>.
Observe-secretly commented on issue #2301:
URL: https://github.com/apache/incubator-streampark/issues/2301#issuecomment-1418824603

   @G337-BeiJing-Ratel  比较巧我刚刚规避了这个问题。我不确定这么修改会带来什么其它问题,不过你可以先试试看。
   
   操作:
   请删除`@Configuration`注解,可以短暂规避这个问题。
   ```
   package org.apache.streampark.console.base.config;
   
   import org.springframework.context.annotation.Bean;
   import org.springframework.web.socket.server.standard.ServerEndpointExporter;
   
   public class WebSocketConfig {
     @Bean
     public ServerEndpointExporter serverEndpointExporter() {
       return new ServerEndpointExporter();
     }
   }
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-streampark] G337-BeiJing-Ratel commented on issue #2301: IllegalStateException: javax.websocket.server.ServerContainer not available

Posted by "G337-BeiJing-Ratel (via GitHub)" <gi...@apache.org>.
G337-BeiJing-Ratel commented on issue #2301:
URL: https://github.com/apache/incubator-streampark/issues/2301#issuecomment-1418472455

   解决这个问题


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-streampark] G337-BeiJing-Ratel commented on issue #2301: IllegalStateException: javax.websocket.server.ServerContainer not available

Posted by "G337-BeiJing-Ratel (via GitHub)" <gi...@apache.org>.
G337-BeiJing-Ratel commented on issue #2301:
URL: https://github.com/apache/incubator-streampark/issues/2301#issuecomment-1418846053

   嗯嗯,感谢。我刚才把整个方法体里面的内容注释掉可以了, 我看最新版本,后段代码支持spark。前端设置spark状态是disable,spark模块暂时不可用吗


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org