Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FtpTester Output
- ================
- To test the issue described in http://enterprisedt.com/questions/index.php/11407/ftpinputstream-close-hangs-until-socket-timeout?show=11428 this file lists the output of the FtpTester tool - edtFTPj debug logs enabled - in the following scenarios:
- 1. FtpTester Tool with edtFTPj 2.4.0 -> reproduces issue
- 2. FtpTester Tool with edtFTPj 2.5.0 -> issue fixed
- 1. FtpTester Tool with edtFTPj 2.4.0 -> reproduces issue
- -------------------------------------------------------------
- # /usr/was/was8.5/WebSphere/AppServer/java_1.7.1_64/jre/bin/java -jar ftp-tester-2.4.0.jar ftp://user:password@1.2.3.4/i_dont_exist EDTFTPJ
- [16/07/13 14:31:06.378 CEST] main FtpTester I FtpTester main FtpTester tool to test access to FTP servers with different Java FTP client implementations.
- [16/07/13 14:31:06.404 CEST] main FtpTester I FtpTester main FTP URL: [ftp://user:password@1.2.3.4/i_dont_exist]
- [16/07/13 14:31:06.404 CEST] main FtpTester I FtpTester main Java FTP Client: [EDTFTPJ]
- [16/07/13 14:31:06.411 CEST] main EdtFTPjClient I EdtFTPjClient <clinit> Set system properties for edtFTPj: edtftp.log.log4j=[true], edtftp.log.prefix=[com.enterprisedt.]
- [16/07/13 14:31:06.457 CEST] main FTPClient D com.enterprisedt.FTPClient invoke0 Class: com.enterprisedt.net.ftp.FTPClient
- Location: file:/export/home/cc40/jokroebe/ftp-tester-2.4.0.jar
- Version: 2.4.0
- Build timestamp: 24-Dec-2012 12:36:06 EST
- Java version: 1.7.0
- CLASSPATH: ftp-tester-2.4.0.jar
- OS name: AIX
- OS arch: ppc64
- OS version: 6.1
- [16/07/13 14:31:06.462 CEST] main FileTransferC D com.enterprisedt.FileTransferClient invoke0 Configured client
- [16/07/13 14:31:06.464 CEST] main FTPClient D com.enterprisedt.FTPClient invoke0 Connecting to /1.2.3.4:21
- [16/07/13 14:31:06.499 CEST] main FTPControlSoc D com.enterprisedt.FTPControlSocket invoke0 220 FTP Server EDI01LC20 ready.
- [16/07/13 14:31:06.500 CEST] main FileTransferC D com.enterprisedt.FileTransferClient invoke0 Client connected
- [16/07/13 14:31:06.501 CEST] main FileTransferC D com.enterprisedt.FileTransferClient invoke0 Logging in
- [16/07/13 14:31:06.501 CEST] main FTPControlSoc D com.enterprisedt.FTPControlSocket invoke0 ---> USER system
- [16/07/13 14:31:06.503 CEST] main FTPControlSoc D com.enterprisedt.FTPControlSocket invoke0 331 Password required for system
- [16/07/13 14:31:06.507 CEST] main FTPControlSoc D com.enterprisedt.FTPControlSocket invoke0 ---> PASS ********
- [16/07/13 14:31:06.551 CEST] main FTPControlSoc D com.enterprisedt.FTPControlSocket invoke0 230 User system logged in
- [16/07/13 14:31:06.551 CEST] main FileTransferC D com.enterprisedt.FileTransferClient invoke0 Logged in
- [16/07/13 14:31:06.552 CEST] main FTPControlSoc D com.enterprisedt.FTPControlSocket invoke0 ---> TYPE I
- [16/07/13 14:31:06.553 CEST] main FTPControlSoc D com.enterprisedt.FTPControlSocket invoke0 200 Type set to I
- [16/07/13 14:31:06.553 CEST] main FTPControlSoc D com.enterprisedt.FTPControlSocket invoke0 ---> PWD
- [16/07/13 14:31:06.558 CEST] main FTPControlSoc D com.enterprisedt.FTPControlSocket invoke0 257 "/home/system" is the current directory
- [16/07/13 14:31:06.559 CEST] main EdtFTPjClient I EdtFTPjClient get Successfully opened and connected FTP connection to [ftp://user:password@1.2.3.4/i_dont_exist], current directory is [/home/syste m]
- [16/07/13 14:31:06.559 CEST] main EdtFTPjClient I EdtFTPjClient get Downloading remote [/i_dont_exist] to local [/export/home/cc40/jokroebe/i_dont_exist]...
- [16/07/13 14:31:06.569 CEST] main FTPControlSoc D com.enterprisedt.FTPControlSocket invoke ListenOnAllInterfaces=true
- [16/07/13 14:31:06.572 CEST] main FTPControlSoc D com.enterprisedt.FTPControlSocket invoke ---> PORT 53,1,28,234,131,22
- [16/07/13 14:31:06.575 CEST] main FTPControlSoc D com.enterprisedt.FTPControlSocket invoke 200 PORT command successful
- [16/07/13 14:31:06.579 CEST] main FTPControlSoc D com.enterprisedt.FTPControlSocket invoke ---> RETR /i_dont_exist
- [16/07/13 14:31:06.581 CEST] main FTPControlSoc D com.enterprisedt.FTPControlSocket invoke 550 /i_dont_exist: No such file or directory
- [16/07/13 14:31:06.581 CEST] main FTPControlSoc I com.enterprisedt.FTPControlSocket invoke0 Expected reply codes = [125,150]
- [16/07/13 14:31:06.584 CEST] main FTPClient E com.enterprisedt.FTPClient invoke0 Caught and rethrowing exception in initGet()
- com.enterprisedt.net.ftp.FTPException: /i_dont_exist: No such file or directory
- at com.enterprisedt.net.ftp.FTPControlSocket.validateReply(FTPControlSocket.java:1235)
- at com.enterprisedt.net.ftp.FTPClient.initGet(FTPClient.java:3200)
- at com.enterprisedt.net.ftp.AbstractFTPInputStream.start(AbstractFTPInputStream.java:108)
- at com.enterprisedt.net.ftp.AbstractFTPInputStream.start(AbstractFTPInputStream.java:95)
- at com.enterprisedt.net.ftp.FTPBinaryInputStream.read(FTPBinaryInputStream.java:139)
- at com.enterprisedt.net.ftp.FTPInputStream.read(FTPInputStream.java:123)
- at java.io.InputStream.read(InputStream.java:114)
- at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:2146)
- at org.apache.commons.io.IOUtils.copy(IOUtils.java:2102)
- at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:2123)
- at org.apache.commons.io.IOUtils.copy(IOUtils.java:2078)
- at EdtFTPjClient.get(EdtFTPjClient.java:60)
- at FtpTester.main(FtpTester.java:55)
- [16/07/13 14:31:06.585 CEST] main FTPActiveData D com.enterprisedt.FTPActiveDataSocket invoke close() succeeded
- [16/07/13 14:31:06.586 CEST] main AbstractFTPIn D com.enterprisedt.AbstractFTPInputStream invoke Transferred 0 bytes from remote host
- [16/07/13 14:32:06.587 CEST] main FTPControlSoc E com.enterprisedt.FTPControlSocket invoke0 Read failed ('' read so far)
- [16/07/13 14:32:06.589 CEST] main FtpTester E FtpTester main java.lang.RuntimeException: java.io.IOException: /i_dont_exist: No such file or directory
- java.lang.RuntimeException: java.io.IOException: /i_dont_exist: No such file or directory
- at EdtFTPjClient.get(EdtFTPjClient.java:64)
- at FtpTester.main(FtpTester.java:55)
- Caused by: java.io.IOException: /i_dont_exist: No such file or directory
- at com.enterprisedt.net.ftp.AbstractFTPInputStream.start(AbstractFTPInputStream.java:117)
- at com.enterprisedt.net.ftp.AbstractFTPInputStream.start(AbstractFTPInputStream.java:95)
- at com.enterprisedt.net.ftp.FTPBinaryInputStream.read(FTPBinaryInputStream.java:139)
- at com.enterprisedt.net.ftp.FTPInputStream.read(FTPInputStream.java:123)
- at java.io.InputStream.read(InputStream.java:114)
- at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:2146)
- at org.apache.commons.io.IOUtils.copy(IOUtils.java:2102)
- at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:2123)
- at org.apache.commons.io.IOUtils.copy(IOUtils.java:2078)
- at EdtFTPjClient.get(EdtFTPjClient.java:60)
- ... 1 common frames omitted
- Suppressed: com.enterprisedt.net.ftp.ControlChannelIOException: Read timed out
- at com.enterprisedt.net.ftp.FTPControlSocket.readLine(FTPControlSocket.java:1053)
- at com.enterprisedt.net.ftp.FTPControlSocket.readReply(FTPControlSocket.java:1088)
- at com.enterprisedt.net.ftp.FTPClient.readReply(FTPClient.java:2197)
- at com.enterprisedt.net.ftp.AbstractFTPInputStream.close(AbstractFTPInputStream.java:162)
- at com.enterprisedt.net.ftp.FTPInputStream.close(FTPInputStream.java:135)
- at EdtFTPjClient.get(EdtFTPjClient.java:61)
- ... 1 common frames omitted
- [16/07/13 14:32:06.591 CEST] main FtpTester I FtpTester main Finished.
- 2. FtpTester Tool with edtFTPj 2.5.0 -> issue fixed
- -------------------------------------------------------------
- # /usr/was/was8.5/WebSphere/AppServer/java_1.7.1_64/jre/bin/java -jar ftp-tester-2.5.0.jar ftp://user:password@1.2.3.4/i_dont_exist EDTFTPJ
- [16/07/13 14:32:29.103 CEST] main FtpTester I FtpTester main FtpTester tool to test access to FTP servers with different Java FTP client implementations.
- [16/07/13 14:32:29.126 CEST] main FtpTester I FtpTester main FTP URL: [ftp://user:password@1.2.3.4/i_dont_exist]
- [16/07/13 14:32:29.126 CEST] main FtpTester I FtpTester main Java FTP Client: [EDTFTPJ]
- [16/07/13 14:32:29.131 CEST] main EdtFTPjClient I EdtFTPjClient <clinit> Set system properties for edtFTPj: edtftp.log.log4j=[true], edtftp.log.prefix=[com.enterprisedt.]
- [16/07/13 14:32:29.171 CEST] main FTPClient D com.enterprisedt.FTPClient invoke0 Class: com.enterprisedt.net.ftp.FTPClient
- Location: file:/export/home/cc40/jokroebe/ftp-tester-2.5.0.jar
- Version: 2.5.0
- Build timestamp: 6-Jul-2016 11:07:02 BST
- Java version: 1.7.0
- CLASSPATH: ftp-tester-2.5.0.jar
- OS name: AIX
- OS arch: ppc64
- OS version: 6.1
- [16/07/13 14:32:29.177 CEST] main FileTransferC D com.enterprisedt.FileTransferClient invoke0 Configured client
- [16/07/13 14:32:29.178 CEST] main FTPClient D com.enterprisedt.FTPClient invoke0 Connecting to /1.2.3.4:21
- [16/07/13 14:32:29.221 CEST] main FTPControlSoc D com.enterprisedt.FTPControlSocket invoke0 220 FTP Server EDI01LC20 ready.
- [16/07/13 14:32:29.223 CEST] main FileTransferC D com.enterprisedt.FileTransferClient invoke0 Client connected
- [16/07/13 14:32:29.224 CEST] main FileTransferC D com.enterprisedt.FileTransferClient invoke0 Logging in
- [16/07/13 14:32:29.224 CEST] main FTPControlSoc D com.enterprisedt.FTPControlSocket invoke0 ---> USER system
- [16/07/13 14:32:29.226 CEST] main FTPControlSoc D com.enterprisedt.FTPControlSocket invoke0 331 Password required for system
- [16/07/13 14:32:29.227 CEST] main FTPControlSoc D com.enterprisedt.FTPControlSocket invoke0 ---> PASS ********
- [16/07/13 14:32:29.281 CEST] main FTPControlSoc D com.enterprisedt.FTPControlSocket invoke0 230 User system logged in
- [16/07/13 14:32:29.282 CEST] main FileTransferC D com.enterprisedt.FileTransferClient invoke0 Logged in
- [16/07/13 14:32:29.283 CEST] main FTPControlSoc D com.enterprisedt.FTPControlSocket invoke0 ---> TYPE I
- [16/07/13 14:32:29.284 CEST] main FTPControlSoc D com.enterprisedt.FTPControlSocket invoke0 200 Type set to I
- [16/07/13 14:32:29.285 CEST] main FTPControlSoc D com.enterprisedt.FTPControlSocket invoke0 ---> PWD
- [16/07/13 14:32:29.290 CEST] main FTPControlSoc D com.enterprisedt.FTPControlSocket invoke0 257 "/home/system" is the current directory
- [16/07/13 14:32:29.291 CEST] main EdtFTPjClient I EdtFTPjClient get Successfully opened and connected FTP connection to [ftp://user:password@1.2.3.4/i_dont_exist], current directory is [/home/syste m]
- [16/07/13 14:32:29.292 CEST] main EdtFTPjClient I EdtFTPjClient get Downloading remote [/i_dont_exist] to local [/export/home/cc40/jokroebe/i_dont_exist]...
- [16/07/13 14:32:29.295 CEST] main FTPControlSoc D com.enterprisedt.FTPControlSocket invoke ---> SIZE /i_dont_exist
- [16/07/13 14:32:29.296 CEST] main FTPControlSoc D com.enterprisedt.FTPControlSocket invoke 550 /i_dont_exist: No such file or directory
- [16/07/13 14:32:29.298 CEST] main FtpTester E FtpTester main java.lang.RuntimeException: com.enterprisedt.net.ftp.FTPException: File /i_dont_exist not found.
- java.lang.RuntimeException: com.enterprisedt.net.ftp.FTPException: File /i_dont_exist not found.
- at EdtFTPjClient.get(EdtFTPjClient.java:64)
- at FtpTester.main(FtpTester.java:55)
- Caused by: com.enterprisedt.net.ftp.FTPException: File /i_dont_exist not found.
- at com.enterprisedt.net.ftp.FTPInputStream.<init>(FTPInputStream.java:90)
- at com.enterprisedt.net.ftp.FTPInputStream.<init>(FTPInputStream.java:74)
- at com.enterprisedt.net.ftp.FileTransferClient.downloadStream(FileTransferClient.java:814)
- at EdtFTPjClient.get(EdtFTPjClient.java:58)
- ... 1 common frames omitted
- [16/07/13 14:32:29.299 CEST] main FtpTester I FtpTester main Finished.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement