Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
5.7k views
in Java FTP by (200 points)
I am running 2.0.1 on windows XP and windows server 2003. When I perform the following code,
I get
com.enterprisedt.net.ftp.FTPException: C:/Documents and Settings/All Users/Documents/testtmp/bobTest2.wmv: 3670019.

What does this mean?

Bob Hastings

try {
FTPClient ftp = FTPUtils.connect( host,
username, password );
ftp.setType( FTPTransferType.BINARY );

if ( ftp.exists( sourceName ) ) {
ftp.get( sourceName, targetName );
l4j.debug ( "FTP copy file: " + sourceName +
" to file: " + targetName );
}

} catch ( Exception e ) {
throw new DeviceException("Caught exception copying file: " +
sourceName +
". Exception: " + e, e );
}

3 Answers

0 votes
by (200 points)
DIR: C:\Documents and Settings\All Users\Documents\testtmp
Exists: true
Can write: true
DEBUG [FTPClient] 15 Aug 2008 10:37:14.364 : Class: com.enterprisedt.net.ftp.FTPClient
Version: 2.0.1
Build timestamp: 9-Jan-2008 14:00:06 EST
Java version: 1.4.2_09

[snip]

OS name: Windows XP
OS arch: x86
OS version: 5.1

DEBUG [FTPClient] 15 Aug 2008 10:37:14.364 : Connecting to /172.16.1.145:21
DEBUG [SocketUtils] 15 Aug 2008 10:37:14.410 : Invoking connect with timeout=60000
DEBUG [SocketUtils] 15 Aug 2008 10:37:14.410 : Connected successfully
DEBUG [FTPControlSocket] 15 Aug 2008 10:37:14.426 : 220 amsVBrick FTP server (VxWorks 6.4) ready.
DEBUG [FTPControlSocket] 15 Aug 2008 10:37:14.426 : ---> USER admin
DEBUG [FTPControlSocket] 15 Aug 2008 10:37:14.426 : 331 Password required for admin.
DEBUG [FTPControlSocket] 15 Aug 2008 10:37:14.426 : ---> PASS ********
DEBUG [FTPControlSocket] 15 Aug 2008 10:37:14.442 : 230 User admin logged in.
DEBUG [FTPControlSocket] 15 Aug 2008 10:37:14.442 : ---> TYPE I
DEBUG [FTPControlSocket] 15 Aug 2008 10:37:14.442 : 200 Type set to I.
DEBUG [FTPControlSocket] 15 Aug 2008 10:37:14.457 : ---> TYPE I
DEBUG [FTPControlSocket] 15 Aug 2008 10:37:14.457 : 200 Type set to I.
DEBUG [FTPControlSocket] 15 Aug 2008 10:37:14.457 : ---> SIZE D:bobTest2_10144.wmv
DEBUG [FTPControlSocket] 15 Aug 2008 10:37:14.473 : 213 33838914
DEBUG [FTPControlSocket] 15 Aug 2008 10:37:14.488 : ListenOnAllInterfaces=true
DEBUG [FTPControlSocket] 15 Aug 2008 10:37:14.488 : ---> PORT 172,16,1,158,9,57
DEBUG [FTPControlSocket] 15 Aug 2008 10:37:14.504 : 200 PORT command successful.
DEBUG [FTPControlSocket] 15 Aug 2008 10:37:14.504 : ---> RETR C:/Documents and Settings/All Users/Documents/testtmp/bobTest2.wmv
DEBUG [FTPControlSocket] 15 Aug 2008 10:37:14.551 : 550 C:/Documents and Settings/All Users/Documents/testtmp/bobTest2.wmv: 3670019.
INFO [FTPControlSocket] 15 Aug 2008 10:37:14.551 : Expected reply codes = [125,150]
ERROR [FTPClient] 15 Aug 2008 10:37:14.551 : Caught and rethrowing exception in initGet() : C:/Documents and Settings/All Users/Documents/testtmp/bobTest2.wmv: 3670019.
com.enterprisedt.net.ftp.FTPException: C:/Documents and Settings/All Users/Documents/testtmp/bobTest2.wmv: 3670019.
at com.enterprisedt.net.ftp.FTPControlSocket.validateReply(FTPControlSocket.java:974)
at com.enterprisedt.net.ftp.FTPClient.initGet(FTPClient.java:2554)
at com.enterprisedt.net.ftp.FTPClient.getData(FTPClient.java:2600)
at com.enterprisedt.net.ftp.FTPClient.get(FTPClient.java:2448)
at com.ancept.ams.devices.VBrickBox.copyFile(VBrickBox.java:227)
at com.ancept.ams.devices.samples.VBrickCopyFile.main(VBrickCopyFile.java:38)


com.enterprisedt.net.ftp.FTPException: C:/Documents and Settings/All Users/Documents/testtmp/bobTest2.wmv: 3670019.
at com.enterprisedt.net.ftp.FTPControlSocket.validateReply(FTPControlSocket.java:974)
at com.enterprisedt.net.ftp.FTPClient.initGet(FTPClient.java:2554)
at com.enterprisedt.net.ftp.FTPClient.getData(FTPClient.java:2600)
at com.enterprisedt.net.ftp.FTPClient.get(FTPClient.java:2448)
at com.ancept.ams.devices.VBrickBox.copyFile(VBrickBox.java:227)
at com.ancept.ams.devices.samples.VBrickCopyFile.main(VBrickCopyFile.java:38)
com.ancept.ams.model.exceptions.DeviceException: Caught exception copying file: D:bobTest2_10144.wmv. Exception: C:/Documents and Settings/All Users/Documents/testtmp/bobTest2.wmv: 3670019. Replycode: 550
DEBUG [FTPActiveDataSocket] 15 Aug 2008 10:37:14.551 : close() succeeded
at com.ancept.ams.devices.VBrickBox.copyFile(VBrickBox.java:233)
at com.ancept.ams.devices.samples.VBrickCopyFile.main(VBrickCopyFile.java:38)
Caused by: com.enterprisedt.net.ftp.FTPException: C:/Documents and Settings/All Users/Documents/testtmp/bobTest2.wmv: 3670019.
at com.enterprisedt.net.ftp.FTPControlSocket.validateReply(FTPControlSocket.java:974)
at com.enterprisedt.net.ftp.FTPClient.initGet(FTPClient.java:2554)
at com.enterprisedt.net.ftp.FTPClient.getData(FTPClient.java:2600)
at com.enterprisedt.net.ftp.FTPClient.get(FTPClient.java:2448)
at com.ancept.ams.devices.VBrickBox.copyFile(VBrickBox.java:227)
... 1 more
0 votes
by (200 points)
Upgrade worked.
0 votes
by (162k points)
Thanks for following up.

Categories

...