java.lang.IllegalStateException: Failed to register @ServerEndpoint class: class org.nextrtc.examples.videochat_with_rest.MyEndpoint

GitHub | TaekminKwon | 3 months ago
  1. 0

    GitHub comment 11#252536342

    GitHub | 3 months ago | TaekminKwon
    java.lang.IllegalStateException: Failed to register @ServerEndpoint class: class org.nextrtc.examples.videochat_with_rest.MyEndpoint
  2. 0
    You should define the TestContext class in your classpath
  3. 0
    All look like I had something else running on my machine that was interfering with it. Once I rebooted it runs without issue.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    The solution is to run as root using sudo or to set different port in "application.properties" file, e.g. server.port=${port:8181}
  6. 0
    JHipster only supports java 7 and 8.
    via GitHub by atomfrede

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Failed to register @ServerEndpoint class: class org.nextrtc.examples.videochat_with_rest.MyEndpoint

      at org.springframework.web.socket.server.standard.ServerEndpointExporter.registerEndpoint()
    2. Spring WebSocket
      ServerEndpointExporter.registerEndpoint
      1. org.springframework.web.socket.server.standard.ServerEndpointExporter.registerEndpoint(ServerEndpointExporter.java:148)[spring-websocket-4.2.5.RELEASE.jar:4.2.5.RELEASE]
      1 frame