Hi, Chris,
To me that sounds like the sort of thing that might happen if:
- You changed JDK?
- You changed Operating System?
- You are using a different console/terminal?
I don't think it would have anything to do with Commons-Net, but I wouldn't want to stake
my life on that either. ;-)
So if you do this, you see nothing?
=================
System.out.print("Uploading file: " + convertSlashes(next) + "...");
System.out.flush();
=================
yours,
Julius
-----Original Message-----
From: Chris Bergstresser [mailto:chris@subtlety.com]
Sent: Thu 1/6/2005 8:12 PM
To: commons-user@jakarta.apache.org
Cc:
Subject: Strange System.out behavior
Hi all --
I just ported over my previous application to the Commons/Net FTP
library, and I'm seeing a strange bug. The following snippet used to work:
System.out.print("Uploading file: " + convertSlashes(next) + "...");
InputStream in = new FileInputStream(f);
ftp.storeFile(convertSlashes(next), in);
System.out.println("done");
But now nothing gets printed until the println. I even tried adding a
System.out.flush(), but no dice. Nothing's printed to the console without a
println().
Any ideas what's going on?
-- Chris
--
Internal Virus Database is out-of-date.
Checked by AVG Anti-Virus.
Version: 7.0.296 / Virus Database: 265.6.7 - Release Date: 12/30/2004
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
|