Uploaded image for project: 'ServiceMix Components'
  1. ServiceMix Components
  2. SMXCOMP-175

Skipping file xxxxxxx: the file no longer exists on the server

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Activity

          People

            lhein Lars Heinemann
            bhaskards@yahoo.com Bhaskar Dabbigodla
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: