I am trying to open a connection to the following service :
http://translate.thoughtclicks.com/translateService/german/good
morning which is definitely taking less then 5 seconds but i am still
getting this exception any clue on this folks.

My code to open the url connection is as follows.

            URL url = new URL(THIS_IS_THE_URL_MENTIONED_ABOVE);
            //make connection, use post mode, and send query
            URLConnection urlc = url.openConnection();
            urlc.setDoOutput(true);
            //retrieve result
            BufferedReader br = new BufferedReader(new
InputStreamReader(urlc.getInputStream()));

Any Clues on this folks ?

Thanks,
Rahul

On Mar 17, 12:27 pm, Rahul <[email protected]> wrote:
> Did you find the solution for this as i am having the problem ?
> Any help appreciated.
>
> Thanks,
> Rahul
>
> On Mar 16, 10:31 am, dominity <[email protected]> wrote:
>
>
>
> > Hi, guys.
>
> > When my application trying to put user credentials into spreadsheet
> > service, I've got this exception:
>
> > com.google.gdata.util.AuthenticationException: Error connecting with
> > login URI
> >         at
> > com.google.gdata.client.GoogleAuthTokenFactory.getAuthToken(GoogleAuthToken 
> > Factory.java:
> > 479)
> >         at
> > com.google.gdata.client.GoogleAuthTokenFactory.setUserCredentials(GoogleAut 
> > hTokenFactory.java:
> > 336)
> >         at
> > com.google.gdata.client.GoogleService.setUserCredentials(GoogleService.java 
> > :
> > 362)
> >         at
> > com.google.gdata.client.GoogleService.setUserCredentials(GoogleService.java 
> > :
> > 317)
> >         at
> > com.google.gdata.client.GoogleService.setUserCredentials(GoogleService.java 
> > :
> > 301)
> > Caused by: java.io.IOException: Could not fetch 
> > URL:https://www.google.com/accounts/ClientLogin
> >         at
> > com.google.appengine.api.urlfetch.URLFetchServiceImpl.convertApplicationExc 
> > eption(URLFetchServiceImpl.java:
> > 106)
> >         at
> > com.google.appengine.api.urlfetch.URLFetchServiceImpl.fetch(URLFetchService 
> > Impl.java:
> > 39)
> >         at
> > com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler
> > $Connection.fetchResponse(URLFetchServiceStreamHandler.java:404)
> >         at
> > com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler
> > $Connection.getInputStream(URLFetchServiceStreamHandler.java:283)
> >         at
> > com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler
> > $Connection.getResponseCode(URLFetchServiceStreamHandler.java:136)
> >         at
> > com.google.gdata.client.GoogleAuthTokenFactory.makePostRequest(GoogleAuthTo 
> > kenFactory.java:
> > 550)
> >         at
> > com.google.gdata.client.GoogleAuthTokenFactory.getAuthToken(GoogleAuthToken 
> > Factory.java:
> > 477)
>
> > I'm using Eclipse Plug-In and GAE SDK v1.3.1. Also, I was trying my
> > code with version 1.3.0 and 1.2.9. And I can tell you that this
> > happens only with development server, error disappears on production
> > server. That's point - I can't even do any debugging stuff. So, could
> > you give me any feedback on this issue?
>
> > Best regards, Alexander.

-- 
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