[
https://issues.apache.org/activemq/browse/CAMEL-1428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50338#action_50338
]
Paddy Daly commented on CAMEL-1428:
-----------------------------------
This time the file is deleted from the incoming folder. It does not appear in
any .done folder
{code}
[le.remote.sftpcompon...@7b1641] RouterComponent INFO filename
file.txt
[le.remote.sftpcompon...@7b1641] GenericFileProducer DEBUG Wrote
[c:\fileserver\file.txt] to [Endpoint[file://c://fileserver]]
[le.remote.sftpcompon...@7b1641] ObjectHelper WARN Cannot
find class: org.apache.xalan.xsltc.trax.DOM2SAX
[le.remote.sftpcompon...@7b1641] SftpConsumer DEBUG Done
processing file: GenericFile[temp/incoming/file.txt]. Status is: processed OK
[le.remote.sftpcompon...@7b1641] SftpConsumer DEBUG
Committing remote file strategy:
org.apache.camel.component.file.strategy.genericfilerenameprocessstrat...@19214b1
for file: GenericFile[temp/incoming/file.txt]
[le.remote.sftpcompon...@7b1641] SftpOperations DEBUG Deleteing
file: temp/incoming/file.txt
[le.remote.sftpcompon...@7b1641] nericFileRenameProcessStrategy DEBUG Renaming
file: GenericFile[temp/incoming/file.txt] to:
GenericFile[temp/incoming/file.txt]
[le.remote.sftpcompon...@7b1641] SftpOperations DEBUG Renaming
file: temp/incoming/file.txt to: temp/incoming/file.txt
[le.remote.sftpcompon...@7b1641] SftpConsumer WARN Error
committing remote file strategy:
org.apache.camel.component.file.strategy.genericfilerenameprocessstrat...@19214b1
org.apache.camel.component.file.GenericFileOperationFailedException: Cannot
rename file from: temp/incoming/file.txt to: temp/incoming/file.txt
at
org.apache.camel.component.file.remote.SftpOperations.renameFile(SftpOperations.java:167)
at
org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy.renameFile(GenericFileRenameProcessStrategy.java:80)
at
org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy.commit(GenericFileRenameProcessStrategy.java:58)
at
org.apache.camel.component.file.GenericFileConsumer.processStrategyCommit(GenericFileConsumer.java:226)
at
org.apache.camel.component.file.GenericFileConsumer$1.done(GenericFileConsumer.java:180)
at
org.apache.camel.processor.UnitOfWorkProcessor$1.done(UnitOfWorkProcessor.java:57)
at
org.apache.camel.management.InstrumentationProcessor$1.done(InstrumentationProcessor.java:74)
at org.apache.camel.processor.Pipeline.process(Pipeline.java:106)
{code}
> SftpConsumer : GenericFileRenameProcessStrategy - String index out of bounds
> ----------------------------------------------------------------------------
>
> Key: CAMEL-1428
> URL: https://issues.apache.org/activemq/browse/CAMEL-1428
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-ftp
> Affects Versions: 2.0.0
> Environment: Windows XP
> Reporter: Paddy Daly
> Assignee: Claus Ibsen
> Fix For: 2.0-M1
>
> Attachments: camel-error.txt, camel-error2.txt, camel-error3.txt,
> camel-error4.txt
>
>
> While trying to consume a file via SFTP and using the moveExpression to move
> the file into a done folder a renameException is thrown.
> In GenericFile the relativeFileName reads something like the following.
> /incoming/test/file1.txt
> When it tries to call this code and exception is thrown because
> File.separator is '\' in a windows environment.
> String relative = relativeFileName.substring(0,
> relativeFileName.lastIndexOf(File.separator));
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.