{"id":3608,"date":"2014-03-29T06:46:57","date_gmt":"2014-03-29T06:46:57","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/29\/the-api-package-remote_socket-or-call-resolve-was-not-found-gae-java-collection-of-common-programming-errors\/"},"modified":"2014-03-29T06:46:57","modified_gmt":"2014-03-29T06:46:57","slug":"the-api-package-remote_socket-or-call-resolve-was-not-found-gae-java-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/29\/the-api-package-remote_socket-or-call-resolve-was-not-found-gae-java-collection-of-common-programming-errors\/","title":{"rendered":"The API package &#39;remote_socket&#39; or call &#39;Resolve()&#39; was not found &#8211; GAE Java-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m trying to call a Google Service in a GAE application hosted in GAE cloud:<\/p>\n<pre><code>private String doPost(String URL) throws ClientProtocolException, IOException {\n    \/\/ Params:\n    List params = new ArrayList();\n    params.add(new BasicNameValuePair(\"accountType\", \"HOSTED_OR_GOOGLE\"));\n    params.add(new BasicNameValuePair(\"Email\", _DEFAULT_USER));\n    params.add(new BasicNameValuePair(\"Passwd\", _DEFAULT_PASS));\n    params.add(new BasicNameValuePair(\"service\", \"ah\"));\n    \/\/ Call\n    HttpClient httpClient = new DefaultHttpClient();\n    HttpPost post = new HttpPost(URL); \/\/ URL:\n                                        \/\/ https:\/\/www.google.com\/accounts\/ClientLogin\n    post.setEntity(new UrlEncodedFormEntity(p_params, HTTP.UTF_8));\n    post.getParams().setBooleanParameter(\n            CoreProtocolPNames.USE_EXPECT_CONTINUE, false);\n    HttpResponse response = httpClient.execute(post);\n    return _ProcessResponse(response); \/\/ Process...\n}\n<\/code><\/pre>\n<p><strong>The execution throws:<\/strong> <code>com.google.apphosting.api.ApiProxy$CallNotFoundException: The API package 'remote_socket' or call 'Resolve()' was not found<\/code>.<\/p>\n<p>Any ideas? I&#8217;m totally lost&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m trying to call a Google Service in a GAE application hosted in GAE cloud: private String doPost(String URL) throws ClientProtocolException, IOException { \/\/ Params: List params = new ArrayList(); params.add(new BasicNameValuePair(&#8220;accountType&#8221;, &#8220;HOSTED_OR_GOOGLE&#8221;)); params.add(new BasicNameValuePair(&#8220;Email&#8221;, _DEFAULT_USER)); params.add(new BasicNameValuePair(&#8220;Passwd&#8221;, _DEFAULT_PASS)); params.add(new BasicNameValuePair(&#8220;service&#8221;, &#8220;ah&#8221;)); \/\/ Call HttpClient httpClient = new DefaultHttpClient(); HttpPost post = new HttpPost(URL); \/\/ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3608","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3608","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=3608"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3608\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3608"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3608"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3608"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}