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

Illegal character in scheme name at index 0: 0:0:0:0:0:0:0:1 #1

Open
Elvander opened this issue Apr 3, 2013 · 3 comments
Open

Illegal character in scheme name at index 0: 0:0:0:0:0:0:0:1 #1

Elvander opened this issue Apr 3, 2013 · 3 comments

Comments

@Elvander
Copy link

Elvander commented Apr 3, 2013

In the AtmosphereUtils near line 72:

URI uri = URI.create(request.remoteAddress());

The result for an IPv6 is not parsed correctly. Maybe something else should be used instead of the URI api...

@jfarcand
Copy link
Member

jfarcand commented Apr 3, 2013

@Elvander can you paste the entire exception?

@Elvander
Copy link
Author

Elvander commented Apr 3, 2013

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)

jfarcand added a commit that referenced this issue Apr 23, 2013
@maheshnampoothiri
Copy link

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
at java.net.URI.create(Unknown Source) ~[na:1.7.0_55]
at org.atmosphere.play.AtmosphereUtils.request(AtmosphereUtils.java:81) ~[atmosphere-play-2.0.0.jar:na]
at org.atmosphere.play.PlayAsyncIOWriter$1.onReady(PlayAsyncIOWriter.java:60) [atmosphere-play-2.0.0.jar:na]
at play.mvc.Results$Chunks$1.invoke(Results.java:1098) [play_2.10.jar:]
at play.mvc.Results$Chunks$1.invoke(Results.java:1094) [play_2.10.jar:]
at play.core.j.JavaResults$$anon$1.apply(JavaResults.scala:39) [play_2.10.jar:]
at play.api.libs.iteratee.Enumerator$class.$bar$greater$greater(Enumerator.scala:34) [play-iteratees_2.10.jar:]
at play.core.j.JavaResults$$anon$1.$bar$greater$greater(JavaResults.scala:33) [play_2.10.jar:]
at play.api.libs.iteratee.Enumerator$$anon$3.apply(Enumerator.scala:91) [play-iteratees_2.10.jar:]
at play.api.libs.iteratee.Enumerator$class.$bar$greater$greater(Enumerator.scala:34) [play-iteratees_2.10.jar:]
at play.api.libs.iteratee.Enumerator$$anon$3.$bar$greater$greater(Enumerator.scala:87) [play-iteratees_2.10.jar:]
at play.api.libs.iteratee.Enumerator$$anon$3.apply(Enumerator.scala:91) [play-iteratees_2.10.jar:]
at play.api.libs.iteratee.Enumerator$class.$bar$greater$greater$greater(Enumerator.scala:52) [play-iteratees_2.10.jar:]
at play.api.libs.iteratee.Enumerator$$anon$3.$bar$greater$greater$greater(Enumerator.scala:87) [play-iteratees_2.10.jar:]
at play.core.server.netty.NettyResultStreamer$.sendResult(NettyResultStreamer.scala:52) [play_2.10.jar:]
at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$22.apply(PlayDefaultUpstreamHandler.scala:266) [play_2.10.jar:]
at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$22.apply(PlayDefaultUpstreamHandler.scala:264) [play_2.10.jar:]
at scala.concurrent.Future$$anonfun$flatMap$1.apply(Future.scala:278) [scala-library.jar:na]
at scala.concurrent.Future$$anonfun$flatMap$1.apply(Future.scala:274) [scala-library.jar:na]
at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:29) [scala-library.jar:na]
at play.api.libs.iteratee.Execution$$anon$1.execute(Execution.scala:43) [play-iteratees_2.10.jar:]
at scala.concurrent.impl.CallbackRunnable.executeWithValue(Promise.scala:37) [scala-library.jar:na]
at scala.concurrent.impl.Promise$DefaultPromise.tryComplete(Promise.scala:133) [scala-library.jar:na]
at scala.concurrent.Promise$class.complete(Promise.scala:55) [scala-library.jar:na]
at scala.concurrent.impl.Promise$DefaultPromise.complete(Promise.scala:58) [scala-library.jar:na]
at scala.concurrent.Promise$class.success(Promise.scala:89) [scala-library.jar:na]
at scala.concurrent.impl.Promise$DefaultPromise.success(Promise.scala:58) [scala-library.jar:na]
at scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:253) [scala-library.jar:na]
at scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:249) [scala-library.jar:na]
at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:29) [scala-library.jar:na]
at scala.concurrent.forkjoin.ForkJoinTask$AdaptedRunnableAction.exec(ForkJoinTask.java:1361) [scala-library.jar:na]
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) [scala-library.jar:na]
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) [scala-library.jar:na]
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) [scala-library.jar:na]
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107) [scala-library.jar:na]
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_55]
at java.net.URI$Parser.checkChars(Unknown Source) ~[na:1.7.0_55]
at java.net.URI$Parser.checkChar(Unknown Source) ~[na:1.7.0_55]
at java.net.URI$Parser.parse(Unknown Source) ~[na:1.7.0_55]
at java.net.URI.(Unknown Source) ~[na:1.7.0_55]
... 35 common frames omitted

jfarcand pushed a commit that referenced this issue Dec 13, 2018
Upgrade atmosphere-play to use play 2.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants