aspose file tools*
The moose likes Other Open Source Projects and the fly likes Handeling SystemErr When using FTP Class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Handeling SystemErr When using FTP Class" Watch "Handeling SystemErr When using FTP Class" New topic
Author

Handeling SystemErr When using FTP Class

Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1391
I am using the finj FTP class. Every thing works great except I get SystemErr for every step the FTP process takes. Is there a way to turn the echo off?

Here is my class:

[code]

public void setftpConn(boolean lServer){

this.errorString = "Error";

FTPClient fConn = new FTPClient();

String password = "";
char pw[] = new char[ password.length() ];

for(int i = 0; i < password.length(); i++){
pw[i] = password.charAt( i );
}

try{
fConn.open("gvsvr27");
fConn.login("", pw);

fConn.setWorkingDirectory("PBLSI");

if(lServer){
fConn.putFile(new FileInputStream("//qgvas400/home/sde.pas"), "sde.pas");
}
else{
fConn.putFile(new FileInputStream("/home/sde.pas"), "sde.pas");
}

fConn.close();

this.errorString = "NoError";
}
catch(IOException ie){
System.out.println(ie);

}

}


[code]

This is the console output:

[7/30/11 18:00:10:327 CDT] 0000001a SystemErr R CTRL < 220 Microsoft FTP Service
[7/30/11 18:00:10:346 CDT] 0000001a SystemErr R CTRL > USER LabelPrint
[7/30/11 18:00:10:347 CDT] 0000001a SystemErr R CTRL < 331 Password required for LabelPrint.
[7/30/11 18:00:10:347 CDT] 0000001a SystemErr R CTRL > PASS
[7/30/11 18:00:10:348 CDT] 0000001a SystemErr R CTRL < 230 User logged in.
[7/30/11 18:00:10:348 CDT] 0000001a SystemErr R CTRL > TYPE I
[7/30/11 18:00:10:348 CDT] 0000001a SystemErr R CTRL < 200 Type set to I.
[7/30/11 18:00:10:348 CDT] 0000001a SystemErr R CTRL > CWD PBLSI
[7/30/11 18:00:10:348 CDT] 0000001a SystemErr R CTRL < 250 CWD command successful.
[7/30/11 18:00:10:365 CDT] 0000001a SystemErr R CTRL > PORT 11,44,16,15,185,193
[7/30/11 18:00:10:366 CDT] 0000001a SystemErr R CTRL < 200 PORT command successful.
[7/30/11 18:00:10:368 CDT] 0000001a SystemErr R CTRL > STOR sde.pas
[7/30/11 18:00:10:368 CDT] 0000001a SystemErr R CTRL < 150 Opening BINARY mode data connection for sde.pas.
[7/30/11 18:00:10:369 CDT] 0000001a SystemErr R DATA > 509 bytes
[7/30/11 18:00:10:562 CDT] 0000001a SystemErr R CTRL < 226 Transfer complete.
[7/30/11 18:00:10:562 CDT] 0000001a SystemErr R CTRL > QUIT
[7/30/11 18:00:10:563 CDT] 0000001a SystemErr R CTRL < 221
Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1391
Anyone help on this?
Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1391
Got it figured out.

Used the isVerbose property.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Handeling SystemErr When using FTP Class
 
Similar Threads
Exception while starting server 6.0 in RAD
can we make response from a child thread of a servlet?
Exception while starting RAD Server connecting to Db2
Test Connection failed ( IBM Websphere 5.1 Express )
Portal Server v6.0 Initialization Problem