Hi, I am new to JAVA development and any help to solve this issue will be really grateful.
When I send request to retrieve some details from my orkut app developed to work on my application, say for example, to retrieve a user's own scrapbook using SCRP SELF, I am getting error that no scraps are retrieved. On analyzing the error details, I could make out that it is the "doReceiveResponse()" method in the "HttpRequestExecuter" class that throws "org.apache.http.NoHttpResponseException".And this error eventually causes an "org.apache.http.client.ClientProtocolException" to occur on calling "HttpClient4.execute()" method. This error occurs sporadically, usually on any initial httprequest. Subsequent requests would work fine. Please help me to get rid of this Exception that happens in the HttpClient4 class. I am attaching the Exception details along with this mail. Please help me out! Thanks in advance. -- You received this message because you are subscribed to the Google Groups "orkut Developer Forum" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/opensocial-orkut?hl=en.
API call Response: Orkut\nNo Scrap Available.Server error.10: org.apache.http.client.ClientProtocolException at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:643) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:576) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:554) at net.oauth.client.httpclient4.HttpClient4.execute(HttpClient4.java:102) at net.oauth.client.OAuthClient.access(OAuthClient.java:318) at net.oauth.client.OAuthClient.invoke(OAuthClient.java:304) at net.oauth.example.DesktopClient.invoke(DesktopClient.java:217) at net.oauth.example.DesktopClient.access(DesktopClient.java:126) at com.google.orkut.client.sample.Transport.sendRequest(Transport.java:139) at com.google.orkut.client.sample.Transport.run(Transport.java:123) at com.shorthandmobile.server.services.orkut.OrkutServiceImpl.getScrapBook(OrkutServiceImpl.java:389) 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.shorthandmobile.server.services.JavaService.callMethodForRequest(JavaService.java:16) at com.shorthandmobile.server.domain.Request.handle(Request.java:54) at ShorthandServlet.services(ShorthandServlet.java:83) at ShorthandServlet.doGet(ShorthandServlet.java:40) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Unknown Source) Caused by: org.apache.http.client.NonRepeatableRequestException: Cannot retry request with a non-repeatable request entity. The cause lists the reason the original request failed. at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:470) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:641) ... 32 more Caused by: org.apache.http.NoHttpResponseException: The target server failed to respond at org.apache.http.impl.conn.DefaultResponseParser.parseHead(DefaultResponseParser.java:101) at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:210) at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:271) at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:227) at org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(AbstractClientConnAdapter.java:209) at org.apache.http.protocol.HttpRequestExecutor.doRe * * The last method is not given completely in the exception detail, but it could be "doReceiveResponse" method.

