'Invalid tag format detected' with Apache HTTP Client

2011-01-30 Thread Tal Liron
Hmm, I'm having some more issues with the Apache HTTP client. This is a 
URL that works fine with other HTTP clients.


Restlet 2.0.4 SE.


Here's the relevant stack trace. Any ideas?


2011-01-31 03:45:49,553: WARN  [org.restlet.Component.Client] Invalid 
tag format detected: m1SbCDHPwgmhtnASxZWgcA
2011-01-31 03:45:49,554: INFO  [org.restlet.Component.Client] Error 
while handling an HTTP client call
java.lang.ArrayIndexOutOfBoundsException: 22
 at org.restlet.engine.util.Base64.decode(Base64.java:114)
 at org.restlet.engine.util.Base64.decode(Base64.java:163)
 at 
org.restlet.engine.http.header.HeaderUtils.extractEntityHeaders(HeaderUtils.java:723)
 at 
org.restlet.engine.http.ClientCall.getResponseEntity(ClientCall.java:204)
 at 
org.restlet.engine.http.adapter.ClientAdapter.updateResponse(ClientAdapter.java:200)
 at 
org.restlet.engine.http.adapter.ClientAdapter.commit(ClientAdapter.java:112)
 at 
org.restlet.engine.http.HttpClientHelper.handle(HttpClientHelper.java:110)
 at org.restlet.Client.handle(Client.java:177)
 at org.restlet.routing.Filter.doHandle(Filter.java:156)
 at org.restlet.routing.Filter.handle(Filter.java:203)
 at org.restlet.routing.Router.doHandle(Router.java:497)
 at org.restlet.routing.Router.handle(Router.java:737)
 at 
org.restlet.engine.component.ComponentClientDispatcher.doHandle(ComponentClientDispatcher.java:130)
 at 
org.restlet.engine.TemplateDispatcher.handle(TemplateDispatcher.java:121)
 at 
org.restlet.engine.component.ChildClientDispatcher.parentHandle(ChildClientDispatcher.java:139)
 at 
org.restlet.engine.component.ChildClientDispatcher.doHandle(ChildClientDispatcher.java:114)
 at 
org.restlet.engine.TemplateDispatcher.handle(TemplateDispatcher.java:121)
 at 
org.restlet.engine.component.ChildClientDispatcher.parentHandle(ChildClientDispatcher.java:139)
 at 
org.restlet.engine.component.ChildClientDispatcher.doHandle(ChildClientDispatcher.java:114)
 at 
org.restlet.engine.TemplateDispatcher.handle(TemplateDispatcher.java:121)
 at 
org.restlet.resource.ClientResource.handle(ClientResource.java:928)

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2701625


RE: Re: Re: restlet-gwt serialization performance

2011-01-30 Thread Benibur
Well, in fact the problem was ... the development mode of GWT. 
As I could not understand the problem, I tried to deploy the web app on tomcat 
and then the performances were almost the same for json and gwt serialization...
Strange ...

But the performance remains surprising : in speed tracer I compared the 
performance of the json and GWT, and surprisingly the GWT request is bigger (I 
expected it would be smaller since there is less data to transmit) but it is 
faster (?)

Mime-type   application/json
Total Bytes 6924 bytes
Request Timing  @1009ms for 33ms
Response Timing @1042ms for 11ms
Total Timing@1009ms for 44ms

Mime-type   application/x-java-serialized-object+gwt
Total Bytes 13491 bytes
Request Timing  @6297ms for 17ms
Response Timing @6314ms for 17ms
Total Timing@6297ms for 34ms

Bigger ? but still faster ? where is the logic ? I must be missing something ...

Ben

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2701542


RE: Getting started with OAuth in eclipse

2011-01-30 Thread Bjorn Roche
Thanks for your reply! Very helpful indeed. For some reason, I am getting this 
error when I manually enter the pom

Failed to read artifact descriptor for 
org.restlet.dev:org.restlet.ext.openid:jar:${re​stlet.version}

and when I try to use the UI, it can't find the artifacts (I hope I am using 
the right terms)

Is something wrong with my local repository that it can't find what it needs?

Thanks!

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2701529