来自上下文的 tFTPConnection 设置密码不起作用

tFTPConnection setting password from context not working

我正在尝试使用上下文变量设置 Talend Open Studio 的 tFTPConnection 组件的密码,但它不起作用。

我遇到了这个异常:

我尝试过使用上下文加载从文件读取上下文和直接在作业中使用上下文


Exception in component tFTPConnection_1 (read_file_from_sftp_using_context)
com.jcraft.jsch.JSchException: Auth cancel
    at com.jcraft.jsch.Session.connect(Session.java:511)
    at com.jcraft.jsch.Session.connect(Session.java:183)
    at local_project.read_file_from_sftp_using_context_0_1.read_file_from_sftp_using_context.tFTPConnection_1Process(read_file_from_sftp_using_context.java:2062)
    at local_project.read_file_from_sftp_using_context_0_1.read_file_from_sftp_using_context.tFileInputDelimited_3Process(read_file_from_sftp_using_context.java:1776)
    at local_project.read_file_from_sftp_using_context_0_1.read_file_from_sftp_using_context.tFileInputDelimited_2Process(read_file_from_sftp_using_context.java:1067)
    at local_project.read_file_from_sftp_using_context_0_1.read_file_from_sftp_using_context.runJobInTOS(read_file_from_sftp_using_context.java:2550)
    at local_project.read_file_from_sftp_using_context_0_1.read_file_from_sftp_using_context.main(read_file_from_sftp_using_context.java:2345)
[statistics] disconnected

我希望我的连接可以正常工作,但是:(

我找到了密码传递包含特殊字符分号(;)的解决方案。 我正在阅读 this,发现了这个语句:

Note the quotation marks around "noDatetimeStringSync=true" as it contains a Field Separator = character.

我用分号试过了,它对我有用。

也感谢@Mo2s 的支持。

干杯,拉姆