Pblm with FTP connection

We have a process which exchanges files between UNIX and NT server. We are exchanging the files using FTP connection. But, this FTP transfer is hanging at random times. This behaviour is happening at only few times and if we start the process again immediately, it is competing successfully.
We thought that the problem will be with FTP connection and we are checking the ftp connection using ftpClient.isConnected(). If this call returns false, we are skipping without transfering the files. But, this funtion is returning "true" and the process is still hanging.
I have an assumption like.... the connection will be active and it may not be successful connection. can it be possible? If it is possible, can u pls let me know how to overcome this type of problems.
I have an idea as below:
After calling ftpClient.connect(inetAddress, ftpPort), can we verify the successful connection by using
FTPReply.isPositiveCompletion(ftpClient.getReplyCode()) ???
This should return "true" if the connection is successful connection and should return "false" if the connection is failure.
Can there be case like getting false for the above call (FTPReply.is.....) and getting "true" by calling ftpClient.isConnected() function !!!??
One more update here is..... after using ftpClient.Connect(...), we are logging into the FTP server using
ftpClient.login(user,pwd) -> this is returning "true" all the times. :-(

FTPClient.isConnected() just returns Socket.isConnected(), which is always true once it's first gone true. It doesn't (can't) report the state of the connection, only the history of what APIs have been called on the Socket. See http://archives.devshed.com/forums/java-118/help-ftpclient-isconnected-does-not-work-2084258.html
Can you set a read timeout on the FTPClient?

Similar Messages

  • TS1814 "There was a problem downloading the software fot the iphone. The network connection timed out.there's no pblm with my connection but this error keeps on showing,  what to do?

    "There was a problem downloading the software fot the iphone. The network connection timed out."
    there's no pblm with my connection but this error keeps on showing, 
    what to do? please help....

    Stop with the silly and pointless fonts.
    A simple search of the forums for the actual error would have revealed the resolution.
    Temporarily disable all security software on the computer.

  • Windows 8 not compatible with FTP connections?

    Ok I researched this for 2 days now and I am a freelancer. This is the only way I can make a living so I really need to fix this issue...
    On my windows 7 desktop, I can connect with any FTP and be fine. It will connect successfully and never log me out until my session goes idle like usual.
    However, on my Windows 8 laptop, I tried Filezilla, FireFTP, SmartFTP, Winscp, and even the Windows Explorer FTP access.. no matter what site I try to connect to via FTP (I tried around 5), it will not let me connect. This seems to be a Windows 8 issue.
    So I tried to workaround it. I installed VirtualBox with Ubuntu 13.10 and it still won't connect. Maybe because my Windows 8 OS is running in the background, who knows.
    How do I fix this? I only get the error : timed out.. or can't connect. Nothing informative. However, I connect to all 5 locations with my Windows 7 computer perfectly fine.
    I need to get this to work on my laptop so I can freelance since I travel and do contract work.. this is super frustrating and I don't want to have to switch to a mac.

    Do you have a third party firewall running?  That could be doing the blocking.
    If not, then just as a test, disable the Windows 8 firewall and try it, if it works then we have to figure out just what rule is blocking the connection.
    I have no problem with FTP on Windows 8, I use it a lot, but most of the time I just use the built in command line FTP, though I have used Internet explorer some.
    Which Windows 8 are we talking about here?  (RT, Pro, ...)
    Bob Comer - Microsoft MVP Virtual Machine

  • Problems with FTP connection in Dreamweaver 4

    I hope someone can help me with the following:
    Since recently I can only connect to the FTP host within
    Dreamweaver once a day.
    I have two defined sites in my Dreamweaver 4 and before I
    could connect several times a day both sites - no problem.
    But now it connects once and then when either trying to
    connect to the other defined site or perhaps a while later to the
    first site again (where I connected well on the same day already) I
    am getting the error message: 'FTP error - connection to the host
    cannot be madet'.
    Basically it will now always only connect daily once.
    Anyone any idea what is causing this?
    Many thanks for your help.

    These issues are most often associated with your firewall.
    Please try
    disabling it altogether.
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14834&sliceId=2
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "NicknamecomputerABC" <[email protected]>
    wrote in message
    news:g5f3d6$4p1$[email protected]..
    >I am using Windows XP.
    >
    > Am using passive FTP (this is ticked, when the
    connection works)
    > but also tried unticking it, still the same error
    message.
    >
    > Yes, contacted my host.
    > Actually just changed hosts and the previous one, where
    the same problem
    > started a while back, didn't help, mentioned something
    like, that's the
    > 'limitation in Dreamweaver' --- though this doesn't make
    any sense, I
    > think,
    > as it did work before for years?
    > Contacted also my new host, slightly more willing to
    help, had me check
    > several things (also running "command" to see whether I
    connect to their
    > server, and I did.
    >
    > Am using a AVM FritzBox (but also used that one when it
    all worked without
    > problems), it has also now FTP enabled i.e allowing port
    21.
    >
    > What I find so strange is that it does connect, just not
    more than once
    > a
    > day any longer,
    > so the settings must be right.
    >
    > I am using AVG antivirus, but also tried to not using
    it, or not using
    > their
    > shield (firewall) but still the same.
    >
    > I have also tested a third party FTP client (FileZilla)
    but there I am
    > getting
    > the following message:
    > Status: Connection established, waiting for welcome
    message...
    > Error: Could not connect to server
    >
    > So cannot even connect with FileZilla once.
    >
    > Not sure where I can see the FTP log window? (Or is this
    the message above
    > from FileZilla?
    >
    >
    > Many thanks for your assistance.
    >
    >

  • Having trouble with FTP connection

    I am trying to connect to my FTP server at home from my G5 quad. I've tried using both passive and active modes. I finally read somewhere that with the OSX firewall up you must use passive.. ok. So, I set my ftp server up for passive, set my router (only have a router on the server side) appropriately, and try and connect and it wont let me - it says "IO Error: No route to host."
    So, I disable the firewall in OSX to see if thats it and it connected fine! I re-enable the firewall, and it doesnt work, so it must be a software setting. I've tried a few FTP apps including Fetch and Cyberduck with similar errors.
    I've tried enabling port 20 as well as 21 and that didnt help. When I look at my log, I see this:
    Feb 17 16:37:08 SubG5 ipfw: 12190 Deny TCP 44.24.11.26:20 64.147.5.9:49169 in via en0
    It feels like its not handling the passsive mode well and not letting a path through. When I was playing with active mode, I was able to get it to connect, but it wouldnt give me a file listing.. it would just sit and spin. Thanks for any replies..
    G5 Quad   Mac OS X (10.4.5)   I'm frustrated.

    eb 17 16:37:08 SubG5 ipfw: 12190 Deny TCP xxx.xxx.xxx.xxx:20 xxx.xxx.xxx.xxx:49169 in via en0
    This indicates that your firewall is blocking an incoming connection on port 49169.
    For "normal" FTP either the server (passive) or the client (active) must allow incoming connections on a high (> 1024) random port for the actual data transmission. Reference - http://slacksite.com/other/ftp.html
    I would suggest that since you have control of both machines that you use SFTP which communicates entirely over port 22 (and it's a much more secure connection method). On the server you would need to enable "Remote Login (ssh)" which automatically cranks up the SFTP server functionality. On the client you will need to use a program that has the SFTP option available - most do, but Finder does not.
    Graham

  • How to send multiple files in parallel using ftp with single connection

    Hi.
    i have written code for file upload manager using ftp..
    it perfectly working with sequence file uploading in single connection..
    And i tried to upload multiple files with parallel processing in a single connection.... but it is not working properly.. i also used thread concept
    but single file only transfered and connection refused...
    my code here...
    //////////////////// main class //////////////////////////////////////////
    ftp.connect();
    ftp.login();
    String [] archivos = new  String[100];
                                      File dir = new File("C:\\Files Uploading\\");
                                       archivos = dir.list();
                                       for (int s=0; s<archivos.length;s++)
         //Start Data Transfer Here
         new DataTransfer(archivos[s]).start();
                                       Thread.sleep(1000);
    /////////////////////// thread class ////////////////////////////////
    class DataTransfer extends Thread
          String FileName="";
          String LocalPath="",RemotePath="";
           public DataTransfer(String fname)
         FileName = fname;
         LocalPath = "C:\\Files Uploading\\" + FileName;
         RemotePath = FileName;
         System.out.println(LocalPath);          
            public void run()
                        System.out.println("DataTransfer Started");
         /File Transfer Here
         try
               FileInputStream input = new FileInputStream(LocalPath);
                               Ftp_Client.storeFile(RemotePath,input);
         System.out.println("Successfully sent : " + RemotePath);
         catch (Exception exc)
              System.out.println(exc.getMessage());
              System.out.println("DataTransfer Ended");
         }otherwise tell me any other alternate way

    And i tried to upload multiple files with
    parallel processing in a single connection....
    but it is not working properly.FTP isn't a multiplexing protocol. How could it work at all?

  • Slow Connection with FTP and SSH after a migration from 10.3.9 to 10.4.6

    Hi all,
    I just move my server from 10.3.9 to 10.4.6.
    I import all my users and settings.
    When i try to connect to my server using FTP or SSH, the connexion is slow.
    I have to wait arround 45 sec before connecting to the server ( i never wait with the old 10.3.9 )
    ex of connexion + delay
    I enter : ssh myuser@myserverip
    server : Password: ( 26 sec after i hit the return key !! )
    server : Last login: Tue May 9 11:57:03 2006 from XX.XX.XX.XX ( 2 sec after )
    server : Welcome to Darwin!
    It is faster than the first time because the server must store some datas of recent connected users.
    I have the same problem with FTP
    Thx for help

    I have this same problem.
    I'm not sure how to set up or tweak DNS. Could someone point to where this is accomplished?
    I'm not using a DNS server inside our firewall because I'm not sure how it works. I have DNS service turned off on the OS X Server.

  • Adobe Dreamweaver FTP connection doesn't work with german "Umlaut" like "ö" in the severadress

    Hi
    Today I tried to establish a FTP connection to the serveradress "ftp.möbelverwandlung.com", but I get the error message that the program couldn't connect to the host. As Dreamweaver works perfectly with other serveradresses and I managed to establish a connection to "ftp.möbelverwandlung.com" with other programs, I think that the problem is the german "Umlaut" "ö". Did anyone recognize the same problem and does someone know a solution?
    Thank you very much for your help

    Here is the English translation of your previous post -
    Hello Maximilian,
    I got a even looked at my provider. Usually there must pay the original domain for the agreed period and agree a new. However, they show a accommodating for so short "duration" of a few hours like you. Try to contact your ISP phone support.
    MfG
    Hans-Günter
    Anyhow, I think you have covered the options!

  • Problem in Connecting with Ftp

    Hi all,
    While Connecting to the ftp i am getting the folloeing error.
    "An error occurred while connecting to the FTP server 'mn01crm02:21'. The FTP server returned the following error message: 'com.sap.aii.adapter.file.ftp.FTPEx: 550 /usr/sap/SAP MDM 5.5/Server/Distributions/D11_ORCL/ADCWECC/Inbound/SAP_ECC/NewPort2/Ready: The system cannot find the path specified. '. For details, contact your FTP server vendor."...
    Previously port was not opened now the port issue has been resolved. Please focus some light on this error. what can be the possible ways to overcome this error. Considering that i have gven user namr and password correctly (TO connect with ftp) in sender file adapter.
    Thanks
    Sachin

    Hi ,
    The  error is surely of the Path .
    Just perform the following steps.
    1. Logon to the FTP machine.
    2. Go the Folder where the FTP is configured....(d:/ smflder/ FTPFolder/ Parent Dir/ Child Dir)
    3. Now in communication channel if u have used the path say (Parent Dir/ Child Dir)
    4. Then specify the Parent folder also in the channel for e.g. (FTPFolder/ Parent Dir/ Child Dir)
    This must solve your problem
    Regards,
    Ashwin M
    Mark the helpful answer

  • PI 7.1 FTP(S) - adapter with implicit connection type?

    Hi,
    We have encountered some issues involving FTP connection with SSL/TLS because the standard FTP - adapter in SAP PI 7.1 doesn't support the connection type "implicit". Many of our customers use FTP servers with connection type implicit and are somewhat reluctant or unable to configure the server to accept explicit connection type.
    Now, I wonder if there is any patch or update which makes the FTP adapter to communicate with connection type "implicit"?
    Or if you have another workaround for us to utilize?

    please refer this blog for the FTPs connection.
    http://scn.sap.com/people/rajasekhar.reddy14/blog/2010/04/13/how-to-configure-ftps-in-file-adapter

  • FTP Connection with backslash in username

    Hello,
    I am using Peter Torpey's FTPConnection.jsx to upload rendered movies to a server directly from After Effects. Works great on my server! Now, I have to use Microsoft's Azure for hosting this project, and their FTP username includes a backslash. The connection is refused ("Login failed: Server rejected username"). Seems like ExtendScript's Socket doesn't like the backslash in the FTP username!
    The logfile contains (domain\username is my ftp username):
    --Put: successfully connected
    +220 Microsoft FTP Service
    --Found code: 220
    :USER domain\username
    +451 The parameter is incorrect.
    :QUIT
    When defining the ftp username in JavaScript, I escape the backslash:
    var ftpUser = 'domain\\username';
    The FTP credentials work with a FTP desktop client (cyberduck in my case) and also in command line.
    Any tips of how to get this working?

    Hi Arie,
    thanks for your help. Unfortunately the two suggested solutions don't work. I have also tried other options with quotation marks (which work in command-line ftp) like
    var ftpUser='\"domain\\username\"';
    and none of them work.
    I can definitely verify that the FTP connection works with an FTP client or via the command line in OS X.
    I can also connect without any problems with a PHP script, so the current workaround uploads to a "normal" FTP server and then a PHP script transfers the files to the Azure server.
    Best,
    Andreas

  • Recurring ftp connection problems with CS3

    I've been experiencing recurring connection problems to a live server.   
    The settings have not changed, and the "test" verifies connection is working.
    I can connect to the site via ftp successfully using the same information.
    All I see in the remote server box is /www/ ,  I cannot open the folder however.
    The only way to resolve is to delete my profile on the computer and recreate.   This fixes it for up to 1 week, but sometimes as little as 24 hours.
    Others who log in to the same machine and use Dreamweaver are able to connect successfully.
    I work on a network and do use 2 separate work stations.   On one of these workstations is also installed Avid Newscutter, the full Adobe CS suite and a programme called Flip (for working with xml).    I had no problems until I started working at this terminal.
    The company technical support is at a loss, so I was hoping folk here might have some suggestions?  I've been using Dreamweaver, various versions both at work and home for many years and have never experienced a problem like this before.
    thanks.
    Karen

    Hi Jon
    I am getting two error messages, one that says that the log on info/password is wrong, the other is a large message that tells me to check everything from cables to firewalls. My provider has recently been updating their systems and I have had to change passwords etc, but they insist that it is nothing to do with them. I am sure that they have changed some protocols or something that dreamweaver won't recognise.
    I am connected to the internet via a cable to a belkin router and have no problems with internet connections.
    I have tested the adobe ftp test connection through dreamweaver which worked fine.
    I haven't tried filezilla - I'll have a look.
    Jane

  • FTP connection possible with J2ME?

    Hi all,
    Does anybody if it is possible to make an FTP connection for a J2ME midlet (like you would make an http connection). If so, how can I do this and where could I find some information about this?
    Kind regards

    In MIDP 1.0, only HTTP support is required. With only HTTP, you could set up a custom proxy (which could be a Java servlet, CGI script, etc.) that does FTP on behalf of the client. So the client would make an HTTP request to, say, http://www.example.com/ftpProxy?url=ftp%3A%2F%2Fftp.example.com%2Ffoo%2Fbar, and the server-side ftpProxy program would fetch and return the specified FTP URL.
    Some phones support raw sockets, in which case a proxy wouldn't be needed and you could implement FTP yourself (by reading the appropriate RFC). But this wouldn't be very portable as there are J2ME MIDP phones that only support HTTP.

  • Transfering .csv file from SAP to NON-SAP using FTP connection

    Dear All,
    I am able to place the .CSV file successfully to other system using FTP connection, but when i open the file I could see the gaps between each record. I mean 1st line with the 1st record and 2nd line having a GAP and 3rd line with the 2nd record and so ..on as shown below
    1     1/1/2009     0     41000027
    2     1/1/2009     0     41000027
    3     1/1/2009     0     41000027
    I have declared an internal table as below
    TYPES: BEGIN OF ty_charlist,
             line(5000) type c,
           END OF ty_charlist.
    DATA:  w_charlist TYPE ty_charlist,
                 t_charlist TYPE TABLE OF ty_charlist.
    And concatenating each field seperated by ','
    CONCATENATE  res1 res2 res3 res4 res5 res6 res7 res8 res9 res10 res11 res12 res13 res14 res15 res16 res17 res18 res19  res20 res21 res22 res23 res24 res25 res26 res27 res28 res29 res30 res31 res32 res33 res34 res35 res36 res37 res38 res39
    INTO w_charlist-line SEPARATED BY ','.
    APPEND w_charlist TO t_charlist.
    Now T_CHARLIST contains 50 records which needs to be placed on other system. I can see 50 records but gap is coming
    Here res1, res2 and so on are declared as TYPE STRING..
    Please do help me this issue
    Thanks
    Prava

    Hello dprava ,
    Try to be assisted with these examples .
    1. [http://wiki.sdn.sap.com/wiki/display/ABAP/FTPfiletransferinBackground]
    2. [Reg: FTP Connection; - SAP examples programs
    Thank you,
    Boaz

  • Adding a site to a ftp connection

    Hi,
    Just upgraded to DW CS4 and in doing so I pressed a wrong
    button...!
    I have numerous sites in my site manager window and one I am
    working on has reverted to being nothing more than an ftp
    connection. This was my fault as I went back into the set-up window
    for the site (edit site) and made it an ftp connection only, rather
    than a full site with connections to local folders as well as
    remote connections.
    Problem is, now on the site manager list the icon has changed
    from the folder with the name of the site to the ftp//sitename here
    icon and I have no idea how to get it back so I have access to my
    local folder.
    Any help?
    Thanks,
    SunsV

    > Problem is, now on the site manager list the icon has
    changed from the folder
    > with the name of the site to the ftp//sitename here icon
    and I have no idea
    > how
    > to get it back so I have access to my local folder.
    There really isn't any way to go back from that choice.
    so- Make a New site definition and pick "site" and not "RDS"
    connection.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

Maybe you are looking for