-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
What steps will reproduce the problem?
1.Jigg jigg=new Jigg("http://code.google.com/p/jigg/");
User user=jigg.getUser("some user");
2.
3.
What is the expected output? What do you see instead?
The connection blocks. I've debug it and it blocks at this line:
factory.newSAXParser().parse(url.openStream(), handler); on
DefaultHttpClient.java
What version of the product are you using? On what operating system?
jigg-0.5.jar, Tested on Ubuntu 8.10,Windows XP
Please provide any additional information below.
It's quite strange. I've tested on both Ubuntu and Windows. Also, my own
code blocks to when trying to connect to digg:
String
surl="http://services.digg.com/user/someuser/friends?appkey=http%3A%2F%2Fapidoc.
digg.com";
//System.out.println("params="+params);
URL url=new URL(surl);
URLConnection conn=url.openConnection();
conn.setDoOutput(true);
//blocks here
reader=new BufferedReader(new InputStreamReader(conn.getInputStream()));
After some time(I didn't count how many minutes) I get a:
java.net.SocketException: Connection reset
However, I am able to use Digg Api directly,using :
wget
http://services.digg.com/user/some_user/friends?appkey=http%3A%2F%2Fapidoc.digg.
com
-O digg.xml
I'm totaly lost here,why the connection doesn't work from java.
Original issue reported on code.google.com by [email protected] on 2 Nov 2008 at 5:29