Hi Instead of using the user info in the uri, then you can use the username and password options.
ftp:hostname?username=foo@bar&password=secret On Thu, Nov 3, 2011 at 7:36 PM, Craig Taylor <ctalk...@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@othern...@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 > ctalk...@ctalkobt.net > -- Claus Ibsen ----------------- FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/