I actually found that this is true even using the low level API
directly. It seems like any https connections throw this error in the
dev environment with or without spring. It does work on the live
server.

I opened http://code.google.com/p/googleappengine/issues/detail?id=6363





On Nov 18, 9:41 am, Rick Mangi <r...@broadcastr.com> wrote:
> Hi all, I'm trying to do some simple fetching of rest services with
> RestTemplate. Everything seems to work in my unit tests, spring is
> configured to use java.net as the underlying HttpConnection client
> which according to the appengine docs is fine. When I try to run this
> in my development environment locally (Eclipse, App Engine SDK 1.5.5)
> I get the following error:
>
> FINEST: Publishing event in Root WebApplicationContext:
> ServletRequestHandledEvent: url=[/s/init]; client=[127.0.0.1];
> method=[GET]; servlet=[spring-handler]; session=[null]; user=[null];
> time=[7834ms]; status=[failed: java.lang.ClassCastException:
> com.google.appengine.repackaged.org.apache.http.message.BasicHttpRequest
> cannot be cast to
> com.google.appengine.repackaged.org.apache.http.client.methods.HttpUriRequest]
> Nov 17, 2011 8:50:32 PM com.google.apphosting.utils.jetty.JettyLogger
> warn
> WARNING: /s/init
> java.lang.ClassCastException:
> com.google.appengine.repackaged.org.apache.http.message.BasicHttpRequest
> cannot be cast to
> com.google.appengine.repackaged.org.apache.http.client.methods.HttpUriRequest
>         at com.google.appengine.api.urlfetch.dev.LocalURLFetchService
> $7.run(LocalURLFetchService.java:427)
>         at com.google.appengine.api.urlfetch.dev.LocalURLFetchService
> $7.run(LocalURLFetchService.java:409)
>
> Any thoughts?

-- 
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 google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to