Please ignore this. My fault (had created the wrong type of service object
:-().
-Patricia


  _____  

From: Google-Docs-Data-APIs@googlegroups.com
[mailto:google-docs-data-a...@googlegroups.com] On Behalf Of Patricia
Goldweic
Sent: Wednesday, July 01, 2009 10:25 AM
To: Google-Docs-Data-APIs@googlegroups.com
Subject: [Google-Docs-Data-APIs] Java exception when requesting
DocumentListFeed


Hi,
I wrote (java) code that retrieves all documents for a given user, using the
feed url:
http://docs.google.com/feeds/documents/private/full?xoauth_requestor_id=some
id
The code is something like this:
 
DocsService service = new DocsService("My app");
DocumentListFeed resultFeed = service.getFeed(new
URL("http://cos.google.com/feeds/documents/private/full?xoauth_requestor_id=
someid", DocumentListFeed.class);

This is producing the following exception:

java.lang.IllegalArgumentException: Service does not support media
        at
com.google.gdata.data.media.MediaFeed.setService(MediaFeed.java:54)
        at
com.google.gdata.client.Service.parseResponseData(Service.java:1883)
        at com.google.gdata.client.Service.getFeed(Service.java:1035)
        at com.google.gdata.client.Service.getFeed(Service.java:897)
        at
com.google.gdata.client.GoogleService.getFeed(GoogleService.java:631)
        at com.google.gdata.client.Service.getFeed(Service.java:916)

... This belongs to my app
        at
edu.northwestern.at.gint.data.gservices.GintServiceObject.getFeed(GintServic
eObject.java:222)
        at
edu.northwestern.at.gint.data.DocsDataRequest.process(DocsDataRequest.java:7
2)
        at
edu.northwestern.at.gint.servlets.GintShareRequestServlet.handlePostRequest(
GintShareRequestServlet.java:313)
        at
edu.northwestern.at.gint.servlets.GintShareRequestServlet.processPostRequest
(GintShareRequestServlet.java:190)
        at
edu.northwestern.at.gint.servlets.GintShareRequestServlet.doPost(GintShareRe
questServlet.java:169)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:290)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:206)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:233)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
        at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:525)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128
)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102
)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:109)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http
11Protocol.java:583)
        at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
        at java.lang.Thread.run(Thread.java:619)


Why is this happening? Is this a bug or a problem with my code? (I'm using
client libraries version 1.33).
-Patricia
 





--~--~---------~--~----~------------~-------~--~----~
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 Google-Docs-Data-APIs@googlegroups.com
To unsubscribe from this group, send email to 
google-docs-data-apis+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Docs-Data-APIs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to