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

2021/11/21 20:12:33

本文主要是介绍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删除掉就不报这个错了,我就是这样解决的。



这篇关于java.net.SocketException: Software caused connection abort: socket write error的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程