Advertisement

05.21.2008 at 01:37PM PDT, ID: 23422420
[x]
Attachment Details

java URL ftp connection hangs

Asked by blackfrancis75 in Java Standard Edition

Hi,
I'm trying a really simple method for accessing a file from an FTP server:

URL url = new URL("ftp://user:password@domain.hopto.org/desktop.ini");
URLConnection urlc = url.openConnection();
InputStream in = urlc.getInputStream();

when I execute this, the program hangs at the last line (getInputStream) indefinitely.
Why would execution hang without throwing an exception?

Start Free Trial
[+][-]05.21.2008 at 03:01PM PDT, ID: 21619410

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.22.2008 at 07:30AM PDT, ID: 21624124

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.22.2008 at 04:27PM PDT, ID: 21628420

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Java Standard Edition
Sign Up Now!
Solution Provided By: mbodewes
Participating Experts: 1
Solution Grade: B
 
 
[+][-]05.30.2008 at 09:57AM PDT, ID: 21679470

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628