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