java.net.SocketException: Software caused connection abort

http://forum.java.sun.com/thread.jspa?threadID=748677
Software caused connection abort :socket write error

java.net.SocketException: Software caused connection abort: recv failed
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.io.DataInputStream.read(DataInputStream.java:83)
at com.zjx.gps.GpsSocket.getRecord(GpsSocket.java:51)
at getLatLon.SendData(getLatLon.java:105)
at getLatLon.doGet(getLatLon.java:38)

监控中心拒绝Socket 写入数据

对于该问题的分析我向您是这样的
当我的B/S Servlet中的Socket与我的GPS车辆监控中心发送Socket连接的时候,监控中心会断开
为什么这样说那?因为我使用CS版本的GPS车辆监控系统也有提示已断开!

当监控中心服务器已断开的时候会提示
Software caused connection abort :socket write error,

造成这个问题的原因是因为端口改为了9102,我原来使用是9100!
现在一切正常,监听对话已经解决!

http://blogs.sun.com/oleksiys/entry/strange_software_caused_connection_abort

http://topic.csdn.net/t/20030522/10/1817422.html

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4860951
http://forum.java.sun.com/thread.jspa?threadID=209393&messageID=998512

This exception is caused because the client close the socket before the transaction is completed (the HTTP request). The WebContainer then try to write the response but the browser calls is no longer available. This exception may occurs when the container is processing a request and the browser close the connection or re-sent the same request.

Unfortunatly, this is an application error, not a WebContainer bug. Make sure you request is completed before sending another.

 

如何判断Socket已断开

http://www.blogjava.net/amplifier/archive/2008/01/02/110131.html

你可能感兴趣的:(Connection)