Hi,
I have upgraded to Camel 1.3.0-RC1. When I start the server all the files in
the catalog are uploaded to the ftp server, but I receives the following
error:
2008-01-22 09:25:25,826 ERROR [FileConsumer] - Could not rename file from:
c:\temp\camel\theFile.txt to c:\temp\camel\.camel\theFile.txt
java.io.IOException: Could not rename file from: c:\temp\camel\theFile.txt
to c:\temp\camel\.camel\theFile.txt
at
org.apache.camel.component.file.strategy.RenameFileProcessStrategy.commit(RenameFileProcessStrategy.java:63)
at
org.apache.camel.component.file.FileConsumer$2.done(FileConsumer.java:136)
at
org.apache.camel.processor.UnitOfWorkProcessor$1.done(UnitOfWorkProcessor.java:45)
at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:163)
at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:87)
at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:40)
at
org.apache.camel.component.file.FileConsumer.pollFile(FileConsumer.java:132)
at
org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:69)
at
org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:77)
at
org.apache.camel.component.file.FileConsumer.poll(FileConsumer.java:50)
at
org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:63)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown
Source)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown
Source)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
When I add new files to the directory nothing happens. Could this be due to
some security restriction on the File system?
Aaron Crickenberger wrote:
>
>
> On Jan 17, 2008, at 10:27 AM, borgel wrote:
>
>> When I put a file in the c:\\temp\\camel directory I receive the
>> following
>> error:
>> / = false
>> //camel = false
>> 2008-01-17 15:57:00,007 ERROR [DeadLetterChannel] - On delivery
>> attempt: 0
>> caught: org.apache.commons.net.io.CopyStreamException: IOException
>> caught
>> while copying.
>> org.apache.commons.net.io.CopyStreamException: IOException caught
>> while
>> copying.
>> at org.apache.commons.net.io.Util.copyStream(Util.java:127)
>> at org.apache.commons.net.ftp.FTPClient.__storeFile(FTPClient.java:
>> 399)
>> at org.apache.commons.net.ftp.FTPClient.storeFile(FTPClient.java:
>> 1388)
>> at
>> org
>> .apache
>> .camel.component.file.remote.FtpProducer.process(FtpProducer.java:49)
>
> The "/ = false" stuff is coming from a System.out.println() that was
> removed from trunk a few weeks ago. Try using Camel 1.3.0 RC1 maybe?
>
> I'm willing to bet the FtpProducer is having trouble building the path
> to its destination file. This could be for any number of reasons,
> from permissions to bugs in the path building. What do your FTP
> server logs indicate?
>
> - aaron
>
>
--
View this message in context:
http://www.nabble.com/From-file-to-ftp-tp14921828s22882p15014552.html
Sent from the Camel - Users mailing list archive at Nabble.com.