FTP put problem

Highlighted
One Star

FTP put problem

Hello
I have a basic ftp upload job. Put all files from one directory to ftp server
but i am getting this error. The user has the permission to upload files (I can upload them trough filezila for example)
Exception in component tFTPPut_1
com.enterprisedt.net.ftp.ControlChannelIOException: Connection reset
at com.enterprisedt.net.ftp.FTPControlSocket.readLine(FTPControlSocket.java:1014)
at com.enterprisedt.net.ftp.FTPControlSocket.readReply(FTPControlSocket.java:1049)
at com.enterprisedt.net.ftp.FTPControlSocket.sendCommand(FTPControlSocket.java:973)
at com.enterprisedt.net.ftp.FTPControlSocket.createDataSocketPASV(FTPControlSocket.java:807)
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 drugo.upload_suplenc_0_1.upload_suplenc.tFTPPut_1Process(upload_suplenc.java:484)
at drugo.upload_suplenc_0_1.upload_suplenc.tFTPConnection_1Process(upload_suplenc.java:344)
at drugo.upload_suplenc_0_1.upload_suplenc.runJobInTOS(upload_suplenc.java:974)
at drugo.upload_suplenc_0_1.upload_suplenc.main(upload_suplenc.java:842)
any suggestions?
thank you
One Star

Re: FTP put problem

If I turn windows firewall off it works.
Which process do I have to allow so I can still have my windows firewall on??
Please I need this ASAP
thank you
Community Manager

Re: FTP put problem

Hi
If you are on Windows it is the Windows firewall that is blocking Java when it sees certain FTP commands being sent (PASV and PORT).
Normally, the Windows firewall prompts to add a newly installed program. But in this case it doesn't seem to happen.
To resolve the problem, go to Windows Firewall Settings, and in the Exceptions tab, choose "Add Program" to add java.exe by browsing to your installation of Java.
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: FTP put problem

I put all the instances of java and javaw on allowed list, and still i get the same error
Community Manager

Re: FTP put problem

hi
What's your JDK version? What's the connection model?
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: FTP put problem

java version "1.7.0_03"
Java(TM) SE Runtime Environment (build 1.7.0_03-b05)
Java HotSpot(TM) 64-Bit Server VM (build 22.1-b02, mixed mode)
Community Manager

Re: FTP put problem

Hi
Don't know you set the right path of java to Windows Firewall Settings, for me, it should be:
<JDK installation path>/jre/bin/javaw.exe
Below is the steps how to allow a program to communicate through Windows Firewall
http://windows.microsoft.com/en-US/windows-vista/Allow-a-program-to-communicate-through-Windows-Fire...
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business