One Star

[resolved] tFTPPut Error

Kindly share your ideas if you have encountered the problem below.
Exception in component tFTPPut_1
java.net.ConnectException: Connection timed out: connect
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at com.enterprisedt.util.proxy.PlainSocket.createPlainSocket(PlainSocket.java:83)
at com.enterprisedt.net.ftp.FTPControlSocket.newPassiveDataSocket(FTPControlSocket.java:931)
at com.enterprisedt.net.ftp.FTPControlSocket.createDataSocketPASV(FTPControlSocket.java:838)
at com.enterprisedt.net.ftp.FTPControlSocket.createDataSocket(FTPControlSocket.java:563)
at com.enterprisedt.net.ftp.FTPClient.setupDataSocket(FTPClient.java:2561)
at com.enterprisedt.net.ftp.FTPClient.dir(FTPClient.java:3468)
at com.enterprisedt.net.ftp.FTPClient.dirDetails(FTPClient.java:3424)
at out_pgp.ftp_child17022015_0_1.FTP_Child17022015.tFTPPut_1Process(FTP_Child17022015.java:874)
at out_pgp.ftp_child17022015_0_1.FTP_Child17022015.tFTPConnection_1Process(FTP_Child17022015.java:731)
at out_pgp.ftp_child17022015_0_1.FTP_Child17022015.tFileExist_1Process(FTP_Child17022015.java:617)
at out_pgp.ftp_child17022015_0_1.FTP_Child17022015.runJobInTOS(FTP_Child17022015.java:3159)
at out_pgp.ftp_child17022015_0_1.FTP_Child17022015.runJob(FTP_Child17022015.java:2963)
at out_pgp.ftp_parent_0_1.FTP_Parent.tOracleInput_2Process(FTP_Parent.java:4440)
at out_pgp.ftp_parent_0_1.FTP_Parent.runJobInTOS(FTP_Parent.java:6732)
at out_pgp.ftp_parent_0_1.FTP_Parent.main(FTP_Parent.java:6569)
Exception in component tRunJob_1
java.lang.RuntimeException: Child job running failed
at out_pgp.ftp_parent_0_1.FTP_Parent.tOracleInput_2Process(FTP_Parent.java:4462)
at out_pgp.ftp_parent_0_1.FTP_Parent.runJobInTOS(FTP_Parent.java:6732)
at out_pgp.ftp_parent_0_1.FTP_Parent.main(FTP_Parent.java:6569)
Your response is highly appreciated.
1 ACCEPTED SOLUTION

Accepted Solutions
One Star

Re: [resolved] tFTPPut Error

This is now working. Thank you for your time.
I resolved this issue when I changed the Connection Mode of the tFTPConnection from Passive to Active.
4 REPLIES
Seventeen Stars

Re: [resolved] tFTPPut Error

The host or port you have set is wrong. This exception occurs if no TCP connection can be established.
Are you sure about the host name or IP address and are you sure about the port on which the FTP server is running?
One Star

Re: [resolved] tFTPPut Error

Thank you for the answer..
Yes, the IP address I used is working. I checked it by typing ping ip_address in the cmd command.
Also I am using WinSCP to connect to the Host that's why I am sure it is correct.
What should be the other reason why I am encountering this error?..
Seventeen Stars

Re: [resolved] tFTPPut Error

You have missed to mention the port. I would not ping the server I would use e.g. a real FTP client to check the connection or simply you check it with telnet:
# telnet your_host your_ftp_port
If you can establish a connection -> I would be surprised.
One Star

Re: [resolved] tFTPPut Error

This is now working. Thank you for your time.
I resolved this issue when I changed the Connection Mode of the tFTPConnection from Passive to Active.