Failing to list files in remote directory using FTP

Since I've been using a proxy with FTP transport for pull files from a remote server during several months. Now it started to work just sometimes
####<Apr 11, 2011 1:33:50 PM BRT> <Error> <WliSbTransports> <WN7-6J6VJN1> <AdminServer> <pool-9-thread-1> <weblogic> <> <f2be7f1e2af484b9:-47b5d228:12f456185e7:-7ff1-000000000000002c> <1302539630973> <BEA-381602> <Error encountered while polling the resource for the service endpoint ProxyService$Infolease$1_0$ProxyServices$Contract$SendBookingConfirmationPS: com.bea.wli.sb.transports.TransportException: <user:davi_diogo>Unable to list files for directory:.
com.bea.wli.sb.transports.TransportException: <user:davi_diogo>Unable to list files for directory:.
     at com.bea.wli.sb.transports.ftp.connector.FTPWorkPartitioningAgent.execute(FTPWorkPartitioningAgent.java:218)
     at com.bea.wli.sb.transports.poller.TransportTimerListener.run(TransportTimerListener.java:75)
     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)
     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
     at java.util.concurrent.FutureTask.run(FutureTask.java:139)
     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:909)
     at java.lang.Thread.run(Thread.java:619)
I configured the service account with my own username, and I do make sure that I have the rights over my home\user directory. (I tested with WINSCP and putty).
I haven't done any modification to make this start happening.
following my proxy configuration:
protocol: ftp
URI: ftp://myhost/
mask: *.XML
but no success.
I said "sometimes" above because it works after ~15 tentatives. Perhaps this could be a issue in my remote server OS.
Has anyone faced this issue before?
Thanks in advance,
Davinod

Please refer -
Error encountered while polling the resource for the service endpoint
Regards,
Anuj

