-
Notifications
You must be signed in to change notification settings - Fork 21
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
Illegal character in scheme name at index 0: 0:0:0:0:0:0:0:1 #1
Comments
@Elvander can you paste the entire exception? |
Here is the complete stacktrace. [error] o.a.p.PlayWebSocket -
java.lang.IllegalArgumentException: Illegal character in scheme name at index 0: 0:0:0:0:0:0:0:1
at java.net.URI.create(Unknown Source) ~[na:1.7.0_13]
at org.atmosphere.play.AtmosphereUtils.request(AtmosphereUtils.java:72) ~[atmosphere-play-1.0.0.beta1.jar:na]
at org.atmosphere.play.PlayWebSocket$1.onReady(PlayWebSocket.java:64) ~[atmosphere-play-1.0.0.beta1.jar:na]
at play.core.j.JavaWebSocket$$anonfun$webSocketWrapper$1$$anonfun$apply$1.apply(JavaWebSocket.scala:48) [play_2.
10.jar:2.1.0]
at play.core.j.JavaWebSocket$$anonfun$webSocketWrapper$1$$anonfun$apply$1.apply(JavaWebSocket.scala:14) [play_2.
10.jar:2.1.0]
at play.core.server.netty.PlayDefaultUpstreamHandler.liftedTree1$1(PlayDefaultUpstreamHandler.scala:324) [play_2
.10.jar:2.1.0]
Caused by: java.net.URISyntaxException: Illegal character in scheme name at index 0: 0:0:0:0:0:0:0:1
at java.net.URI$Parser.fail(Unknown Source) ~[na:1.7.0_13]
at java.net.URI$Parser.checkChars(Unknown Source) ~[na:1.7.0_13]
at java.net.URI$Parser.checkChar(Unknown Source) ~[na:1.7.0_13]
at java.net.URI$Parser.parse(Unknown Source) ~[na:1.7.0_13]
at java.net.URI.<init>(Unknown Source) ~[na:1.7.0_13]
at java.net.URI.create(Unknown Source) ~[na:1.7.0_13]
java.lang.NullPointerException
at org.atmosphere.websocket.DefaultWebSocketProcessor.configureHeader(DefaultWebSocketProcessor.java:513)
at org.atmosphere.websocket.DefaultWebSocketProcessor.open(DefaultWebSocketProcessor.java:137)
at org.atmosphere.play.PlayWebSocket$1.onReady(PlayWebSocket.java:70)
at play.core.j.JavaWebSocket$$anonfun$webSocketWrapper$1$$anonfun$apply$1.apply(JavaWebSocket.scala:48)
at play.core.j.JavaWebSocket$$anonfun$webSocketWrapper$1$$anonfun$apply$1.apply(JavaWebSocket.scala:14)
at play.core.server.netty.PlayDefaultUpstreamHandler.liftedTree1$1(PlayDefaultUpstreamHandler.scala:324)
at play.core.server.netty.PlayDefaultUpstreamHandler.messageReceived(PlayDefaultUpstreamHandler.scala:322)
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:75)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:565)
at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeli
ne.java:793)
at org.jboss.netty.handler.codec.http.HttpContentDecoder.messageReceived(HttpContentDecoder.java:104)
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:75)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:565)
at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeli
ne.java:793)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296)
at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:455)
at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:538)
at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:437)
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:75)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:565)
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:560)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255)
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:84)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.processSelectedKeys(AbstractNioWorker.java:472)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:333)
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:35)
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:102)
at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source) |
This error is still throwing from atmosphere-play-2.0.0.jar and the full exception is: 2014-08-23 23:17:26,277 - [TRACE] - from org.atmosphere.play.AtmosphereUtils in play-internal-execution-context-1 java.lang.IllegalArgumentException: Illegal character in scheme name at index 0: 0:0:0:0:0:0:0:1 |
Upgrade atmosphere-play to use play 2.6
In the AtmosphereUtils near line 72:
The result for an IPv6 is not parsed correctly. Maybe something else should be used instead of the URI api...
The text was updated successfully, but these errors were encountered: