You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2010/07/06 17:27:52 UTC

[jira] Resolved: (CAMEL-2912) SFTP throws ResolveEndpointFailedException when "ftpClient.connectionTimeout" option is provided

     [ https://issues.apache.org/activemq/browse/CAMEL-2912?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-2912.
--------------------------------

    Fix Version/s: 2.4.0
       Resolution: Fixed

I have introduced new timeout options in the FTP endpoint uri so its easier to configure.

See wiki page
https://cwiki.apache.org/confluence/display/CAMEL/FTP2


> SFTP throws ResolveEndpointFailedException when "ftpClient.connectionTimeout" option is provided
> ------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-2912
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2912
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-ftp
>    Affects Versions: 2.3.0
>            Reporter: Mattias Severson
>            Assignee: Claus Ibsen
>             Fix For: 2.4.0
>
>
> Currently, SFTP throws an ResolveEndpointFailed exception if the option "ftpClient.connectionTimeout" is provided as a part of the URI. This could be fixed by calling the Session.connect(int timeout) method of JSCH. Some investigation reveals that this method eventually calls Socket.setSoTimeout(int timeout), which implies that the time unit of the timeout is milliseconds.
> http://grepcode.com/file/repo1.maven.org/maven2/com.jcraft/jsch/0.1.42/com/jcraft/jsch/Session.java#Session.connect%28int%29
> Example:
> sftp://user@host/dir?password=secret&ftpClient.connectionTimeout=30000&disconnect=true&passiveMode=true
> ResolveEndpointFailedException:
> [...]
> There are 1 parameters that couldn't be set on the endpoint. Check the uri if the parameters are spelt correctly and that they are properties of the endpoint. Unknown parameters=[{ftpClient.connectionTimeout=30000}] 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.