It's possible you're trying to write to a connection that's already closed. Another cause for this is that you closed the socket with unread data in the socket receive buffer.
This might be caused by unmatching versions of SSL. Java starts normally with SSLv2 and your server might not be able to negotiate. You have to force Java to use SSLv3. See this comment: https://goo.gl/hx0YB3
Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.
via Apache's JIRA Issue Tracker by Michael Han, 1 year ago
java.net.SocketException: Socket closed
at java.net.SocketInputStream.socketRead(Native Method)
You have a different solution? A short tip here would help you and many other users who saw this issue last week.