凌动小生的Blog

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2013年12月18日

摘要: 最近做java swing程序在模拟httprequest请求的时候出现了这个错误java.net.SocketException: Software caused connection abort: recv failed显示是在connection在获得con.getInputStream()时随机出现这个exception,最后我感觉是 16行把输出流关闭了,这个时候server会认为连接已断开,于是该把16行放到27行,不知道对不对。 1 HttpURLConnection con = (HttpURLConnection) url.openConnection(); 2 ... 阅读全文
posted @ 2013-12-18 20:34 凌动小生 阅读(1094) 评论(0) 推荐(0) 编辑

摘要: If you have several JFrames open and you close one that has EXIT_ON_CLOSE it will close all the JFrames and exit the app.If you close one that has DISPOSE_ON_CLOSE only that oneJFramewill be closed.If you only have oneJFramethere isn't a real difference unless you have other non-deamon threads r 阅读全文
posted @ 2013-12-18 10:47 凌动小生 阅读(840) 评论(0) 推荐(0) 编辑