java - I/O ERROR: SOCKET ERRORS -


We have a J2O4 web application that is deployed on JBOSS 4.0.2 server. The application stops suddenly due to the last few days we are getting errors in logging.

java.net.SocketException: Stop the connection due to software: recv failed

The Jboss app capable of connecting to the database is not caused by the above socket errors Restarting does not even help To solve the socket error, we have to restart the production machine. After restarting the production machine it works perfectly.

What could be the reason for socket errors?

This error essentially means that someone tried to read or write with a closed socket (This window speaks for "connection reset") However, there can be a lot of reasons, and it's absolutely impossible that your app is doing this. There are some things you can try to check:

  • If you have read multiple threads and have written on the same socket, make sure that none of them are turning it off
  • Try closing; I saw this error because the OS has closed the socket before you wrote it (you can do this)

Comments