java.net.SocketException: Software caused connection abort: socket write error

java.net.SocketException: Software caused connection abort: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:111)
at java.net.SocketOutputStream.write(SocketOutputStream.java:155)
at java.io.ObjectOutputStream B l o c k D a t a O u t p u t S t r e a m . d r a i n ( O b j e c t O u t p u t S t r e a m . j a v a : 1877 ) a t j a v a . i o . O b j e c t O u t p u t S t r e a m BlockDataOutputStream.drain(ObjectOutputStream.java:1877) at java.io.ObjectOutputStream BlockDataOutputStream.drain(ObjectOutputStream.java:1877)atjava.io.ObjectOutputStreamBlockDataOutputStream.setBlockDataMode(ObjectOutputStream.java:1786)
at java.io.ObjectOutputStream.writeNonProxyDesc(ObjectOutputStream.java:1286)
at java.io.ObjectOutputStream.writeClassDesc(ObjectOutputStream.java:1231)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1427)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
at java.io.ObjectOutputStream.writeFatalException(ObjectOutputStream.java:1577)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:351)
at com.example.emailWeb.Socket.Proxy.FileOwnerDemo.main(FileOwnerDemo.java:52)

Java Socket
OutputStream os,InputStream is的try catch删除掉就不报这个错了,我就是这样解决的。

上一篇:Egret之P2物理引擎(测试)


下一篇:06 IO流 04 File类的理解