[ 
https://issues.apache.org/activemq/browse/SM-1624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47918#action_47918
 ] 

Bhaskar Dabbigodla commented on SM-1624:
----------------------------------------

I still see the same problem with your fix.
Please see below logs - first one with your fix and the later with my proposed 
fix

2008-12-07 10:49:00,785 | DEBUG | org.apache.servicemix.ftp.FtpPollerEndpoint   
      212 | Polling directory /translated/HotelContent
2008-12-07 10:49:01,606 | DEBUG | org.apache.servicemix.ftp.FtpPollerEndpoint   
      257 | Scheduling file 
/translated/HotelContent/HotelContent_de_DE_2008-12-04-12_00_00_177.xml for 
processing
2008-12-07 10:49:01,708 | DEBUG | org.apache.servicemix.ftp.FtpPollerEndpoint   
      282 | Processing file 
/translated/HotelContent/HotelContent_de_DE_2008-12-04-12_00_00_177.xml
2008-12-07 10:49:01,914 | DEBUG | org.apache.servicemix.ftp.FtpPollerEndpoint   
      305 | Skipping 
/translated/HotelContent/HotelContent_de_DE_2008-12-04-12_00_00_177.xml: the 
file no longer exists on the server
2008-12-07 10:49:59,367 | INFO  | 
che.servicemix.jbi.framework.AutoDeploymentService  666 | Directory: hotdeploy: 
Archive changed: processing servicemix-ftp-3.2.2-installer.zip 
================================================================================================================================

2008-12-07 10:51:04,860 | DEBUG | org.apache.servicemix.ftp.FtpPollerEndpoint   
      257 | Scheduling file 
/translated/HotelContent/HotelContent_de_DE_2008-12-04-12_00_00_177.xml for 
processing
2008-12-07 10:51:04,961 | DEBUG | org.apache.servicemix.ftp.FtpPollerEndpoint   
      282 | Processing file 
/translated/HotelContent/HotelContent_de_DE_2008-12-04-12_00_00_177.xml
2008-12-07 10:51:06,013 | DEBUG | 
org.apache.servicemix.common.AsyncBaseLifeCycle     626 | Created correlation 
id: ID:10.222.150.101-11e124c121c-100:0
2

> Skipping file xxxxxxx: the file no longer exists on the server
> --------------------------------------------------------------
>
>                 Key: SM-1624
>                 URL: https://issues.apache.org/activemq/browse/SM-1624
>             Project: ServiceMix
>          Issue Type: Improvement
>          Components: servicemix-ftp
>         Environment: Linux
>            Reporter: Bhaskar Dabbigodla
>             Fix For: 3.2.1, 3.2.2
>
>
> I am getting the following message and the file scheduled for processing is 
> not getting delivered to the FtpSender. 
> 2008-10-09 10:52:06,810 | DEBUG | rvicemix.ftp.FtpPollerEndpoint  257 | 
> Scheduling file 
> /translated/HotelContent/HotelContent_nl_NL_2008-10-09-10_50_00_48.xml for 
> processing
> 2008-10-09 10:52:06,814 | DEBUG | rvicemix.ftp.FtpPollerEndpoint  282 | 
> Processing file 
> /translated/HotelContent/HotelContent_nl_NL_2008-10-09-10_50_00_48.xml
> Reason is as shown below.
> 2008-10-09 10:52:06,918 | DEBUG | rvicemix.ftp.FtpPollerEndpoint  298 | 
> Skipping 
> /translated/HotelContent/HotelContent_nl_NL_2008-10-09-10_50_00_48.xml: the 
> file no longer exists on the server
> In my case I am polling at directory but not for particular  file on FTP 
> server. So I have modified the source in processFileAndDelete method of 
> org/apache/servicemix/ftp/FtpPollerEndpoint.java as shown below.
> Initial condition:
>  if (ftp.listFiles(directory).length > 0) {
> After my change
>             int lastIndex = file.lastIndexOf("/");
>             String directory = ".";
>             if (lastIndex > 0) {
>                 directory =  file.substring(0, lastIndex);
>             }
>             if (ftp.listFiles(directory).length > 0) {
> I have tested this on both 3.2.1 and 3.2.2 versions. So please review it and 
> incorporate the change in latest source.

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

Reply via email to