FTP server in java doesn't work well at win os in some status.Why?

As we know,FTP server in java used to use "BufferedOutputStream(socket.getOutputStream())" to complete data transfer.
socket.getOutputStream() returns SocketOutputStream, and SocketOutputStream use native method:socketWrite0 to transfer data.
I writted a FTP server in java that runs at win XP or win 2003 server. FTP client download file through internet,and when file size is large(for example, 5M),the download is failure. But I changed FTP server in C++,the download is ok. These PCs have multi network card commonly.
In the first instance,I thinked my programm may be written wrong. But I have used CrossFTP and DanoFTP at sourceforge.net, they failed too.
I have compared the source code of these FTP server and they are same in data transfer.
There are another strange phenomenon.FTP server at some PC works well. For example,when I install FTP server at another PC.So I think that it is not link problem,and may be relate with PC's configuration?
Any help appreciate.

Win XP(sp2) and win 2003 server all have happened. Version of JDK is 6u2. I have doubted with version of JDK, and I changed to JDK 6u10 but problem is same.
By the way, FTP server in C++ work well on these problem machine.
I think the problem is related with configuration of machine(hardware or software), but I want to know where and why.
Thanks for any help.

Similar Messages

  • GPO don't run specified windows applications doesn't work to in win 8.1. any ideas why?

    GPO "don't run specified windows applications" doesn't work to in win 8.1. any ideas why?  it is enabled and list of progs is entered however I can still run all progs on list.  This is a local machine not on a domain.  I must
    have this work to disable games, IE, MSpaint, etc.  Computer has been restarted since enabling the GPO and also have enforced the GPO via CMD prompt.  worked fine on windows 8 and 7.

    Any success ?
    Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
    the thread.

  • Sun one server 6.0 doesn't work well with explorer

    We've sun one server 6.0 sp4 running in a sparc server as SSL server and too as common server on port 80. The most our clients , 95%, are explorer browser users.
    The server has known bugs with SSL3 , interoperatibility with MSIE problem 532427. The solutions suggested in the server documentation don't work. We tryed the solutions suggested many times and in few time we got complaints from clients, people get "this page can't be displayed". I had to set the server to work with SSL2 only , althought security's reports tell that this protocol is not safe.
    The second bug is concern the latencies loading pages with explorer. I apply the solution suggested, KeepAliveQueryMeanTime 1, it doesn't work well too. We don't feel the latencies on new machines or light browsers as avant , but we still feel these latencies with old machines or if the users uses modem. A lot of people still see very strong latencies.
    I feel the server wasn't tested enough with explorer browser , it has so many compatibility problems with this browser.I think for the most webmasters the perfect compatibility with explorer is very important.
    We payed for this server and it is worst than apache ,apache group fixed the SSL problem long time ago. Only one thing we need doesn't work well in apache then we contenue to use sun one server. But this diference is not enough to justify the use of this server if sun don't fix these problems. I'm talking about problems they exist more than 1 year, they were when i installed the server then i contenue to work with iplanet 4.1 and SSL2. I read the new version server characteristics, version 6.1 , i didn't find anything telling that these problems were fixed.
    Yair Lapin
    Hebrew University Webmaster

    Yair -
    Unfortunately this is a little vague. Can you tell us specifically what problem(s) you're having (unfortunately your current message does not go into adequate detail for us to understand the problems you see, or to make recommendations about how to remedy them).
    Thanks
    Joe

  • How to get  current working directory of the ftp server,in java application

    Hi All,
    I?m FTP?ing the file using java.net.url.
    Here is the snippet of the code:
    public void ftpFile()throws ChrsException
    try
    System.out.println("FTPing the file '"+localfile+"'");
    OutputStream os = openUploadStream(targetfile);
    FileInputStream is = new FileInputStream(localfile);
    byte[] buf = new byte[16384];
    int noOfBytesRead;
    while (true)
    //Read the data from the source File into buf
    noOfBytesRead = is.read(buf);
    if (noOfBytesRead <= 0)
    break;
    //Writes the data present in the buf to the target file
    os.write(buf, 0, noOfBytesRead);
    os.close();
    is.close();
    close();
    System.out.println ("The file '"+localfile+"' is Sucessfully FTP'd to '"+targetfile+"'");
    catch (MalformedURLException malExcp)
    System.out.println ("Invalid URL. Error in FTP'ing the file: \""+localfile+"\"");
    catch(IOException ioe)
    System.out.println ("Error in FTP'ing the file: \""+localfile+"\"");
    private OutputStream openUploadStream(String targetfile) throws MalformedURLException, IOException
    URL url = null;
    //Creates a URL object with FTP protocol
    if (user == null)
    url = new URL("ftp://" + host + "/" + targetfile + ";type=i");
    else
    url = new URL("ftp://" + user + ":" + password + "@" + host + "/" + targetfile + ";type=i");
    urlc = url.openConnection();
    //Get the OutputStream that writes to this connection.
    OutputStream os = urlc.getOutputStream();
    return os;
    Now I need to find what the current directory is when the user logs in with username and password on to the FTP server in java.
    Thanks in Advance.

    as soon as user logs in he is taken to the directory
    "ftproot/pub/abc".
    now If I execute pwd command , is hould be able to
    get to know tht user is under "ftproot/pub/abc"Three respected posters, well two plus me ;-), have just told you otherwise. The information about the current directory is (a) secure and (b) useless to the user, as he can't do anything with it. The user doesn't want to know that at all and you shouldn't try to tell him. And in any case FTP doesn't support it, again for security reasons, so you can't do it.
    Just accept it.

  • Java doesn't work on safari / xp

    Downloaded the latest Safari, 5.1.7, for Windows XP
    Downloaded the latest Java, JRE as well as tried JDK, 7.04 and configured for IE and Safari.
    Java.com test works on IE, but on Safari, refers to
    C:\Program Files\Oracle\JavaFX 2.1 Runtime\bin\server\jvm.dll
    There is no server directory, nor any jvm.dll anywhere in the Oracle install.
    What's wrong??
    Help!

    Ok, 3 days and no responses. I guess Java doesn't work on Safari/XP. Time to switch...

  • I just downlouded the latest version of the Muse CC and it doesn't work well, it freezes all the time, in particular with the tools. Example the selection tool doesen't wor at all.

    I just downlouded the latest version of the Muse CC and it doesn't work well, it freezes all the time, in particular with the tools. Example the selection tool doesn't wor at all. Is there any solution for this problem?

    Hi!
    I restarted the computer, but the same issue happens again. When I move my mouse over some object or tool, it doesn’t come active at all (only some of the tools works) When I try to change “site properties”, I can’t choose tablet or phone mode or even I can’t select the checkboxes, only thing what I can do is change the numbers (high and width) . After all the main problem is that I can’t select some of the items or functions by mouse, but only by the keyboard.

  • Audio out port doesn't work well

    Hi, I have a Macbook Pro 13-inch, Early 2011. Since I bought it I always use my Mac whit headphones, but since a month it only works well the left headphone. I think that the problem it was my headphones but no, because I used it on my phone and workes well. So i come to the conclusion that the audio out port doesn't work well. What you think? And what you recommend to me to fix this problem?

    Probably still under warranty, but not for long. Take it to the Apple Store or AASP to have it checked ASAP.

  • Urgent - Upgraded Form doesn't works well with values saved by previous ver

    Hi all,
    Form i m working on has changed many times due to change in requirments.
    Everytime i do addition in old form, it doesn't works well be data saved by older versions.
    e.g.
    Current Version that i have upgraded fetchs the data well from database on query. But when i save it, clear or exit the form and then re-query that data, it doesn't show up instead meassage comes that query caused no records to be fetched.
    i checked at database level, data is there.
    and when i tried to call data from old form, it also refused to show it (data that was previously entered by itself but then saved by new form).
    what could be the problem and i can i resolve it.
    plz note that in all of this process, there are no database level changes, only form level changes.
    regards,
    yasir

    sounds like spaces are being padded at the end of the data
    check the length of the values you've changed in sqlplus and see if they are indeed right padded

  • HT1338 java doesn't work and there is no update (via apple) available.

    Now running mountain lion. Unfortunately java doesn't work and there is no update (via apple) available. What do I do?

    Open Terminal (Applications/Utilities/Terminal.app) and type
    java -version
    press 'return' on the keyboard.
    Either
    1. You get a version number for Java, in which case enable Java in
    Applications/Utilities/Java Preferences.app
    Or
    2. You get an installer window pop up. After clicking through and installing that, enable Java as in 1. above.

  • My Mail on my mac doesn't working well

    Why my Mail on my macbook pro doesn't working well, I couldn't see the content of my e-mail messages. how do I do? I tried to reinstall my Mail, and I couldn't fix it. Please help me

    These fixes have helped others, depending on the situation.
    Have an up-to-date Time Machine or other backup before attempting any major software updates or rebuilds.
    For more about backups:
    Time Machine Basics: http://support.apple.com/kb/ht1427
    Most commonly used backup methods: 
    https://discussions.apple.com/docs/DOC-3045
    Methodology to protect your data.  Backups vs. Archives.  Long-term data protection:
    https://discussions.apple.com/docs/DOC-6031
    Make sure your software is up to date.
    Apple > Software Update...
    A general repair to fix odd behaviors in Mail is  Mailbox > Rebuild.
    Try booting in Safe Mode.
              Boot and when you hear the bong hold down the Shift key.
              It will boot slowly.  Be patient.
              Login the the user account.
              Restart.
    Another fix:
    Shut down Mail.
    Open the Finder. From the Finder menu bar click Go > Go to Folder
    Copy and paste the following
    ~/Library/Mail/V2/MailData/
    Click Go.
    Move all "Envelope" files to your desktop.
    Restart Mail and let it convert/reindex your mailboxes.
    If this worked, Trash the Envelope files file that are on your desktop,
    if not shut down Mail and put them back.
    Another fix:
    Shut down Mail.
    Open the Finder. From the Finder menu bar click Go > Go to Folder
    Copy and paste the following:
    ~/Library/Containers/com.apple.mail/Data/Library/Caches/com.apple.mail/Cache.db
    Click Go.
    Move the Cache.db file to the Trash.
    Restart your Mac and try Mail.
    Another fix:
    Open the Finder. From the Finder menu bar click Go > Go to Folder
    Copy and paste the following
    ~/Library/Mail/V2/MailData/
    Click Go.
    Move all the Accounts.plist to your desktop.
    Restart Mail.
    If this worked, Trash the Accounts.plist file that is on your desktop,
    If not shut down Mail and put it back.
    You can try restoring mail from a Time Machine backup.
    Hold down the Option key and in the Finder Go > Library
    Enter Time Machine.
    Select a date and time from when Mail was working.
    Restore Mail.

  • TS3367 facetime doesn't work well after upgrading to ios8. I need to make a call several times to connect.

    Facetime doesn't work well after upgrading to ios8.
    When I make a facetime call, it doesn't sound some times on the other side.
    When it rings on the other side and is answered, it says (connecting), but it is still ringing on my side and never connected.
    After that, I disconnect and make a second call, it sometimes connects, but not everytime.
    I need to call several times to connect. It is really hard to connect through facetime after upgrading to ios8.
    I purchased three iPad so far because of this good feature (facetime).
    Please fix this issue as soon as possible.
    Thanks.

    Hi,
    There are two easy fixes to this.
    One, you can set up Family Sharing, in which you can have two different iCloud Accounts, yet still share the same apps, music, media etc.
    Two, go to Settings and turn-off "Handoff". This can be found under the General page.
    Hope this helps!

  • Gmail doesn't work well on my ipad, it gets hung all the time. Can you kindly help me?

    Gmail doesn't work well on my ipad, it gets hung all the time. Can you kindly help me?

    You probably want to start by updating your OS, if your information is correct and you are still running 5.1.1. You may also want to try the Gmail app. I find it works very well.

  • My home key doesn't work well, and my warranty has been expired. what can I do?

    my home key doesn't work well, and my warranty has been expired. I have to press very hard to light the screen.

    Try:
    http://snapguide.com/guides/calibrate-your-home-button/?utm_expid=69945963-15
    fix for Home button
    iPhone Home Button Not Working or Unresponsive? Try This Fix
    -You can turn on Assistive Touch it add the Home and other buttons to the iPods screen. Settings>General>Accessibility>Assistive Touch
    - If not under warranty Apple will exchange your iPod for a refurbished one for:
    Apple - Support - iPod - Repair pricing
    You can do it an an Apple store by:
    Apple Retail Store - Genius Bar
    or sent it in to Apple. See:
    Apple - Support - iPod - Service FAQ
    - There are third-party places like the following that will repair the Home button. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens

  • ITunes (11.1.5.) doesn't work properly in Win 7

    Am I the only one whose iTunes doesn't work properly in Win 7? I open iTunes and few seconds later it closes itself because Windows finds some problems. I've already reinstalled the whole program but this problem still stands.

    Hello pillajunior,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
    http://support.apple.com/kb/ts1717
    Have a nice day,
    Mario

  • Migrating to Fedora (Linux) - Will Adobe products work well in WINE?

    I am doing a big change to my systems and OS's, I see that Linux will do what I need. I am finding options for my other Apps, but I would prefer to continue using my Adobe products (they are not my main Apps). Do Adobe products work well in WINE environment? I am also looking at a crossover app that works in a virtual machine.
    Thanks for any help or direction.

    Migrating software programs from one machine or HD seldom works.  You need to actually *install* software from downloads or installation disks.  You don't mention which product ver you have.
    Run the CS or CC Cleaner Tools below to wipe all traces of Adobe products from your HD.  Then re-install the customary way.
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    Typically you only need to deactivate if you had previously installed your products on 2 machines.  Creative Cloud software installed on a 3rd machine will deactivate the previous installations.
    If needed, Live Chat is the best way to reach Customer Care.  Agent availability varies by region and time zone.
    Contact Customer Care
    Nancy O.

