Invalid version format with WS

155 views
Skip to first unread message

Nicholas C. Zakas

unread,
Mar 5, 2011, 2:01:42 PM3/5/11
to play-framework
Hi,

I've just run into an error while making a web service request, and I
can't seem to find any information about what this error is anywhere.
Hoping that someone here might have encountered this before. The error
message is:

java.util.concurrent.ExecutionException:
java.lang.IllegalArgumentException: invalid version format:
フᅩ��ᄊ￯ヒ￷ᄆ9쭈3モ��N QE: ○R￵マ¥#ᄀ�� >ᄇ��ᅴOレ

I'm using this simple code:

WS.HttpResponse response = WS.url(url).get();

The URL I'm requesting is a Facebook entrypoint to retrieve a user
image. I'm reasonably certain something changed on the Facebook side
since this used to work, but I have no idea how to go about debugging
this issue since I can't find any information about what this error
is.

Here's the full explosion:

Execution exception (In /app/auth/Facebook.java around line 115)
RuntimeException occured : java.util.concurrent.ExecutionException:
java.lang.Il
legalArgumentException: invalid version format: ??? ?????9??3?? N►QE:⌂?
R???#?? ♠
>?? ?O?<XO??'?

play.exceptions.JavaExecutionException:
java.util.concurrent.ExecutionException:
java.lang.IllegalArgumentException: invalid version format: ??? ?????
9??3?? N►Q
E:⌂?R???#?? ♠>?? ?O?<XO??'?
at play.mvc.ActionInvoker.invoke(ActionInvoker.java:285)
at Invocation.HTTP Request(Play!)
Caused by: java.lang.RuntimeException:
java.util.concurrent.ExecutionException:
java.lang.IllegalArgumentException: invalid version format: ??? ?????
9??3?? N►QE
:⌂?R???#?? ♠>?? ?O?<XO??'?
at play.libs.ws.WSAsync$WSAsyncRequest.get(WSAsync.java:109)
at auth.Facebook.getUserPicture(Facebook.java:115)
at controllers.Auth.fbcallback(Auth.java:58)
at
play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:408)

at
play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:403)

at play.mvc.ActionInvoker.invoke(ActionInvoker.java:176)
... 1 more
Caused by: java.util.concurrent.ExecutionException:
java.lang.IllegalArgumentExc
eption: invalid version format: ??? ?????9??3?? N►QE:⌂?R???#?? ♠>?? ?O?
<XO??'?
at
com.ning.http.client.providers.netty.NettyResponseFuture.abort(NettyR
esponseFuture.java:207)
at
com.ning.http.client.providers.netty.NettyAsyncHttpProvider.abort(Net
tyAsyncHttpProvider.java:848)
at
com.ning.http.client.providers.netty.NettyAsyncHttpProvider.exception
Caught(NettyAsyncHttpProvider.java:1014)
at
org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(S
impleChannelUpstreamHandler.java:122)
at
org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultCh
annelPipeline.java:545)
at org.jboss.netty.channel.DefaultChannelPipeline
$DefaultChannelHandlerC
ontext.sendUpstream(DefaultChannelPipeline.java:754)
at
org.jboss.netty.handler.stream.ChunkedWriteHandler.handleUpstream(Chu
nkedWriteHandler.java:144)
at
org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultCh
annelPipeline.java:545)
at org.jboss.netty.channel.DefaultChannelPipeline
$DefaultChannelHandlerC
ontext.sendUpstream(DefaultChannelPipeline.java:754)
at
org.jboss.netty.handler.codec.replay.ReplayingDecoder.exceptionCaught
(ReplayingDecoder.java:462)
at
org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(S
impleChannelUpstreamHandler.java:122)
at
org.jboss.netty.handler.codec.http.HttpClientCodec.handleUpstream(Htt
pClientCodec.java:77)
at
org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultCh
annelPipeline.java:545)
at
org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultCh
annelPipeline.java:540)
at
org.jboss.netty.channel.Channels.fireExceptionCaught(Channels.java:43
2)
at
org.jboss.netty.channel.AbstractChannelSink.exceptionCaught(AbstractC
hannelSink.java:52)
at
org.jboss.netty.channel.DefaultChannelPipeline.notifyHandlerException
(DefaultChannelPipeline.java:622)
at
org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultCh
annelPipeline.java:547)
at
org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultCh
annelPipeline.java:540)
at
org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:27
4)
at
org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:26
1)
at
org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:350)

at
org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioW
orker.java:281)
at
org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:201)
at
org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnabl
e.java:108)
at
org.jboss.netty.util.internal.IoWorkerRunnable.run(IoWorkerRunnable.j
ava:46)
at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExec
utor.java:885)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor
.java:907)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IllegalArgumentException: invalid version
format: ??? ?????
9??3?? N►QE:⌂?R???#?? ♠>?? ?O?<XO??'?
at
org.jboss.netty.handler.codec.http.HttpVersion.<init>(HttpVersion.jav
a:108)
at
org.jboss.netty.handler.codec.http.HttpVersion.valueOf(HttpVersion.ja
va:68)
at
org.jboss.netty.handler.codec.http.HttpResponseDecoder.createMessage(
HttpResponseDecoder.java:110)
at
org.jboss.netty.handler.codec.http.HttpMessageDecoder.decode(HttpMess
ageDecoder.java:198)
at org.jboss.netty.handler.codec.http.HttpClientCodec
$Decoder.decode(Htt
pClientCodec.java:113)
at org.jboss.netty.handler.codec.http.HttpClientCodec
$Decoder.decode(Htt
pClientCodec.java:101)
at
org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(Repl
ayingDecoder.java:471)
at
org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived
(ReplayingDecoder.java:444)
at
org.jboss.netty.handler.codec.http.HttpClientCodec.handleUpstream(Htt
pClientCodec.java:77)
at
org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:27
4)
at
org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:26
1)
at
org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:350)

at
org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioW
orker.java:281)
at
org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:201)
... 4 more
Reply all
Reply to author
Forward
0 new messages