aspose file tools
The moose likes Sockets and Internet Protocols and the fly likes connection exception... Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "connection exception..." Watch "connection exception..." New topic
Author

connection exception...

mustang india
Ranch Hand

Joined: Feb 05, 2002
Posts: 60
Hi,
I am trying to get connected to a particular URL and download a file.
The code I am using is
url = new URL(_strUrl);
System.out.println("got connection");
System.setProperty("http.proxySet","true");
System.setProperty("http.proxyHost","167.56.256.240");
System.setProperty("http.proxyPort","8080");
BufferedReader in = new BufferedReader(
new InputStreamReader(
url.openStream()));
String line = "";
while((line = in.readLine()) != null) {
System.out.println(line);
}
in.close();
I get a connection exception stating that ther is a time-out. I am behind a fire wall.
Can anybody pl suggest what is the problem.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: connection exception...
 
Similar Threads
Https url connection ArrayIndeoutofBounds Exception java
ArrayIndexOutOfBoundsException
HttpsURLConnection - Problem in SSL Handshaking
HttpsURLConnection - Problem in SSL Handshaking
useSystemProxies breaks sockets?