camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig Taylor <ctalk...@ctalkobt.net>
Subject Re: Camel FTP with username having embedded @ character.
Date Thu, 03 Nov 2011 19:12:23 GMT
Additional notes:

* Testing w/ %40 instead of @ in the username also fails to work.
* It appears from testing with java.net.URI that %40 is supposed to be
used instead of @ as it also fails with @.

On Thu, Nov 3, 2011 at 2:36 PM, Craig Taylor <ctalkobt@ctalkobt.net> wrote:
> I'm trying to connect to hosta.mydomain.com with a username of
> user@othername and password of password.
>
> FTP2 is failing miserably with a
> org.apache.camel.FailedToCreateRouteException    with a cause of :
> Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to
> resolve endpoint:
>        at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:453)
>        at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:46)
>        at org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:158)
>        at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:113)
>        at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:119)
>        at org.apache.camel.model.FromDefinition.resolveEndpoint(FromDefinition.java:72)
>        at org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:88)
>        at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:680)
>        at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:140)
>        ... 50 more
>
> My route appears similar to : :
> ftp://username@othername@hosta.mydomain.com?password=password
>
> Running it with a "normal" username (non embedded @othername) works normally.
>
> (The ftp server on the remote end (hosta.domain.com) is requiring the
> @ for remote/network user ftp logins).
> I've tried removing the username from the initial URI definition and
> adding it as a parameter but get the same results.
>
> Any suggestions?
>
> --
> -------------------------------------------
> Craig Taylor
> ctalkobt@ctalkobt.net
>



-- 
-------------------------------------------
Craig Taylor
ctalkobt@ctalkobt.net

Mime
View raw message