Similar Messages

  • Unable to Receive the File into Target Directory Using FTP

    Hi All,
    Here I Did Simple File-File Scenario With FTP.
    Iam Able to Pick the File From the FTP Location And File has been Deleted From Source Location ( Set the Processing Mode as Delete ).
    Unable to See the Pipeline Steps in Moni, But Able to Se the Success Message With the Inbound Payload only.
    Also chked with the comm. channel of sender and receiver, where the sender shows the message process details but not the receiver comm. channel.
    Regards
    Giri

    You Did the right thing in communication channel that u selected the IS.
    Hi
    Just check out if you sending the correct parameters and also check out the payload you sending and check out in SXMB_MONI for you message that after success wat is the payload and match with your input.
    Rather, for input check, In IR, get the XML data from ur Message Mapping and then save it to your inbox that is input directory.
    Also check out the permission of Output directory and also check the configuration of sender and reciver communication channel.
    Regards
    Aashish Sinha
    PS : reward points if helpful

  • Finder not displaying all files in remote directory

    Sorry, this is a repost as I have gotten no response from my original request here: Finder not displaying all files in remote directory
    I've exported pictures from iPhoto on my iMac to a shared directory on my mac mini. When I access that directory from my iMac, I can see some but not all of the pictures. I know the pictures exported properly because I can see them all from the mac mini. I can open up a terminal window on my iMac and see all of the files; I can also open those files from the terminal.
    I'm running OSX 10.9.4 on both computers, with the mac mini also running OSX Server. I've placed a screen grab below from my iMac of what Finder sees vs what I can see from the terminal.
    Why isn't Finder displaying all of my files?

    thanks for responding
    Adding a new file to the shared folder results in me being able to see the new file from my clients regardless of where it was added from, however the "hidden" files do not suddenly pop up.
    I tried a few more experiments that had interesting results, but still didn't lead me to an answer.
    First I tried copying the files from the remote directory to a local directory; I did this in 2 different ways and had different results. Method A) I copied files from the mounted share to a local dir: "cp /Volumes/MyShare/dir/*.JPG .". Method B) I copied the files using secure copy: "scp user@server:/path/to/dir/*.JPG .".
    Method A resulted in Finder not being able to see the files in the local directory, while Method B did. This was interesting and lead me to suspect an issue with the way I am sharing the directory on the server. From Server settings I have both afp and smb checked. I tried enabling only one or the other and reconnecting; but this did not fix the problem.
    Next I tried exporting the photos from iPhoto again. Exporting them locally results in files that Finder can see. Exporting them to my server results the same bad behavior
    Getting desperate, I also tried renaming all of the files from "*.JPG" to "*.jpg" but this didn't help.
    One last experiment, I see the same behavior from both another Mac and a PC on my local network... FTP works fine.
    Any more ideas?

  • Listing file of remote user

    I going to develop FTP program.. but i have a problem in listing file of remote user.. any ideas?

    You can use FTPBean
    http://www.geocities.com/SiliconValley/Code/9129/javabean/ftpbean/

  • Listing files of a directory

    I have a block non single record and each record must receive the file name of a directory.
    Does anybody know how can i list files of a directory? Is there any object or package i've got to use?
    Thanks for attemption.

    Is the directory a single directory that your db server has access to? if so you can use a bit of java (in the db), pl/sql and sql to list the files in the given directory in a temporary table, then you can query that table to show in your form.
    Should be able to google a solution by searching on "oracle dirlist" or let me know and I can post what I used here.
    --pat
    PS. how does one get code snipits to format nice when posting here?

  • How can I Cache the data I'm reading from a collection of text files in a directory using a TreeMap?

    How can I Cache the data I'm reading from a collection of text files in a directory using a TreeMap? Currently my program reads the data from several text files in a directory and the saves that information in a text file called output.txt. I would like to cache this data in order to use it later. How can I do this using the TreeMap Class? These are the keys,values: TreeMap The data I'd like to Cache is (date from the file, time of the file, current time).
    import java.io.*;
    public class CacheData {
      public static void main(String[] args) throws IOException {
      String target_dir = "C:\\Files";
      String output = "C:\\Files\output.txt";
      File dir = new File(target_dir);
      File[] files = dir.listFiles();
      // open the Printwriter before your loop
      PrintWriter outputStream = new PrintWriter(output);
      for (File textfiles : files) {
      if (textfiles.isFile() && textfiles.getName().endsWith(".txt")) {
      BufferedReader inputStream = null;
      // close the outputstream after the loop
      outputStream.close();
      try {
      inputStream = new BufferedReader(new FileReader(textfiles));
      String line;
      while ((line = inputStream.readLine()) != null) {
      System.out.println(line);
      // Write Content
      outputStream.println(line);
      } finally {
      if (inputStream != null) {
      inputStream.close();

    How can I Cache the data I'm reading from a collection of text files in a directory using a TreeMap? Currently my program reads the data from several text files in a directory and the saves that information in a text file called output.txt. I would like to cache this data in order to use it later. How can I do this using the TreeMap Class?
    I don't understand your question.
    If you don't know how to use TreeMap why do you think a TreeMap is the correct solution for what you want to do?
    If you are just asking how to use TreeMap then there are PLENTY of tutorials on the internet and the Java API provides the methods that area available.
    TreeMap (Java Platform SE 7 )
    Are you sure you want a map and not a tree instead?
    https://docs.oracle.com/javase/tutorial/uiswing/components/tree.html

  • How to create the log file in remote system using log4j.

    Hi,
    How to create the log file in remote system using log4j. please give me a sample code or related links.The below example i used for create the log file in remote system but it return the below exception.Is there any authandication parameter for accessing the remote path? Please help.
    public class Logging
    Logger log=null;
    FileAppender fileapp=null;
    public Logging(String classname)
    try
    log = Logger.getLogger(classname);
    String path=" [\\192.168.0.14\\c$\\LOG\\d9\\May_08_2008_log.txt|file://\\192.168.0.14\\c$\\LOG\\d9\\May_08_2008_log.txt]";
    fileapp = new FileAppender(new PatternLayout("%r [%t] %-5p %c %x - %m%n"),path, true);
    log.addAppender(fileapp);
    log.info("Logger initilized");
    }catch(Exception ex)
    ex.printStackTrace();
    java.io.FileNotFoundException: \\192.168.0.14\c$\LOG\d9\May_08_2008_log.txt (The network path was not found)
    at java.io.FileOutputStream.openAppend(Native Method)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at org.apache.log4j.FileAppender.setFile(FileAppender.java:290)
    at org.apache.log4j.FileAppender.<init>(FileAppender.java:109)
    at annwyn.logger.BioCapLogger.<init>(Logging.java:23)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Please help.
    Thanks in advance.
    Saravanan.K

    Sorry path is missing for the above request.
    path="\\192.168.0.14\c$\LOG\d9\May_08_2008_log.txt ";
    please help.
    Saravanan.K

  • Unable to  Poll  files in SFTP Location using FTP Adapter

    Hi SOA Experts,
    I have an issue like soa composite is unable to poll files.
    I have done the below configuration .
    1.created the jndi by giving values to properties host name,port,username,password,usesftp.
    2. refered the same jndi in composite.
    3. After deployment it is not pulling files from sftp location.
    From the logs I came to know it is able to list files for the directory mentioned in the composite.The permissions are read-write.
    I am using sftp server credentials were the server is running on windows.
    But unable to pick it by composite and no instances can be seen in em console.
    Can any one can provide solution ?

    1. Open your FTP Server ( ex:- Filezilla Server :- navigate to the users :- under the users you will find the shared folder.
    Check the fields . Now it should work
    Let me know if you still need any info on the same.
    Thanks
    Sury@

  • How to List files in a directory into an Array

    Does anyone know of the best way to load all of the files in a specified directory into an array. (not going into sub directories either).
    I was to be able to do something like this.... (pseudo)
    String directory = "C:\";
    String [] theList;
    do
    get next file name;
    add to theList;
    }while(!End of Directory)
    Done.

        public static void main(String args[]) {
         String directory = "C:\\";
         File dir = new File(directory);
         File [] theList = dir.listFiles();
         for(File file : theList)
             if(!file.isDirectory() && !file.isFile())
              System.out.println(file.getName());
         }This will list every item in the coot of C:\ that is not a file or a directory. Change the if statement to fit your needs.
    ~Tim

  • Internet toolkit get file date without year using ftp!!!

    Hi!
    I'm using "FTP Directory Listing.vi" to get the modification date of files on a ftp server (PXI-RT): I only get the time, day and month of the last modification but I do not get the year (For example: Aug 3 04:52)!?!
    Have anybody an idea how to get the complete date information (For example: 2005 Aug 3 04:52)?
    Thanks in advance for your help!

    I agree with Corey that you may have issues with the host computer blocking your VI, but the error 15425 seems to fix itself if you change the ftp mode from active to passive. The default is true, but wiring-in a false constant should take care of the error and enable successful file transferring.
    The reasons for this are explained here.
    National Instruments
    RIO Embedded Hardware PSE
    CompactRIO Developers Guide

  • File to IDOC scenario using FTP server

    Dear Experts,
    I'm getting IDOCs in the form of .TXT file from sender side and at reciever end we have IDOC. We are using FTP connection at sender.
    I want to know:
    1. Is FCC the only solution to integrate with PI or do we have any other option also?
    2. What all the things I need to care in designing and configuration?
    Thanks a lot.

    Dear All,
    For file to idoc scenario is there any possibility to get line items details or xml details i.e the segments and its related field details using reference id, transaction id or interface name or message id in SAP PI 7.0. I know we need to click each and every message in sxi_monitor and look for details.
    For SAP(R3 System) I can create a report and set the job for specific time period so automatically it throws the details(like reference no, document date, invoice no from) in ftp path as .csv file. The same ftp path is maintained in program.
    I wanted to check FTP--->PI postings and I have set the job at r3 system it is working fine and Im monitoring it too.
    Now the end to end scenario is FTP--->PI--->ECC(R3 system). Please help.Many Thanks.

  • Files with .a extension using ftp transport

    Hi.
    Am using ftp adapter in osb to read .txt files(e.g. abcd.txt) from ftp location, process the body/text() in OSB and then place the incoming file to an outbound folder.
    the flow is like ftp-> Proxy Service->Business Service->outbound ftp
    the service works fine where then is less load or the no. of incoming files is less.
    However,sometimes the outbound folder contains the files with .a extension at the end.(e.g. abcd.txt.a)
    Can someone tell me the rootcause of these .a file creation and the scenarios in which the .a files are created.
    Also,please tell me what are these .a files meant for?
    How,can I eliminate this while configuring the services using ftp transport.
    Thanks in adavance

    I had this recently with a variety of FTP servers, FileZilla, Microsoft etc.
    For me, it happened when the file already exists in the destination and I was expecting the destination file to be overwritten. My application would generate the same filename, say FileA.txt and expect that to be overwritten, but with OSB 10gR3 I would get files with .a stuck on the end.
    This functionality changed between ALSB and OSB and I had a patch developed to restore the ALSB functionality.
    I spent ages looking at it, and debugging FTP commands and going from memory, I'm pretty certain that the FTP adapter doesn't implement the correct FTP spec for the RNFR command according to the RFC in the case where a file already exists - it doesn't handle overwrite.
    Hope that may help.
    Pete

  • Posting a File with Date Time using FTP in a BPM scenario

    Hi All,
      I have got a following requirement within the BPM ::-
    Step 1: We receive a file from an external system using FTPS with File Content Conversion Mode. The file is a comma separated file.
    Step 2 : We need to write the same file without any changes in data elements to another File System. The file to be written will be comma separated.
    Step 3 : The data will be mapped to an RFC and there will be a RFC Call to the ECC system.
    Step 4 : On successful call to RFC, the file will be dumped into the SAP File system also.
    The issue here is in Step 2. The additional requirement for Step 2 is to name the file with the following convention -
    ABCDEF_<Date in MMDDYYYY>_<Time in HHMMSS>_<Time in ms>_data.txt
    Can you help me on how to configure this from within the BPM ? I have seen blogs and replies in forum on using UDF's for the same. I am not sure on how to do this in BPM.
    Please help !!!
    Thanks,
    Amit

    Hi,
    I dont think you required BPM in this case,you can achieve this requirement using Multi mapping.
    3 Receive comunication channels
    1)to send file to receive File directory9Content conversion required)
    2)RFC Receiver Communication channel to make a cal to SAP ECC to send RFC..
    3)One more File communication channel to send data to SAP File System.
    refer below blog.
    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
    Regarding r file name use dynam ic configuration UDF or ASMA to chnage file name format to your desired format,if you decided to use UDF then map root nod of receiver file structure in multimapping.
    Regards,
    Raj

  • SSIS 2008 - Sending file with dynamic name using FTP task

    Hi  - Thanks for taking a look -  (I'm very new to SSIS.)
    I'm trying to create an SSIS 2008 package that does the following:
    1) Execute a stored procedure on SQL.
    2) Download the results as a CSV file to a 'local' location.  The file name is set using a variable ("User::LocalFilePath") dynamically based on the current time:
    @[User::LocalFilePath] + "GreatReportName_" + "_" +(DT_STR,4,1252) DatePart("yyyy",getdate()) + Right("0" + (DT_STR,4,1252) DatePart("m",getdate()),2) + "_" + Right("0"
    + (DT_STR,4,1252) DatePart("d",getdate()),2) + "_" + Right("0" + (DT_STR,4,1252) DatePart("hh",getdate()),2) +  "_" + Right("0" + (DT_STR,4,1252) DatePart("mi",getdate()),2)
    + "_" +  Right("0" + (DT_STR,4,1252) DatePart("ss",getdate()),2) + ".csv"
    3) Transfer the CSV file to an FTP site.
    4) Delete the CSV file from the 'local' location.
    I've been able to do steps 1 and 2 so far.  However when trying the move the newly created file to the FTP site I get the error:
    "Error: 0xC002917C at Send to FTP, FTP Task: The variable "User::LocalFilePath" doesn't contain file path(s)."
    (When I set the "IsLocalPathVariable" to "False" and use a file previously created the file is correctly transferred to the FTP site.  This proves that the FTP details are correct and that the "RemotePathVariabe" is working
    correctly.)
    I have set the variable ("User::LocalFilePath") to "EvaluateAsExpression" in the variable properties.
    Can anyone help?
    Many Thanks,
    UnoT

    Hi Vaibhav,
    Thanks for your response.  I set the "DelayValidation" to "True".  However
    that didn't make any difference.
    I added in all the breakpoints, but it didn't give any results (I may be doing this incorrectly?):
    Any other suggestions?
    Thanks,
    UnoT

  • Writing timestamp on the content of file (not the filename) using FTP Adapt

    Hi Experts,
    Is it possible to write a timestamp (from the source server) to a target logfile if I'll use FTP Adapter?
    Here the scenario:
    Source:
    source.log -> the contents is AAAA (the timestamp base from the server is [06/09/10 10:00])
    - basically the source.log file is overwritten with the same content but the timestamp is changed so that's would be scenario
    it will checked by the FTP adapter....
    Target:
    target.log -> the content of the file is 06/09/10 10:00
    so probably if i have a target logfile I'll just have to append the file as this
    06/09/10 10:00
    06/09/10 10:02
    06/09/10 10:04
    06/09/10 10:06
    06/09/10 10:08
    06/09/10 10:10
    If it's possible, how will I do this? Do I need script? or just normal settings of the FTP adapter?
    R-jay

    Yes, is posibble. if i not wrong, you can do this ussing Dynamic configuration.
    see those links
    /people/ryan.crosby/blog/2009/02/27/file-xi-proxy-scenario--moving-binary-files-with-accompanying-filename-attribute-in-converted-xstring-format
    http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/frameset.htm
    Thanks
    RP

Maybe you are looking for