Discuss (FTP) and (SFTP, FTPS and SCP), our Java file transfer clients.
no avatar
User

Olaf

Posts

3

Joined

Fri Aug 05, 2011 5:13 pm

Problem with edtFTPj/PRO and Java 7 (Connection reset)

by Olaf » Fri Aug 05, 2011 5:42 pm

Hello,

I think I have found a problem with edtFTPj/PRO and Java 7. The following test-code runs well under Java 6, but crash with Java 7:

<code>
ProFTPClient ftp = null;
Logger log = Logger.getLogger(CUtility.class);
Logger.setLevel(Level.ALL);

ftp = new ProFTPClient();
ftp.setRemoteHost(strHost);
ftp.connect();

FTPMessageCollector listener = new FTPMessageCollector();
ftp.setMessageListener(listener);

log.debug("Logging in");
ftp.login(strUser, strPass);

log.debug("Setting up passive");
ftp.setConnectMode(FTPConnectMode.PASV);

log.debug("ASCII transfers");
ftp.setType(FTPTransferType.ASCII);

log.debug("change Directory");
ftp.chdir(strPath);

// get directory and print it to console
log.debug("Directory (*.*):");

String[] files = ftp.dir("*.*", false);
for (int i = 0; i < files.length; i++)
{
log.debug(files[i]);
}

log.debug("Quitting client");
ftp.quit();
</code>


The command dir() throws the following exception:
com.enterprisedt.net.ftp.ControlChannelIOException: Connection reset
at com.enterprisedt.net.ftp.FTPControlSocket.e(FTPControlSocket.java:1041)
at com.enterprisedt.net.ftp.FTPControlSocket.b(FTPControlSocket.java:1076)
at com.enterprisedt.net.ftp.FTPControlSocket.sendCommand(FTPControlSocket.java:1000)
at com.enterprisedt.net.ftp.FTPControlSocket.createDataSocketPASV(FTPControlSocket.java:830)
at com.enterprisedt.net.ftp.pro.ProFTPControlSocket.createDataSocketPASV(ProFTPControlSocket.java:156)
at com.enterprisedt.net.ftp.FTPControlSocket.a(FTPControlSocket.java:586)
at com.enterprisedt.net.ftp.FTPClient.setupDataSocket(FTPClient.java:2646)
at com.enterprisedt.net.ftp.FTPClient.a(FTPClient.java:3662)
at com.enterprisedt.net.ftp.FTPClient.dir(FTPClient.java:3754)
at com.enterprisedt.net.ftp.FTPClient.dir(FTPClient.java:3634)
?

Maybe someone can take a look at this Problem? Thanks!

Olaf
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: Problem with edtFTPj/PRO and Java 7

by support2 » Sat Aug 06, 2011 7:52 am

Hi

Can you please enable logging at the ALL level and email support@enterprisedt.com with the *zipped* log file?

thanks
no avatar
User

Olaf

Posts

3

Joined

Fri Aug 05, 2011 5:13 pm

by Olaf » Mon Aug 08, 2011 4:40 pm

Hi Bruce,

I have send the log file.

greetings and thanks for your help!

Olaf
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

by support2 » Tue Aug 09, 2011 11:26 am

We've resolved this problem. If you are on Windows it is the Windows firewall that is blocking Java 7 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 - we aren't sure why.

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 7.
no avatar
User

Olaf

Posts

3

Joined

Fri Aug 05, 2011 5:13 pm

by Olaf » Tue Aug 09, 2011 4:42 pm

no avatar
User

EDT Support

Posts

905

Joined

Mon Apr 26, 2004 3:03 pm

by EDT Support » Thu Aug 11, 2011 12:33 pm


Who is online

Users browsing this forum: No registered users and 18 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron