Toby, there's one obstacle though, the GAE URLFetch timeout doesn't
play nicely with the GData API. I've found that timeouts happen fairly
frequently at peak hours, depending on the GData system you're
accessing.

There has been an issue posted to the issue tracker about this, but
it's indicated that a fix isn't planned - personally i don't think
doubling the timeout interval would help much either. In the future
would it be possible for developers to allow certain scripts to go
over some of the imposed restrictions, such as the URLFetch timeout
interval, at whatever cost is appropriate? Without this capability,
server side API calls really suffer.

BTW, Guillaume, if you're using GWT on your project consider using the
gwt-gdata (http://code.google.com/p/gwt-gdata/) library, it's not as
complete as the Java library, as far as systems, but it can help
reduce AppEngine load since the requests go directly to GData, from
the client.

Bobby

On Nov 30, 2:15 pm, Guillaume Laforge <[email protected]> wrote:
> Ah excellent, I missed that information and had not seen that section
> in the knowledge base.
> Thanks a lot, Toby!
>
>
>
> On Mon, Nov 30, 2009 at 19:54, Toby Reyelts <[email protected]> wrote:
> > Gdata works fine in the Java runtime but, but you need to disable its cookie
> > handler.
>
> > On Mon, Nov 30, 2009 at 1:00 PM, Guillaume Laforge <[email protected]>
> > wrote:
>
> >> Hi all,
>
> >> I was wondering whether anyone had succeeded using the GData APIs on
> >> their GAE applications?
> >> I wanted to access the Picasa Web Albums, using the Java libraries of
> >> GData.
> >> But it seems it's not possible, as I'm getting some errors (locally, I
> >> have not tried deployed in the cloud):
>
> >> ava.security.AccessControlException: access denied
> >> (java.net.NetPermission getCookieHandler)
> >>        at
> >> java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
> >>        at
> >> java.security.AccessController.checkPermission(AccessController.java:427)
> >>        at
> >> java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
> >>        at
> >> com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkPermission(DevAppServerFactory.java:151)
> >>        at java.net.CookieHandler.getDefault(CookieHandler.java:58)
> >>        at
> >> com.google.gdata.client.http.GoogleGDataRequest$GoogleCookieHandler.<init>(GoogleGDataRequest.java:316)
> >>        at
> >> com.google.gdata.client.http.GoogleGDataRequest$GoogleCookieHandler.<init>(GoogleGDataRequest.java:305)
> >>        at
> >> com.google.gdata.client.http.GoogleGDataRequest.<clinit>(GoogleGDataRequest.java:408)
> >>        at
> >> com.google.gdata.client.http.GoogleGDataRequest$Factory.createRequest(GoogleGDataRequest.java:73)
> >>        at
> >> com.google.gdata.client.http.HttpGDataRequest$Factory.getRequest(HttpGDataRequest.java:162)
> >>        at com.google.gdata.client.Service.createRequest(Service.java:697)
> >>        at
> >> com.google.gdata.client.GoogleService.createRequest(GoogleService.java:525)
> >>        at
> >> com.google.gdata.client.Service.createFeedRequest(Service.java:1074)
> >>        at com.google.gdata.client.Service.getFeed(Service.java:915)
> >>        at
> >> com.google.gdata.client.GoogleService.getFeed(GoogleService.java:631)
> >>        at com.google.gdata.client.Service.getFeed(Service.java:935)
>
> >> I guess the GData API is not GAE-compliant?
> >> Am I correct?
>
> >> --
> >> Guillaume Laforge
> >> Groovy Project Manager
> >> Head of Groovy Development at SpringSource
> >>http://www.springsource.com/g2one
>
> >> --
>
> >> You received this message because you are subscribed to the Google Groups
> >> "Google App Engine for Java" 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-appengine-java?hl=en.
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine for Java" 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-appengine-java?hl=en.
>
> --
> Guillaume Laforge
> Groovy Project Manager
> Head of Groovy Development at SpringSourcehttp://www.springsource.com/g2one

--

You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" 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-appengine-java?hl=en.


Reply via email to