java.io.IOException: Attempted read on closed stream.
2011-10-13 11:48
543 查看
java.io.IOException: Attempted read on closed stream.
尝试读取关闭流。
出现这种情况,一个原因可能是 把客户端与服务端的连接对象关闭了 或是 清空了。
ServiceClient sender = getSender();
sender.setOptions(webTest.buildOptions("getCarsList"));
OMElement result = sender.sendReceive(webTest.buildParam("getCarsList"));
// sender.cleanupTransport();
return result.toString();
尝试读取关闭流。
出现这种情况,一个原因可能是 把客户端与服务端的连接对象关闭了 或是 清空了。
ServiceClient sender = getSender();
sender.setOptions(webTest.buildOptions("getCarsList"));
OMElement result = sender.sendReceive(webTest.buildParam("getCarsList"));
// sender.cleanupTransport();
return result.toString();
相关文章推荐
- java.io.IOException: Attempted read on closed stream.可能原因及解决方案
- java.io.IOException: Attempted read on closed stream
- java.io.IOException: Attempted read from closed stream
- java.io.IOException: Attempted read from closed stream解决
- java.io.IOException: Attempted read from closed stream. 异常,解决
- java.io.IOException: Attempted read from closed stream.
- java后台调用SOE时,报异常java.io.IOException: Attempted read from closed stream
- java.io.IOException: Attempted read from closed stream.
- java.io.IOException: Stream closed解决办法
- java.io.IOException:stream closed 异常的原因及处理
- java.io.IOException:stream closed 异常的原因及处理
- java多线程运行结果写入文件错误java.io.IOException: Stream closed
- java.io.IOException: The stream is closed
- java.io.IOException:stream closed 异常的原因及处理
- hessian协议从rpc服务获取inputStream流下载文件的方式,出现异常 java.io.IOException: stream is closed
- java.io.IOException:stream closed 异常的原因及处理
- java.io.IOException:stream closed 异常的原因及处理
- Android gradle build Thread(png-cruncher_7): Stream closed java.io.IOException: Stream closed
- 【Java】异常 java.io.IOException: Stream closed 的解决办法
- java.io.IOException: Stream closed解决办法