• Register
0 votes

Problem :

I am getting bellow error while using Sockets

java.net.socketexception: software caused connection abort: socket write error

by (6.9k points)  

1 Answer

0 votes


The Socket Exception usually comes with the specified detail message about the issue.

Example of detailed message:

Software caused connection abort: socket write error.

Possible solution: 

Please make sure that you are writing the correct length of bytes to the stream. So please double check what you want to send. 

Further Readings:


by (36.1k points)  
edited by