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.

12-11-2008, 10:31 AM

abhishek.bharti

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

12-11-2008, 10:33 AM

Eranga

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

04-23-2009, 10:51 PM

thegettissusy

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...

04-26-2009, 12:02 PM

Eranga

Quote:

Originally Posted by thegettissusy

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.

06-08-2010, 12:23 AM

svaens

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 ?

06-08-2010, 06:48 AM

Singing Boyo

Read the dates, people! You're best off starting a new thread, and giving more details.