camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <>
Subject [jira] Resolved: (CAMEL-2912) SFTP throws ResolveEndpointFailedException when "ftpClient.connectionTimeout" option is provided
Date Tue, 06 Jul 2010 15:27:52 GMT


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

> SFTP throws ResolveEndpointFailedException when "ftpClient.connectionTimeout" option
is provided
> ------------------------------------------------------------------------------------------------
>                 Key: CAMEL-2912
>                 URL:
>             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.
> 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.

View raw message