camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From saverineni <suresh.averin...@gmail.com>
Subject camel ftp 550 directory not found
Date Wed, 06 Apr 2016 13:38:55 GMT
Hi Guys

My camel route is trying to download and unzip a zip file from ftp server
(Filezilla).

My Ftp configuration :

Root directory(home directory) is set to c:\
thg.ftp.incomingDir=/fileprocessor
thg.ftp.toDir=/unzip 

<camel:endpoint id="ZipFileFrom   
uri="ftp://${thg.ftp.username}@${thg.ftp.server}/${thg.ftp.incomingDir}/?password=${thg.ftp.password}&amp;initialDelay=25000&amp;delay=120s&amp;binary=true&amp;reconnectDelay=60s&amp;move=done&amp;moveFailed=error"
/>
				
		<camel:endpoint id="Unzippedolder"
uri="ftp://${thg.ftp.username}@${thg.ftp.server}/${thg.ftp.toDir}/?password=${thg.ftp.password}&amp;initialDelay=25000"
/>
				
		<camel:endpoint id="ileToProcess"
uri="ftp://${thg.ftp.username}@${thg.ftp.server}/${thg.ftp.toDir}/?password=${thg.ftp.password}&amp;binary=true&amp;delay=60s&amp;move=done&amp;moveFailed=error&amp;localWorkDirectory=C:\ftp\
/> 
						
		
		<camel:route id="unziponFTP">
			<camel:from ref="ZipFileFrom/> 
			<camel:unmarshal ref="zipFileDataFormat"/>
			<camel:split streaming="true">
				<camel:simple>${body}</camel:simple>				
				<camel:to ref="Unzippedolder"/> 
			</camel:split>
		</camel:route>

Camel is able to unzip the zip file properly and i can see all the files as
well, but I am seeing the exception :

unzipped folder name : Week54_09Apr-15Apr

org.apache.camel.component.file.GenericFileOperationFailedException: File
operation failed: 550 CWD failed. "/unzip/Week54_09Apr-15Apr": directory not
found.
 Cannot change directory to: Week54_09Apr-15Apr. Code: 550
	at
org.apache.camel.component.file.remote.FtpOperations.doChangeDirectory(FtpOperations.java:775)
	
camel is trying to cwd in to the unzipped folder before it actually
unzipping it (found out this by placing breakpoints in the camel code)

Any help would be much appreciated.

Thanks
Suresh







--
View this message in context: http://camel.465427.n5.nabble.com/camel-ftp-550-directory-not-found-tp5780588.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message