关于socket write error 和Software caused connection abort: recv failed 错误
来源:互联网 发布:淘宝感谢卡 编辑:程序博客网 时间:2024/06/06 01:28
Software caused connection abort: recv failed 错误
@Overridepublic void run() {// TODO Auto-generated method stubObjectInputStream ois = null;ObjectOutputStream oos = null;try {ois = new ObjectInputStream(socket.getInputStream());oos = new ObjectOutputStream(socket.getOutputStream());CommandTranser cmd=(CommandTranser) ois.readObject();cmd=execute(cmd);oos.writeObject(cmd);} catch (IOException e) {// TODO Auto-generated catch blocke.printStackTrace();} catch (ClassNotFoundException e) {// TODO Auto-generated catch blocke.printStackTrace();}finally{try {if(ois!=null)ois.close();if(oos!=null){oos.close();}} catch (IOException e) {// TODO Auto-generated catch blocke.printStackTrace();}}}
if(ois!=null)ois.close();if(oos!=null){oos.close();
这行代码删除试试~
虽然使用了资源 在关闭很正常 可是就会报错 试了好久 这样成功了
1 0
- 关于socket write error 和Software caused connection abort: recv failed 错误
- Software caused connection abort: socket write error
- Software caused connection abort: socket write error
- Software caused connection abort: socket write error
- Software caused connection abort: socket write error
- Software caused connection abort: socket write error
- Software Connection reset 和Software caused connection abort: recv failed 的一些错误
- 关于javaSocket中 Software caused connection abort: recv failed问题
- Software caused connection abort: recv failed
- Software caused connection abort: recv failed
- Software caused connection abort: recv failed异常
- Software caused connection abort: recv failed 说明
- Software caused connection abort: recv failed
- Software caused connection abort: recv failed
- Software caused connection abort: recv failed
- Software caused connection abort: recv failed
- Software caused connection abort: recv failed
- Software caused connection abort: recv failed异常
- Android 空间的阴影第三方库,ShadowViewHelper的使用
- 2016-ICPC-大连赛区总结
- TW Homework
- andorid 问题集合
- 哪一个更快:read,fread,ifstream或者mmap
- 关于socket write error 和Software caused connection abort: recv failed 错误
- Servlet过滤器
- 打造一个万能刷新加载控件
- 在Linux服务器上配置JavaWeb项目环境(Java+Tomcat)
- 文章标题
- 金九银十北漂记第4篇:面试方欣科技
- 里程计及基于双目视觉的视觉里程计(stereo visual odometry)
- 解决walle报错:宿主机代码检出检测出错,请确认svn用户名密码无误
- java获取时间的格式