You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by iyusuf <iq...@gmail.com> on 2013/01/18 01:17:05 UTC

Cannot change directory to: \

Hi,

I am trying to connect to a SFTP hosted on a Linux box from a Windows 7 64
bit developer laptop. I am trying to put files (SFTP as producer) on remote
sftp server. If I don't use directory path files get uploaded but if I use
sub-directory I get the following error. I've tried both "stepwise=true" and
"stepwise=false".

Cannot change directory to: \

Here is my relevant code snippet...

from("file:data/outbox?fileName=test2.txt")
.to("sftp://sandbox1.my.org:22/?fileName=BENEFITS/test2.txt&username=qauser&password=dasuper007&knownHostsFile=known_hosts&stepwise=true");

I tried the following which also doesn't work.
from("file:data/outbox?fileName=test2.txt")
.to("sftp://sandbox1.my.org:22/BENEFITS/?fileName=test2.txt&username=qauser&password=dasuper007&knownHostsFile=known_hosts&stepwise=true");


I am using JSCH version 0.1.49 and 
camel-core version 2.10.3

Thanks,



--
View this message in context: http://camel.465427.n5.nabble.com/Cannot-change-directory-to-tp5725722.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Cannot change directory to: \

Posted by Claus Ibsen <cl...@gmail.com>.
On Wed, Jan 23, 2013 at 10:54 PM, iyusuf
<iq...@gmail.com> wrote:
> It works with version 2.10.2
> Thanks all!!
>

Yeah it turns out it is only 2.10.3 that had this problem.
It is fixed in the upcoming 2.10.4.


>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Cannot-change-directory-to-tp5725722p5726094.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Re: Cannot change directory to: \

Posted by iyusuf <iq...@gmail.com>.
It works with version 2.10.2
Thanks all!!



--
View this message in context: http://camel.465427.n5.nabble.com/Cannot-change-directory-to-tp5725722p5726094.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Cannot change directory to: \

Posted by Diether <di...@optis.be>.
I had a similar problem.
2.10.2 worked for me.



--
View this message in context: http://camel.465427.n5.nabble.com/Cannot-change-directory-to-tp5725722p5726082.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Cannot change directory to: \

Posted by iyusuf <iq...@gmail.com>.
I am using 2.10.3

Do I need to go all the way back to 2.9.x? or earlier 2.10.x will work?

Did not know it was a bug. Will it be fixed in future versions?

Thanks



--
View this message in context: http://camel.465427.n5.nabble.com/Cannot-change-directory-to-tp5725722p5726075.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Cannot change directory to: \

Posted by Claus Ibsen <cl...@gmail.com>.
On Wed, Jan 23, 2013 at 4:40 PM, iyusuf
<iq...@gmail.com> wrote:
> Can someone help. Can someone at least validate that my code syntax are
> right? I am trying to introduce Camel to my organization as a viable
> alternative option for integration tasks.
>

Use an earlier release of Camel which do not have this bug.


>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Cannot-change-directory-to-tp5725722p5726072.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Re: Cannot change directory to: \

Posted by iyusuf <iq...@gmail.com>.
Can someone help. Can someone at least validate that my code syntax are
right? I am trying to introduce Camel to my organization as a viable
alternative option for integration tasks. 



--
View this message in context: http://camel.465427.n5.nabble.com/Cannot-change-directory-to-tp5725722p5726072.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Cannot change directory to: \

Posted by Iqbal Yusuf <iy...@dcl-online.com>.
Setting "separator" did not help. I am still getting
org.apache.camel.component.file.GenericFileOperationFailedException: Cannot
change directory to: \

Here is my code snippet
from("file:data/outbox?fileName=Outfile")
 .to("sftp://
web347.webfaction.com:22/sftptest/?fileName=Outfile&separator=UNIX&username=iyusufd&password=dipu0822&stepwise=true
");

Re: Cannot change directory to: \

Posted by Claus Ibsen <cl...@gmail.com>.
There is also a separator option you can configure to instruct which
separator type to use.
http://camel.apache.org/ftp2


On Fri, Jan 18, 2013 at 10:58 AM, DOLECEK Ales
<Al...@nextiraone.eu> wrote:
> You are probably using '\' as path separator. Maybe System property 'file.separator' is '\' on Windows.
>
> Ales
>
> -----Original Message-----
> From: iyusuf [mailto:iqbalyusufdipu+mailinglist@gmail.com]
> Sent: Friday, January 18, 2013 1:17 AM
> To: users@camel.apache.org
> Subject: Cannot change directory to: \
>
> Hi,
>
> I am trying to connect to a SFTP hosted on a Linux box from a Windows 7 64 bit developer laptop. I am trying to put files (SFTP as producer) on remote sftp server. If I don't use directory path files get uploaded but if I use sub-directory I get the following error. I've tried both "stepwise=true" and "stepwise=false".
>
> Cannot change directory to: \
>
> Here is my relevant code snippet...
>
> from("file:data/outbox?fileName=test2.txt")
> .to("sftp://sandbox1.my.org:22/?fileName=BENEFITS/test2.txt&username=qauser&password=dasuper007&knownHostsFile=known_hosts&stepwise=true");
>
> I tried the following which also doesn't work.
> from("file:data/outbox?fileName=test2.txt")
> .to("sftp://sandbox1.my.org:22/BENEFITS/?fileName=test2.txt&username=qauser&password=dasuper007&knownHostsFile=known_hosts&stepwise=true");
>
>
> I am using JSCH version 0.1.49 and
> camel-core version 2.10.3
>
> Thanks,
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Cannot-change-directory-to-tp5725722.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

RE: Cannot change directory to: \

Posted by DOLECEK Ales <Al...@nextiraone.eu>.
You are probably using '\' as path separator. Maybe System property 'file.separator' is '\' on Windows.

Ales

-----Original Message-----
From: iyusuf [mailto:iqbalyusufdipu+mailinglist@gmail.com] 
Sent: Friday, January 18, 2013 1:17 AM
To: users@camel.apache.org
Subject: Cannot change directory to: \

Hi,

I am trying to connect to a SFTP hosted on a Linux box from a Windows 7 64 bit developer laptop. I am trying to put files (SFTP as producer) on remote sftp server. If I don't use directory path files get uploaded but if I use sub-directory I get the following error. I've tried both "stepwise=true" and "stepwise=false".

Cannot change directory to: \

Here is my relevant code snippet...

from("file:data/outbox?fileName=test2.txt")
.to("sftp://sandbox1.my.org:22/?fileName=BENEFITS/test2.txt&username=qauser&password=dasuper007&knownHostsFile=known_hosts&stepwise=true");

I tried the following which also doesn't work.
from("file:data/outbox?fileName=test2.txt")
.to("sftp://sandbox1.my.org:22/BENEFITS/?fileName=test2.txt&username=qauser&password=dasuper007&knownHostsFile=known_hosts&stepwise=true");


I am using JSCH version 0.1.49 and
camel-core version 2.10.3

Thanks,



--
View this message in context: http://camel.465427.n5.nabble.com/Cannot-change-directory-to-tp5725722.html
Sent from the Camel - Users mailing list archive at Nabble.com.