Results 1 to 8 of 8
  1. #1
    vidhya.sk is offline Member
    Join Date
    Sep 2008
    Posts
    3
    Rep Power
    0

    Default Exception: An established connection was aborted by the software in your host machine

    Hi

    I wrote a ServerProgram and ClientProgram using NIO Sockets.
    Server reads the contents from a file and writes it to the client socket channel and the client reads from the socket channel and writes it out to a file.I get this following error on the server side.The error points to the line where the server writes data to the socket channel.

    Exception in thread "main" java.io.IOException: An established connection was aborted by the software in your host machine
    at sun.nio.ch.SocketDispatcher.write0(Native Method)
    at sun.nio.ch.SocketDispatcher.write(Unknown Source)
    at sun.nio.ch.IOUtil.writeFromNativeBuffer(Unknown Source)
    at sun.nio.ch.IOUtil.write(Unknown Source)
    at sun.nio.ch.SocketChannelImpl.write(Unknown Source)
    at first.nioserver.main(nioserver.java:76)

    Can anyone help me to handle this issue?

    Thanks in advance.

  2. #2
    Join Date
    Dec 2008
    Posts
    1
    Rep Power
    0

    Default

    I am having the exact same problem...Reply if you have got any solutions

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    Seems something cause on a software that hosting PC use. Do you have any information about that?

  4. #4
    thegettissusy is offline Member
    Join Date
    Apr 2009
    Posts
    1
    Rep Power
    0

    Default What to do if nothing happens.

    I'm the only one in this world. Can please someone join me in this life? Or maybe death...

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,371
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by thegettissusy View Post
    I'm the only one in this world. Can please someone join me in this life? Or maybe death...
    Please don't post unrelated stuff in the thread. If you have any question please ask it in the correct place. Don't do this again, may be you can get ban in the forum.

  6. #6
    svaens is offline Member
    Join Date
    Jun 2010
    Posts
    1
    Rep Power
    0

    Default I have the same problem

    I see the same error in a connection between two java applications (that I wrote) on the same machine.

    The client app is using nio SocketChannel.
    The server app not.

    I see the error during the reply from the server.

    The most disturbing thing is that in another module, where the client is using old socket io, the problem does not occur.

    I could start going down the road of checking for agressive virus checkers and what have you, like has been suggested in other forums, but then, why do they affect only my nio and not my io ?

  7. #7
    Singing Boyo is offline Senior Member
    Join Date
    Mar 2009
    Posts
    552
    Rep Power
    6

    Default

    Read the dates, people! You're best off starting a new thread, and giving more details.
    If the above doesn't make sense to you, ignore it, but remember it - might be useful!
    And if you just randomly taught yourself to program, well... you're just like me!

  8. #8
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

Similar Threads

  1. Replies: 3
    Last Post: 04-13-2010, 04:43 PM
  2. Replies: 0
    Last Post: 10-31-2008, 08:07 PM
  3. Replies: 1
    Last Post: 10-16-2008, 03:09 PM
  4. Replies: 1
    Last Post: 08-07-2007, 07:03 AM
  5. Replies: 1
    Last Post: 07-27-2007, 11:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •