Skip to content
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

java.net.URISyntaxException: Expected hostname at index 5: ws://:0/ #2070

Closed
KY-7 opened this issue Oct 26, 2015 · 1 comment
Closed

java.net.URISyntaxException: Expected hostname at index 5: ws://:0/ #2070

KY-7 opened this issue Oct 26, 2015 · 1 comment

Comments

@KY-7
Copy link

KY-7 commented Oct 26, 2015

Hi,
i'm trying to integrate the latest spring (4.2.2.RELEASE) and latest atmosphere(2.3.5) on tomcat 8.0.28.
I've used the "spring tiles" example as a startup code (which does not actually work).

Are those frameworks versions supposed to work together?

Here the error code which seems to be related to a bad URI:

(xyz is the pubsub topic i entered; spring-atmosphere is the application name)

java.lang.IllegalStateException: Could not get HttpServletRequest URI: Expected hostname at index 5: ws://:0/spring-atmosphere/pubsub/xyz?
at org.atmosphere.handler.ReflectorServletProcessor.onRequest(ReflectorServletProcessor.java:162)
at org.atmosphere.cpr.AsynchronousProcessor.action(AsynchronousProcessor.java:215)
at org.atmosphere.cpr.AsynchronousProcessor.suspended(AsynchronousProcessor.java:109)
at org.atmosphere.container.Servlet30CometSupport.service(Servlet30CometSupport.java:66)
at org.atmosphere.cpr.AtmosphereFramework.doCometSupport(AtmosphereFramework.java:2275)
at org.atmosphere.websocket.DefaultWebSocketProcessor.dispatch(DefaultWebSocketProcessor.java:566)
at org.atmosphere.websocket.DefaultWebSocketProcessor.open(DefaultWebSocketProcessor.java:220)
at org.atmosphere.container.JSR356Endpoint.onOpen(JSR356Endpoint.java:237)
at org.apache.tomcat.websocket.server.WsHttpUpgradeHandler.init(WsHttpUpgradeHandler.java:138)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:701)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
...

Thanks!

@jfarcand
Copy link
Member

Please use the mailing list for question: https://groups.google.com/group/atmosphere-framework?pli=1

@Atmosphere Atmosphere locked and limited conversation to collaborators Oct 26, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants