Four Stars

tFTPConnection error

Hello, 
I have a job which connect to salesforce so I use Talend6.1.0 with jdk 8 (Tls 1.0 enabled). 
However with jdk 8 I have error on tFTPConnection components (with jdk7 it works): 
Exception in component tFTPConnection
com.jcraft.jsch.JSchException: java.net.UnknownHostException: sftp.proxy
        at com.jcraft.jsch.Util.createSocket(Util.java:349)
        at com.jcraft.jsch.Session.connect(Session.java:215)
        at com.jcraft.jsch.Session.connect(Session.java:183)
        at test.jov.jov.tFTPConnection_2Process(jov.java:1101)
        at test.jov.jov.tJava_8Process(jov.java:963)
        at test.jov.jov.tFileList_1Process(jov.java:850)
        at test.jov.jov.tJava_2Process(jov.java:659)
        at test.jov.jov.runJobInTOS(jov.java:3124)
        at test.jov.jov.main(jov.java:2956)
Caused by: java.net.UnknownHostException: sftp.proxy
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:589)
        at java.net.Socket.connect(Socket.java:538)
        at java.net.Socket.<init>(Socket.java:434)
        at java.net.Socket.<init>(Socket.java:211)
        at com.jcraft.jsch.Util.createSocket(Util.java:343)
        ... 8 more
2016-07-18 08:43:49|VWf7DW|VWf7DW|VWf7DW|test|jov|Default|6|Java Exception|tFTPConnection_2|com.jcraft.jsch.JSchException:java.net.UnknownHostException: sftp.proxy|1

Thanks. 
7 REPLIES
Moderator

Re: tFTPConnection error

Hi,
Could you please upload your tFTPConnection component setting screenshot into forum? Are you using talend open studio?
Have you tried to use Talend 6.2.1 to see if it works?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Four Stars

Re: tFTPConnection error

Hi, 
Please find attach the screenshot. 
In fact we run the batch file ".bat".
With jdk7  it works but with jdk8 it does not work.
Moderator

Re: tFTPConnection error

Hi,
Are you using jre 1.8.0_92? Have you tried to use Talend 6.2.1 to see if it works?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Four Stars

Re: tFTPConnection error

Hi, 
here is the java version :
java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)
Moderator

Re: tFTPConnection error

Hi,
 There is some issue with jre 1.8.0_9. Could you please check it with 1.8.0_51?
Have you tried to use Talend 6.2.1 to see if it works? We cannot repro your issue on other side.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Four Stars

Re: tFTPConnection error

Hi, 
it doesn't work. Do you have an other solution? 
One point, there is no paramater for Authentication method (to use public key or password) on the TFtpConnection. Is that it could be the cause? 
Moderator

Re: tFTPConnection error

Hi,
Could you please take a look at this forum:https://www.talendforge.org/forum/viewtopic.php?id=45431 to see if it works for your case?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.