camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ramon Buckland (JIRA)" <j...@apache.org>
Subject [jira] Work logged: (CAMEL-1290) FTPConsumer - Error in Rename Strategy.
Date Mon, 26 Jan 2009 01:08:59 GMT

     [ https://issues.apache.org/activemq/browse/CAMEL-1290?page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#action_36802
]

Ramon Buckland logged work on CAMEL-1290:
-----------------------------------------

                Author: Ramon Buckland
            Created on: 25/Jan/09 05:08 PM
            Start Date: 25/Jan/09 05:07 PM
    Worklog Time Spent: 30 minutes 
      Work Description: add test case and resolved issue.

Issue Time Tracking
-------------------

            Time Spent: 30 minutes
    Remaining Estimate: 0 minutes

> FTPConsumer - Error in Rename Strategy.
> ---------------------------------------
>
>                 Key: CAMEL-1290
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1290
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-ftp
>    Affects Versions: 2.0.0
>         Environment: Windows XP
>            Reporter: Paddy Daly
>            Assignee: Ramon Buckland
>         Attachments: CAMEL-1290_Fix_StringIndexOutOfBounds.diff, CAMEL-1290_TestToShowFix.diff
>
>          Time Spent: 30 minutes
>  Remaining Estimate: 0 minutes
>
> Consuming from a FTP server using the following endpoint cause a StringIndexOutOfBoundsException
when using the rename strategy.
> <endpoint id="candidateUrl" uri="ftp://username@127.0.0.1?password=password&amp;delete=true&amp;binary=true&amp;delay=10000&amp;readLock=rename"/>
> 22 Jan 2009 09:36:59,501 ERROR [Thread: 1 org.apache.camel.component.file.remote.RemoteFileComponent
> @8f7aa2] FtpConsumer.log(207) | String index out of range: -1
> java.lang.StringIndexOutOfBoundsException: String index out of range: -1
>         at java.lang.String.substring(String.java:1938)
>         at org.apache.camel.component.file.remote.RemoteFile.getParent(RemoteFile.java:139)
>         at org.apache.camel.component.file.remote.RemoteFile.changeFileName(RemoteFile.java:65)
>         at org.apache.camel.component.file.remote.strategy.RemoteFileRenameExclusiveReadLockStrategy
> .acquireExclusiveReadLock(RemoteFileRenameExclusiveReadLockStrategy.java:45)
>         at org.apache.camel.component.file.remote.strategy.RemoteFileProcessStrategySupport.begin(Re
> moteFileProcessStrategySupport.java:32)
>         at org.apache.camel.component.file.remote.RemoteFileConsumer.processExchange(RemoteFileConsu
> mer.java:131)
>         at org.apache.camel.component.file.remote.RemoteFileConsumer.poll(RemoteFileConsumer.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(Scheduled
> ThreadPoolExecutor.java:98)
>         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Schedule
> dThreadPoolExecutor.java:181)
>         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadP
> oolExecutor.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)
> A workaround is to add a folder in the url like the following
> <endpoint id="candidateUrl" uri="ftp://username@127.0.0.1//myFolder/?password=password&amp;delete=true&amp;binary=true&amp;delay=10000&amp;readLock=rename"/>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message