Results 1 to 8 of 8
- 11-05-2008, 12:19 PM #1
Member
- Join Date
- Sep 2008
- Posts
- 3
- Rep Power
- 0
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, 09:31 AM #2
Member
- Join Date
- Dec 2008
- Posts
- 1
- Rep Power
- 0
I am having the exact same problem...Reply if you have got any solutions
- 12-11-2008, 09:33 AM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Seems something cause on a software that hosting PC use. Do you have any information about that?
- 04-23-2009, 10:51 PM #4
Member
- Join Date
- Apr 2009
- Posts
- 1
- Rep Power
- 0
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 #5
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
- 06-08-2010, 12:23 AM #6
Member
- Join Date
- Jun 2010
- Posts
- 1
- Rep Power
- 0
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 #7
Senior Member
- Join Date
- Mar 2009
- Posts
- 552
- Rep Power
- 5
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!
-
Similar Threads
-
Software caused connection abort: socket write error
By kuguy in forum NetworkingReplies: 3Last Post: 04-13-2010, 03:43 PM -
Unable to connect to MySQL on another (unix) host from Eclipse on my windows host
By kairamr in forum EclipseReplies: 0Last Post: 10-31-2008, 07:07 PM -
java.sql.SQLException: [Microsoft][SQLServer JDBC Driver]System Exception: Connection
By Ram_TPS in forum JDBCReplies: 1Last Post: 10-16-2008, 02:09 PM -
using Java to access a secure webpage, Exception occurred: Connection timed out
By toby in forum Enterprise JavaBeans (EJB)Replies: 1Last Post: 08-07-2007, 06:03 AM -
Exception in thread "main" java.net.ConnectException: Connection timed out
By osval in forum Advanced JavaReplies: 1Last Post: 07-27-2007, 10:59 PM


LinkBack URL
About LinkBacks


Bookmarks