[
https://issues.apache.org/activemq/browse/CAMEL-1428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50313#action_50313
]
Paddy Daly commented on CAMEL-1428:
-----------------------------------
{code}
[e.remote.sftpcompon...@19b808a] SftpConsumer DEBUG Total 1
files to consume
[e.remote.sftpcompon...@19b808a] SftpEndpoint DEBUG Using
Generic file process strategy:
org.apache.camel.component.file.strategy.genericfilerenameprocessstrat...@149f041
[e.remote.sftpcompon...@19b808a] SftpOperations DEBUG Renaming
file: /temp/incoming/file.txt to: /temp/incoming/file.txt.camelExclusiveReadLock
[e.remote.sftpcompon...@19b808a] SftpOperations DEBUG Renaming
file: /temp/incoming/file.txt.camelExclusiveReadLock to: /temp/incoming/file.txt
[e.remote.sftpcompon...@19b808a] SftpConsumer DEBUG About to
process file: GenericFile[temp/incoming/file.txt] using exchange:
Exchange[GenericFileMessage: GenericFile[temp/incoming/file.txt]]
[e.remote.sftpcompon...@19b808a] RouterComponent INFO filename
null
[e.remote.sftpcompon...@19b808a] DeadLetterChannel ERROR Failed
delivery for exchangeId: ID-DELLPD-2562-1236524034668-0-0. On delivery attempt:
0 caught: java.lang.NullPointerException
java.lang.NullPointerException
at java.util.StringTokenizer.<init>(StringTokenizer.java:182)
at java.util.StringTokenizer.<init>(StringTokenizer.java:204)
at
com.opt2vote.easyprint.router.RouterComponent$1.process(RouterComponent.java:45)
at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:80)
at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:194)
at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:129)
at org.apache.camel.processor.Pipeline.process(Pipeline.java:115)
at org.apache.camel.processor.Pipeline.process(Pipeline.java:89)
at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)
at
org.apache.camel.processor.interceptor.StreamCachingInterceptor.proceed(StreamCachingInterceptor.java:88)
at
org.apache.camel.processor.interceptor.StreamCachingInterceptor.process(StreamCachingInterceptor.java:83)
at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:52)
at
org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:165)
at
org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:98)
at
org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:66)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at
java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
{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.