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的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2022-03-01沐雪多租宝商城源码从.NetCore3.1升级到.Net6的步骤
- 2024-11-18微软研究:RAG系统的四个层次提升理解与回答能力
- 2024-11-15C#中怎么从PEM格式的证书中提取公钥?-icode9专业技术文章分享
- 2024-11-14云架构设计——如何用diagrams.net绘制专业的AWS架构图?
- 2024-05-08首个适配Visual Studio平台的国产智能编程助手CodeGeeX正式上线!C#程序员必备效率神器!
- 2024-03-30C#设计模式之十六迭代器模式(Iterator Pattern)【行为型】
- 2024-03-29c# datetime tryparse
- 2024-02-21list find index c#
- 2024-01-24convert toint32 c#
- 2024-01-24Advanced .Net Debugging 1:你必须知道的调试工具