Implicit SSL/TLS FTPS support in Talend 6.2.1

Five Stars

Implicit SSL/TLS FTPS support in Talend 6.2.1

Hi guys,

 

I am using tFTPConnection component in Talend 6.2.1

 

When I enable FTPS Support (Security Mode Implicit), I get an error 'com.enterprisedt cannot be resolved to a type'? What to I need to to resolve this? Will it then work on tFTPFileList and tFTPGet components?

 

Also, can I put empty Keystore File and Password?

 

Cheers.

 

Five Stars

Re: Implicit SSL/TLS FTPS support in Talend 6.2.1

Just an update, looks like the error happens on tFTPFileList:

    com.enterprisedt.net.ftp.FTPClient ftp_tFTPFileList_2

 

 

Twelve Stars

Re: Implicit SSL/TLS FTPS support in Talend 6.2.1

Can you show FTP component configuration?
Manohar B
Five Stars

Re: Implicit SSL/TLS FTPS support in Talend 6.2.1

Here are the tFTPConnection and tFTPFileList component settings:

Screen Shot 2018-02-21 at 1.47.29 pm.pngScreen Shot 2018-02-21 at 1.48.42 pm.png

Thanks in advance!

Twelve Stars

Re: Implicit SSL/TLS FTPS support in Talend 6.2.1

you need to specify  filemask

Manohar B
Five Stars

Re: Implicit SSL/TLS FTPS support in Talend 6.2.1

It does not build even if I put a filemask or not. Here is what the code looks like:

Screen Shot 2018-02-21 at 3.51.48 pm.png

Seven Stars JGM
Seven Stars

Re: Implicit SSL/TLS FTPS support in Talend 6.2.1

are these the first errors in the program? it looks like the enterprisedt library isnt loaded, but errors like this can often be caused by syntax errors in components. if you find the first error, that can point you at which component is missing a double quote Smiley Tongue
Twelve Stars

Re: Implicit SSL/TLS FTPS support in Talend 6.2.1

can you enable SFTP Support insted of FTP Support.

Manohar B
Five Stars

Re: Implicit SSL/TLS FTPS support in Talend 6.2.1

Those are the only errors showing up.

If I just use FTP, this is the generated code:

 

com.enterprisedt.net.ftp.FTPClient ftp_tFTPConnection_1 = new com.enterprisedt.net.ftp.FTPClient();
...
com.enterprisedt.net.ftp.FTPClient ftp_tFTPFileList_1 = null;

ftp_tFTPFileList_1 = (com.enterprisedt.net.ftp.FTPClient) globalMap
		.get("conn_tFTPConnection_1");

But if I use FTPS Support in tFTPConnection, this is the generated code:

 

 

it.sauronsoftware.ftp4j.FTPClient ftp_tFTPConnection_1 = null;
...
ftp_tFTPConnection_1 = new it.sauronsoftware.ftp4j.FTPClient();

com.enterprisedt.net.ftp.FTPClient ftp_tFTPFileList_2 = null;

ftp_tFTPFileList_2 = (com.enterprisedt.net.ftp.FTPClient) globalMap
		.get("conn_tFTPConnection_1");

So it looks like tFTPFileList is not being casted to use the 'it.sauronsoftware.ftp4j.FTPClient'

 

Five Stars

Re: Implicit SSL/TLS FTPS support in Talend 6.2.1

Unfortunately, I am not able to use SFTP because it is not supported by the server.

Five Stars

Re: Implicit SSL/TLS FTPS support in Talend 6.2.1

Just an update, I am now just using tFTPGet only with FTPS Support.

I got it somehow to connect but it throws an Exception when the Filemask is not "*". (e.g. when you specify a filename)

[INFO ]: talend_gateway.try_ftps_0_1.try_ftps - tFTPGet_2 - Downloading files from the server.
Exception in component tFTPGet_2
it.sauronsoftware.ftp4j.FTPException [code=550, message= File '.' not found.]
	at it.sauronsoftware.ftp4j.FTPClient.list(FTPClient.java:2164)
	at talend_gateway.try_ftps_0_1.try_ftps$1FTPSGetter_tFTPGet_2.getFiles(try_ftps.java:413)
	at talend_gateway.try_ftps_0_1.try_ftps.tFTPGet_2Process(try_ftps.java:608)
	at talend_gateway.try_ftps_0_1.try_ftps.runJobInTOS(try_ftps.java:901)
	at talend_gateway.try_ftps_0_1.try_ftps.main(try_ftps.java:735)
[FATAL]: talend_gateway.try_ftps_0_1.try_ftps - tFTPGet_2 File '.' not found.

However, when you change the Filemask is '*', it gets in and download all the files in that FTPS folder.

Employee

Re: Implicit SSL/TLS FTPS support in Talend 6.2.1

rozetta-kc, Did you resolve this error?