palaniyappanBala / google-api-translate-java

Automatically exported from code.google.com/p/google-api-translate-java
0 stars 0 forks source link

Error retrieving translation #81

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

java.lang.Exception: [google-api-translate-java] Error retrieving translation.
        at com.google.api.GoogleAPI.retrieveJSON(GoogleAPI.java:123)
        at com.google.api.translate.Translate.execute(Translate.java:69)
        at lang.main(lang.java:14)
Caused by: java.net.UnknownHostException: ajax.googleapis.com
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
        at java.net.Socket.connect(Socket.java:519)
        at java.net.Socket.connect(Socket.java:469)
        at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
        at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
        at sun.net.www.http.HttpClient.New(HttpClient.java:306)
        at sun.net.www.http.HttpClient.New(HttpClient.java:323)
        at
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.j
ava:837)
        at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:
778)
        at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:703)
        at
sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.ja
va:881)
        at com.google.api.GoogleAPI.retrieveJSON(GoogleAPI.java:107)
        ... 2 more
BUILD SUCCESSFUL (total time: 6 seconds)

Original issue reported on code.google.com by cute.sri...@gmail.com on 19 Nov 2009 at 9:07

Attachments:

GoogleCodeExporter commented 9 years ago
It looks as though your computer is unable to resolve the domain name for 
ajax.googleapis.com ?

That's specific to your machine and outside of the library so I'm unable to fix 
it.

Thanks.

Original comment by rich.mid...@gmail.com on 20 Nov 2009 at 8:18