因项目需要,把clentAbortExctption的异常屏蔽掉,主要是这个异常无关紧要,处理方法:
try{
//省略
}catch (UnsupportedEncodingException e) {
String simplename = e.getClass().getSimpleName();
if(!"ClientAbortException".equals(simplename)){
e.printStackTrace();
}
} catch (IOException e) {
String simplename = e.getClass().getSimpleName();
if(!"ClientAbortException".equals(simplename)){
e.printStackTrace();
}
} finally {
if (os != null) {
try {
os.close();
} catch (IOException e) {
String simplename = e.getClass().getSimpleName();
if(!"ClientAbortException".equals(simplename)){
e.printStackTrace();
}
}
}
}
}