Hello Ike,

generally speaking, this status is the consequence of an error during the
communication between the client and the server. There could be
interruption, the remote URL is wrong, etc.
You can check the remote URL, use another client connector (for example the
"net" or the "httpclient" extension) if you are using the internal client
connector.

Best regards,
Thierry Boileau

 Dear Sir,
>
> I am using Restlet framework. Sometimes the ClientResource can't connect to
> the ServerResource when I use the HTTP protocol and send a GET request. The
> error message is:
>
>     02-mai-2011 17:25:11 org.restlet.engine.http.connector.HttpClientHelper
> start
>     INFO: Starting the default HTTP client
>     02-mai-2011 17:25:11 org.restlet.resource.ClientResource handle
>     INFO: A recoverable error was detected (1001), attempting again in 2000
> ms.
>     02-mai-2011 17:25:13 org.restlet.resource.ClientResource handle
>     INFO: A recoverable error was detected (1001), attempting again in 2000
> ms.
>
>     Communication Error (1001) - null
>         at
> org.restlet.resource.ClientResource.handle(ClientResource.java:819)
>         at
> org.restlet.resource.ClientResource.handle(ClientResource.java:731)
>         at org.restlet.resource.ClientResource.get(ClientResource.java:464)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at
> com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:562)
>         at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:207)
>         at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:243)
>         at
> com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>         at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
>         at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
>         at
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
>         at
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
>         at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
>         at
> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
>         at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>         at
> org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)
>         at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>         at org.mortbay.jetty.Server.handle(Server.java:324)
>         at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
>         at
> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
>         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
>         at
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
>         at
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
>     02-mai-2011 17:25:15 org.restlet.engine.http.connector.HttpClientHelper
> stop
>     INFO: Stopping the default HTTP client
>
> Do you know what is the problem? Is there a way to detect this
> communication error and handle the problem?
>
> Thanks in advance!
>
> Ike
>

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

Reply via email to