Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/google-app-engine/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
获取java.lang.RuntimeException:上载文档时无法完成HTTP请求_Java_Google App Engine_Gdata Api - Fatal编程技术网

获取java.lang.RuntimeException:上载文档时无法完成HTTP请求

获取java.lang.RuntimeException:上载文档时无法完成HTTP请求,java,google-app-engine,gdata-api,Java,Google App Engine,Gdata Api,我尝试使用com.google.gdata.client.docs.DocsService上载文档时出现超时错误 以下是我正在使用的代码: DocumentListEntry documentEntry = new DocumentEntry(); documentEntry.setTitle(new PlainTextConstruct("new document")); documentEntry.setMediaSource(new MediaByteArraySource(out.t

我尝试使用com.google.gdata.client.docs.DocsService上载文档时出现超时错误

以下是我正在使用的代码:

DocumentListEntry documentEntry = new DocumentEntry();

documentEntry.setTitle(new PlainTextConstruct("new document"));

documentEntry.setMediaSource(new MediaByteArraySource(out.toByteArray(), mimeType));

DocumentListEntry uploadedEntry = service.insert(new URL("https://docs.google.com/feeds/default/private/full/"), documentEntry);   <-- timeout at this point.
提取时超时:


我正在eclipse中使用app engine sdk以调试模式运行应用程序。

我认为这是一个非常旧的线程,但在回答另一个问题时看到了它。我希望你现在已经解决了

如果没有,那么您的服务是否经过身份验证,您是否能够创建一个简单的文档,例如

             String title = "Doc Create Test";
             DocumentListEntry newEntry = new DocumentEntry();
             newEntry.setTitle(new PlainTextConstruct(title));
             newEntry = service.insert(feedUrl, newEntry);

我认为这是一条非常古老的线索,但我只是在回答另一个问题时看到了它。我希望你现在已经解决了

如果没有,那么您的服务是否经过身份验证,您是否能够创建一个简单的文档,例如

             String title = "Doc Create Test";
             DocumentListEntry newEntry = new DocumentEntry();
             newEntry.setTitle(new PlainTextConstruct(title));
             newEntry = service.insert(feedUrl, newEntry);