获取java.lang.RuntimeException:上载文档时无法完成HTTP请求
我尝试使用com.google.gdata.client.docs.DocsService上载文档时出现超时错误 以下是我正在使用的代码:获取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
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);