UnknownHostException while redirecting queries to google and getting results in JSon object

Posted by shilpa on Stack Overflow See other posts from Stack Overflow or by shilpa
Published on 2009-04-01T02:50:59Z Indexed on 2010/03/27 5:23 UTC
Read the original article Hit count: 340

Filed under:
|
Loading classifier from D:\PROJECT\classifiers\NERDemo\classifiers\ner-eng-ie.crf-3-all2008.ser.gz ... done [2.0 sec].
Original Query was riot in India.
Parsing Queries and expanding tokens from the Ontologies..
{locations=[India], events=[riot]}
Search query is null
Something went wrong...

java.net.UnknownHostException: ajax.googleapis.com
 at java.net.PlainSocketImpl.connect(Unknown Source)
 at java.net.SocksSocketImpl.connect(Unknown Source)
 at java.net.Socket.connect(Unknown Source)
 at java.net.Socket.connect(Unknown Source)
 at sun.net.NetworkClient.doConnect(Unknown Source)
 at sun.net.www.http.HttpClient.openServer(Unknown Source)
 at sun.net.www.http.HttpClient.openServer(Unknown Source)
 at sun.net.www.http.HttpClient.<init>(Unknown Source)
 at sun.net.www.http.HttpClient.New(Unknown Source)
 at sun.net.www.http.HttpClient.New(Unknown Source)
 at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
 at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
 at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
 at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
 at org.girs2.SearchHandler.makeQuery(SearchHandler.java:35)
 at org.girs2.GIRS.search(GIRS.java:37)
 at org.girs2.GIRS.main(GIRS.java:62)
Exception in thread "main" java.lang.NullPointerException
 at org.girs2.GIRS.search(GIRS.java:44)
 at org.girs2.GIRS.main(GIRS.java:62)

© Stack Overflow or respective owner

Related posts about java

Related posts about networking