You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Bhaskar Dabbigodla (JIRA)" <ji...@apache.org> on 2008/10/09 20:51:52 UTC

[jira] Created: (SM-1624) Skipping file xxxxxxx: the file no longer exists on the server

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.2, 3.2.1


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.


[jira] Issue Comment Edited: (SM-1624) Skipping file xxxxxxx: the file no longer exists on the server

Posted by "Lars Heinemann (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-1624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48045#action_48045 ] 

lhein edited comment on SM-1624 at 12/10/08 11:16 AM:
---------------------------------------------------------------

Finished.

Thanks for the help, Bhaskar.

      was (Author: lhein):
    Finished
  
> 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
>            Assignee: Lars Heinemann
>             Fix For: servicemix-ftp-2008.02, 3.2.4
>
>
> 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.


[jira] Issue Comment Edited: (SM-1624) Skipping file xxxxxxx: the file no longer exists on the server

Posted by "Lars Heinemann (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-1624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47894#action_47894 ] 

lhein edited comment on SM-1624 at 12/5/08 11:02 AM:
--------------------------------------------------------------

Could you please try the following patch instead of your change ?

{noformat}
Index: deployables/bindingcomponents/servicemix-ftp/src/main/java/org/apache/servicemix/ftp/FtpPollerEndpoint.java
===================================================================
--- deployables/bindingcomponents/servicemix-ftp/src/main/java/org/apache/servicemix/ftp/FtpPollerEndpoint.java	(revision 723807)
+++ deployables/bindingcomponents/servicemix-ftp/src/main/java/org/apache/servicemix/ftp/FtpPollerEndpoint.java	(working copy)
@@ -281,7 +281,7 @@
             if (logger.isDebugEnabled()) {
                 logger.debug("Processing file " + file);
             }
