检查代码中流是否正确关闭!!! try { …… } catch(Exception e) { …… } finally { if(XXStream != null){ XXStream.close();//关闭流 } }