2011-03-17 4 views
2
여기

이입니다 com.google.gdata.client.docs.DocsService얻기 java.lang.RuntimeException가 : 문서

를 사용하여 문서를 업로드하려고하는 동안 시간 초과 오류를 얻고있다

업로드하는 동안 HTTP 요청을 완료 할 수 없습니다 코드 내가 사용하고 있습니다 :

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. 

시간 제한을 가져 오는 동안 : 나는 일식에 응용 프로그램 엔진 SDK를 사용하여 디버그 모드에서 응용 프로그램을 실행하고 https://docs.google.com/feeds/default/private/full/

.

답변

0

나는 아주 오래된 스레드라고 생각하지만, 다른 질문에 답하는 동안 그것을 보았다. 나는 당신이 지금까지 그것을 해결했기를 바랍니다.

그렇다면 서비스가 인증되었으며 간단한 문서를 만들 수 있습니까? 예 :

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