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

转载于:https://www.cnblogs.com/kaixin110/archive/2008/04/01/1132372.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值