When I run:
private void go() throws Exception {
DocsService client = new DocsService("appname");
client.setUserCredentials("user", "password");
DocumentListFeed feed = client.getFeed(new URL("
https://docs.google.com/feeds/default/private/full/"), DocumentListFeed.class);
}
I get this error response:
Exception in thread "main" com.google.gdata.util.InvalidEntryException: Invalid request URI
<errors xmlns='
http://schemas.google.com/g/2005'><error><domain>GData</domain><code>invalidRequestUri</code><internalReason>Invalid request URI</internalReason></error></errors>
at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:558)
at com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleGDataRequest.java:543)
at com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataRequest.java:536)
at com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java:515)
at com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest.java:515)
at com.google.gdata.client.Service.getFeed(Service.java:1053)
at com.google.gdata.client.Service.getFeed(Service.java:916)
at com.google.gdata.client.GoogleService.getFeed(GoogleService.java:631)
at com.google.gdata.client.Service.getFeed(Service.java:935)
Why is this? Even when I run the client demo, I get this exception.