-            if (ftp.listFiles(file).length > 0) {
+            if (listFiles(ftp, file).length > 0) {
                 // Process the file. If processing fails, an exception should be thrown.
                 processFile(ftp, file);
                 // Processing is successful
{noformat}

I am waiting for your response.

Regards
Lars


      was (Author: lhein):
    Could you please try the following patch instead of your change ?


Index: deployables/bindingcomponents/servicemix-ftp/src/main/java/org/apache/servicemix/ftp/FtpPollerEndpoint.java
===================================================================
--- deployables/bindingcomponents/servicemix-ftp/src/main/java/org/apache/servicemix/ftp/FtpPollerEndpoint.java	(revision 723807)
+++ deployables/bindingcomponents/servicemix-ftp/src/main/java/org/apache/servicemix/ftp/FtpPollerEndpoint.java	(working copy)
@@ -281,7 +281,7 @@
             if (logger.isDebugEnabled()) {
                 logger.debug("Processing file " + file);
             }
-            if (ftp.listFiles(file).length > 0) {
+            if (listFiles(ftp, file).length > 0) {
                 // Process the file. If processing fails, an exception should be thrown.
                 processFile(ftp, file);
                 // Processing is successful


I am waiting for your response.

Regards
Lars

  
> 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.


[jira] Updated: (SM-1624) Skipping file xxxxxxx: the file no longer exists on the server

Posted by "Lars Heinemann (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SM-1624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lars Heinemann updated SM-1624:
-------------------------------

    Comment: was deleted

> 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
>            Assignee: Lars Heinemann
>             Fix For: 3.2.3, servicemix-ftp-2008.02, 3.2.4
>
>
> 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.


[jira] Issue Comment Edited: (SM-1624) Skipping file xxxxxxx: the file no longer exists on the server

Posted by "Lars Heinemann (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-1624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48043#action_48043 ] 

lhein edited comment on SM-1624 at 12/10/08 11:09 AM:
---------------------------------------------------------------

Bhaskar,

I backported to 3.2 branch of ServiceMix so it will be in 3.2.4.
In servicemix-ftp >=2008.02-SNAPSHOT it will work as well. (together with servicemix >=3.3 or 4)
But you would have to wait until next nightly runs.

Regards
Lars


      was (Author: lhein):
    Bhaskar,

I backported the fix to 3.2.3 of ServiceMix.
In servicemix-ftp >=2008.02-SNAPSHOT it will work as well. (together with servicemix >=3.3 or 4)
But you would have to wait until next nightly runs.

Regards
Lars

  
> 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
>            Assignee: Lars Heinemann
>             Fix For: 3.2.3, servicemix-ftp-2008.02, 3.2.4
>
>
> 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.


[jira] Commented: (SM-1624) Skipping file xxxxxxx: the file no longer exists on the server

Posted by "Lars Heinemann (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-1624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47919#action_47919 ] 

Lars Heinemann commented on SM-1624:
------------------------------------

That is really strange. Could you provide a test project for us and attach it to this JIRA? Maybe with a public ftp server.
I will then test it again and provide a fix.

Regards
Lars

> 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.


[jira] Commented: (SM-1624) Skipping file xxxxxxx: the file no longer exists on the server

Posted by "Bhaskar Dabbigodla (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Commented: (SM-1624) Skipping file xxxxxxx: the file no longer exists on the server

Posted by "Lars Heinemann (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-1624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47894#action_47894 ] 

Lars Heinemann commented on SM-1624:
------------------------------------

Could you please try the following patch instead of your change ?


Index: deployables/bindingcomponents/servicemix-ftp/src/main/java/org/apache/servicemix/ftp/FtpPollerEndpoint.java
===================================================================
--- deployables/bindingcomponents/servicemix-ftp/src/main/java/org/apache/servicemix/ftp/FtpPollerEndpoint.java	(revision 723807)
+++ deployables/bindingcomponents/servicemix-ftp/src/main/java/org/apache/servicemix/ftp/FtpPollerEndpoint.java	(working copy)
@@ -281,7 +281,7 @@
             if (logger.isDebugEnabled()) {
                 logger.debug("Processing file " + file);
             }
-            if (ftp.listFiles(file).length > 0) {
+            if (listFiles(ftp, file).length > 0) {
                 // Process the file. If processing fails, an exception should be thrown.
                 processFile(ftp, file);
                 // Processing is successful


I am waiting for your response.

Regards
Lars


> 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.


[jira] Commented: (SM-1624) Skipping file xxxxxxx: the file no longer exists on the server

Posted by "Lars Heinemann (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-1624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48033#action_48033 ] 

Lars Heinemann commented on SM-1624:
------------------------------------

I think the problem is that the ftp server you are using doesn't support the LIST comand on files correctly. (just a guess)
For this I prepared a patch reusing your suggested fix. Could you please try the below patch and give feedback?

Thanks in advance.
Lars


{noformat}
Index: deployables/bindingcomponents/servicemix-ftp/src/main/java/org/apache/servicemix/ftp/FtpPollerEndpoint.java
===================================================================
--- deployables/bindingcomponents/servicemix-ftp/src/main/java/org/apache/servicemix/ftp/FtpPollerEndpoint.java	(revision 725298)
+++ deployables/bindingcomponents/servicemix-ftp/src/main/java/org/apache/servicemix/ftp/FtpPollerEndpoint.java	(working copy)
@@ -272,7 +272,7 @@
             }
         });
     }
-
+    
     protected boolean processFileAndDelete(String file) {
         FTPClient ftp = null;
         boolean unlock = true;
@@ -281,7 +281,7 @@
             if (logger.isDebugEnabled()) {
                 logger.debug("Processing file " + file);
             }
-            if (ftp.listFiles(file).length > 0) {
+            if (isFileExistingOnServer(ftp, file)) {
                 // Process the file. If processing fails, an exception should be thrown.
                 processFile(ftp, file);
                 // Processing is successful
@@ -305,6 +305,36 @@
         return unlock;
     }
 
+    /**
+     * checks if file specified exists on server
+     * 
+     * @param ftp       the ftp client
+     * @param file      the full file path
+     * @return          true if found on server
+     */
+    private boolean isFileExistingOnServer(FTPClient ftp, String file) throws IOException {
+        boolean foundFile = false;
+        int lastIndex = file.lastIndexOf("/");
+        String directory = ".";
+        String rawName = file;
+        if (lastIndex > 0) { 
+            directory = file.substring(0, lastIndex);
+            rawName = file.substring(lastIndex + 1);
+        }
+
+        FTPFile[] files = listFiles(ftp, directory);
+        if (files.length > 0) {
+            for (FTPFile f : files) {
+                if (f.getName().equals(rawName)) {
+                    foundFile = true;
+                    break;
+                }
+            }
+        }
+
+        return foundFile;
+    }
+    
     protected void processFile(FTPClient ftp, String file) throws Exception {
         InputStream in = ftp.retrieveFileStream(file);
         InOnly exchange = getExchangeFactory().createInOnlyExchange();
{noformat}

> 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.


[jira] Resolved: (SM-1624) Skipping file xxxxxxx: the file no longer exists on the server

Posted by "Lars Heinemann (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SM-1624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lars Heinemann resolved SM-1624.
--------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 3.2.2)
                       (was: 3.2.1)
                   3.2.3
                   3.2.4
                   servicemix-ftp-2008.02

fixed in Rev. 725382



> 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
>            Assignee: Lars Heinemann
>             Fix For: servicemix-ftp-2008.02, 3.2.4, 3.2.3
>
>
> 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.


[jira] Issue Comment Edited: (SM-1624) Skipping file xxxxxxx: the file no longer exists on the server

Posted by "Lars Heinemann (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-1624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48043#action_48043 ] 

lhein edited comment on SM-1624 at 12/10/08 11:06 AM:
---------------------------------------------------------------

Bhaskar,

I backported the fix to 3.2.3 of ServiceMix.
In servicemix-ftp >=2008.02-SNAPSHOT it will work as well. (together with servicemix >=3.3 or 4)
But you would have to wait until next nightly runs.

Regards
Lars


      was (Author: lhein):
    Bhaskar,

I backported the fix to 3.2.3 of ServiceMix.
In servicemix-ftp >=2008.02-SNAPSHOT it will be work as well. (together with servicemix >=3.3 or 4)

Regards
Lars

  
> 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
>            Assignee: Lars Heinemann
>             Fix For: 3.2.3, servicemix-ftp-2008.02, 3.2.4
>
>
> 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.


[jira] Issue Comment Edited: (SM-1624) Skipping file xxxxxxx: the file no longer exists on the server

Posted by "Lars Heinemann (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-1624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47894#action_47894 ] 

lhein edited comment on SM-1624 at 12/5/08 11:03 AM:
--------------------------------------------------------------

Could you please try the following patch instead of your change ?


{noformat}
Index: deployables/bindingcomponents/servicemix-ftp/src/main/java/org/apache/servicemix/ftp/FtpPollerEndpoint.java
===================================================================
--- deployables/bindingcomponents/servicemix-ftp/src/main/java/org/apache/servicemix/ftp/FtpPollerEndpoint.java	(revision 723807)
+++ deployables/bindingcomponents/servicemix-ftp/src/main/java/org/apache/servicemix/ftp/FtpPollerEndpoint.java	(working copy)
@@ -281,7 +281,7 @@
             if (logger.isDebugEnabled()) {
                 logger.debug("Processing file " + file);
             }
-            if (ftp.listFiles(file).length > 0) {
+            if (listFiles(ftp, file).length > 0) {
                 // Process the file. If processing fails, an exception should be thrown.
                 processFile(ftp, file);
                 // Processing is successful
{noformat}

I am waiting for your response.

Regards
Lars


      was (Author: lhein):
    Could you please try the following patch instead of your change ?

{noformat}
Index: deployables/bindingcomponents/servicemix-ftp/src/main/java/org/apache/servicemix/ftp/FtpPollerEndpoint.java
===================================================================
--- deployables/bindingcomponents/servicemix-ftp/src/main/java/org/apache/servicemix/ftp/FtpPollerEndpoint.java	(revision 723807)
+++ deployables/bindingcomponents/servicemix-ftp/src/main/java/org/apache/servicemix/ftp/FtpPollerEndpoint.java	(working copy)
@@ -281,7 +281,7 @@
             if (logger.isDebugEnabled()) {
                 logger.debug("Processing file " + file);
             }
-            if (ftp.listFiles(file).length > 0) {
+            if (listFiles(ftp, file).length > 0) {
                 // Process the file. If processing fails, an exception should be thrown.
                 processFile(ftp, file);
                 // Processing is successful
{noformat}

I am waiting for your response.

Regards
Lars

  
> 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.


[jira] Commented: (SM-1624) Skipping file xxxxxxx: the file no longer exists on the server

Posted by "Bhaskar Dabbigodla (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-1624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48126#action_48126 ] 

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

Thanks a lot Lars.

> 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
>            Assignee: Lars Heinemann
>             Fix For: servicemix-ftp-2008.02, 3.2.4
>
>
> 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.


[jira] Commented: (SM-1624) Skipping file xxxxxxx: the file no longer exists on the server

Posted by "Lars Heinemann (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-1624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48043#action_48043 ] 

Lars Heinemann commented on SM-1624:
------------------------------------

Bhaskar,

I backported the fix to 3.2.3 of ServiceMix.
In servicemix-ftp >=2008.02-SNAPSHOT it will be work as well. (together with servicemix >=3.3 or 4)

Regards
Lars


> 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
>            Assignee: Lars Heinemann
>             Fix For: 3.2.3, servicemix-ftp-2008.02, 3.2.4
>
>
> 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.


[jira] Commented: (SM-1624) Skipping file xxxxxxx: the file no longer exists on the server

Posted by "Bhaskar Dabbigodla (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-1624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48040#action_48040 ] 

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

Thanks Lars. This fix is working fine.

Will this fix be part of Servicemix 3.3.x or will it be updated to the earlier versions as well?

> 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
>            Assignee: Lars Heinemann
>             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.


[jira] Assigned: (SM-1624) Skipping file xxxxxxx: the file no longer exists on the server

Posted by "Lars Heinemann (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SM-1624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lars Heinemann reassigned SM-1624:
----------------------------------

    Assignee: Lars Heinemann

> 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
>            Assignee: Lars Heinemann
>             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.


[jira] Updated: (SM-1624) Skipping file xxxxxxx: the file no longer exists on the server

Posted by "Lars Heinemann (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/SM-1624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lars Heinemann updated SM-1624:
-------------------------------

    Fix Version/s:     (was: 3.2.3)

Finished

> 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
>            Assignee: Lars Heinemann
>             Fix For: servicemix-ftp-2008.02, 3.2.4
>
>
> 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.


[jira] Commented: (SM-1624) Skipping file xxxxxxx: the file no longer exists on the server

Posted by "Bhaskar Dabbigodla (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-1624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47992#action_47992 ] 

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

Hi Lars,
Sorry I don't have a public ftp to provide you the access.
But the following explanation may help you to fix the issue. 

Both the listFiles method calls (ftp.listFiles(file).length  and listFiles(ftp, file).length) returning an array of length zero because the parameter to them is not a directory but name of a file in a directory. 


> 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.


[jira] Commented: (SM-1624) Skipping file xxxxxxx: the file no longer exists on the server

Posted by "Lars Heinemann (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/SM-1624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48044#action_48044 ] 

Lars Heinemann commented on SM-1624:
------------------------------------

Did a mistake on backporting. Accidently backported to tag instead of branch.
I am now reverting and correcting this.


> 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
>            Assignee: Lars Heinemann
>             Fix For: 3.2.3, servicemix-ftp-2008.02, 3.2.4
>
>
> 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.