There's a bug in the Camel 2.4.0 that's distributed with SOA 5.3.0. The SFTP module can't fetch files from an absolute directory.
The issue has been discussed in the Camel mailing-list.
And there classified as a bug. For us this shows up when we have a Camel fetch like this:
//data1/easiakas/heracles_finvoice/download/invoice/, doesn't matter, and even non-absolute heracles_finvoice/download/invoice/ won't work):
17:45:51,688 INFO [CamelRouteBuilder] Started message processing in camel input route. Filename: test.zip uuid: 74143f3e-68fe-4f04-a784-087af57c735c 18:02:14,701 ERROR [SftpConsumer] Caused by: [org.apache.camel.component.file.GenericFileOperationFailedException - Cannot retrieve file: data1/easiakas/heracles_finvoice/download/invoice/test.zip] org.apache.camel.component.file.GenericFileOperationFailedException: Cannot retrieve file: data1/easiakas/heracles_finvoice/download/invoice/test.zip
So it finds the test.zip, but it can't download it, since it's in the wrong directory or tries to change directory to a wrong one.
- JBoss Enterprise SOA Platform
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.