java.lang.IllegalStateException: Could not get HttpServletRequest URI: Expected hostname at index 5: ws://:0/messaging/realtime?topic=xyz org.springframework.http.server.ServletServerHttpRequest.getURI(ServletServerHttpRequest.java:98)

GitHub | jyoti-sungard | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 1998#239616482

    GitHub | 6 months ago | jyoti-sungard
    java.lang.IllegalStateException: Could not get HttpServletRequest URI: Expected hostname at index 5: ws://:0/messaging/realtime?topic=xyz org.springframework.http.server.ServletServerHttpRequest.getURI(ServletServerHttpRequest.java:98)
  2. 0

    java.lang.IllegalStateException: Could not get HttpServletRequest URI: Expected hostname at index 5: ws://:0/xyz?topic=abc\r\n\tat

    GitHub | 7 months ago | jyoti-sungard
    java.lang.IllegalStateException: Could not get HttpServletRequest URI: Expected hostname at index 5: ws://:0/messaging/realtime?topic=exchangePrivateOrder

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Could not get HttpServletRequest URI: Expected hostname at index 5: ws://:0/messaging/realtime?topic=xyz org.springframework.http.server.ServletServerHttpRequest.getURI(ServletServerHttpRequest.java:98)

      at org.springframework.web.util.UriComponentsBuilder.fromHttpRequest()
    2. Spring
      WebUtils.isSameOrigin
      1. org.springframework.web.util.UriComponentsBuilder.fromHttpRequest(UriComponentsBuilder.java:282)
      2. org.springframework.web.util.WebUtils.isSameOrigin(WebUtils.java:811)
      2 frames
    3. org.springframework.web
      DefaultCorsProcessor.processRequest
      1. org.springframework.web.cors.DefaultCorsProcessor.processRequest(DefaultCorsProcessor.java:71)
      1 frame
    4. Spring MVC
      FrameworkServlet.doGet
      1. org.springframework.web.servlet.handler.AbstractHandlerMapping$CorsInterceptor.preHandle(AbstractHandlerMapping.java:503)
      2. org.springframework.web.servlet.HandlerExecutionChain.applyPreHandle(HandlerExecutionChain.java:134)
      3. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:954)
      4. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)
      5. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
      6. org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)
      6 frames
    5. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
      1 frame
    6. Spring MVC
      FrameworkServlet.service
      1. org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
      1 frame
    7. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
      1 frame
    8. atmosphere-runtime
      Servlet30CometSupport.service
      1. org.atmosphere.util.AtmosphereFilterChain.doFilter(AtmosphereFilterChain.java:135)
      2. org.atmosphere.util.AtmosphereFilterChain.invokeFilterChain(AtmosphereFilterChain.java:96)
      3. org.atmosphere.handler.ReflectorServletProcessor$FilterChainServletWrapper.service(ReflectorServletProcessor.java:333)
      4. org.atmosphere.handler.ReflectorServletProcessor.onRequest(ReflectorServletProcessor.java:171)
      5. org.atmosphere.cpr.AsynchronousProcessor.action(AsynchronousProcessor.java:223)
      6. org.atmosphere.cpr.AsynchronousProcessor.suspended(AsynchronousProcessor.java:115)
      7. org.atmosphere.container.Servlet30CometSupport.service(Servlet30CometSupport.java:68)
      7 frames