Can you turn on debugging and see where that gets us? http://code.google.com/apis/gdata/articles/debugging_client_libs.html
<http://code.google.com/apis/gdata/articles/debugging_client_libs.html>Eric On Tue, Jun 23, 2009 at 4:23 AM, bhagya <[email protected]> wrote: > > Hi, > > I am trying to upload the document as below. The example is taken > from the latest java-guide. > Even when I execute the sample program (DocumentListDemo) I get the > same problem. > > The code for uploading the file is as below... > File file = new File(filepath); > DocumentListEntry newDocument = new DocumentListEntry(); > String mimeType = DocumentListEntry.MediaType.fromFileName > (file.getName()).getMimeType(); > newDocument.setFile(new File(filepath), mimeType); > // newDocument.setFile(new File(filepath)); > newDocument.setTitle(new PlainTextConstruct(title)); > > return client.insert(new URL("http://docs.google.com/feeds/ > documents/private/full/"), newDocument); > > The error I get is > Exception in thread "main" > com.google.gdata.util.ServiceException: Proxy Error ( The connection > was reset by a peer. ) > > I have given the proper proxy settings and validated the service using > setUserCredentials() method. I can read the documents list but if I > try to upload the file, I get the error. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Docs Data APIs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Docs-Data-APIs?hl=en -~----------~----~----~----~------~----~------~--~---
