Hi Kalyan, Did you add this line to your manifest file?
<uses-permission android:name="android.permission.INTERNET" /> For a working sample, please check this tutorial: http://wiki.restlet.org/docs_2.0/303-restlet.html Best regards, Jerome -- Restlet ~ Founder and Technical Lead ~ http://www.restlet.org Noelios Technologies ~ http://www.noelios.com -----Message d'origine----- De : Kalyan Akella [mailto:[email protected]] Envoyé : lundi 27 décembre 2010 16:48 À : [email protected] Objet : Restlet for Android 2.0.3: Internal Connector Error (1002) - The calling thread timed out while waiting for a response to unblock it Hi, I am writing a simple android application that talks to a restful web-service hosted on google app engine. Here are the details of my environment: App-Engine Side: Restlet v2.0.3 for GAE Android Side: Restlet v2.0.3 for Android Android: v2.2 API Level 8 At first, when I was developing the app-engine web service on my local development server, I was able to access this web service from within the Restlet client of my android app. A few days back, I uploaded my service to the GAE's appspot and recompiled my android app with this new url. However, this time my app does not seem to connect to this web service at all. It attempts to connect and blocks for about a minute or so and throws up this error in the logcat: 12-27 15:14:52.856: ERROR/MyActivity(362): Internal Connector Error (1002) - The calling thread timed out while waiting for a response to unblock it. 12-27 15:14:52.856: ERROR/MyActivity(362): at org.restlet.resource.ClientResource$1.invoke(ClientResource.java:1648) 12-27 15:14:52.856: ERROR/MyActivity(362): at $Proxy7.getAvailableItems(Native Method) 12-27 15:14:52.856: ERROR/MyActivity(362): at com.example.activities.MyActivity$1.run(MyActivity.java:94) As you might notice from the log, I am calling the following web service method on GAE: @Get GetItemsResponse getAvailableItems(ItemCategory itemCategory); Moreover, I am doing this on the android side to bind to this web service: ClientResource clientResource = new ClientResource(myServiceUri); return clientResource.wrap(ItemsResource.class); Note that the app engine service is working fine. I am able to access the service from the browser outside. It also properly serves a .jsp file that is part of my application war and I'm able to use it. On the other hand, during the time when the android app tries to connect to this service, I do not even see any incoming request log in my appspot dashboard. Seems like the android request isn't even reaching GAE for some reason. Will you please help me ? Am I missing something here ? Please let me know if you need more details about my problem. Sincere Regards, Kalyan Akella -- View this message in context: http://restlet-discuss.1400322.n2.nabble.com/Restlet-for-Android-2-0-3-Internal-Connector-Error-1002-The-calling-thread-timed-out-while-waiting-ft-tp5869419p5869419.html Sent from the Restlet Discuss mailing list archive at Nabble.com. ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2693988 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2694524