Maybe you are looking for

  • HP Pavilion dv6618ca (dv6500) - NO AUDIO (Audio Device either disappears or no sound)

    Hi There, I hope someone can help me. I have been struggling with NO AUDIO problem for last 4 weeks. Intially I had a big red cross in front of voice control button. I had to reformat and installed original softwares using recovery. Now audio is avai

  • Strange class error when using java

    I've been attempting to use java.awt.robot to simulate a key press when a button is clicked however I'm getting a couple of errors that I can't figure out but I'm not so good when it comes to scripts. When the button "LetterButton" is pressed it shou

  • The latest update of Mail over the weekend has stopped my Mail from Working

    The Latest update of mail has stopped my Mail from launching. It comes up to tell me that it needs to import my Mail and then says - An error occurred during the import. Make sure you have enough available space in your home folder and try again. I h

  • Web Service Data Control vs Web Service Proxy

    Hi, I am using Jdev 11.1.1.4 and ADF BC and ADF Faces. I want to invoke bpel web service from my application. Which one would the the better appraoch data control or proxy? In which scenario we should go for web service data control? ~Abhijit

  • Macbook default font replaced by symbols

    I dropped my 5 year old macbook pro recently, and immediately afterwards, all the default fonts on the menus, titles, etc. were changed to a 'block A' symbol. Whenever I right click, because my macbook wants to display the symbols instead of actual w