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删除掉就不报这个错了,我就是这样解决的。
标签:SocketException,SocketOutputStream,java,socket,1877,io,ObjectOutputStream,net 来源: https://blog.csdn.net/sjxgghg/article/details/121457185