Official reasons for “Software caused connection abort: socket write error”

后端 未结 14 1990
别跟我提以往
别跟我提以往 2020-11-21 07:21

Given this stack trace snippet

Caused by: java.net.SocketException: Software caused connection abort: socket write error
&nbs

14条回答
  •  -上瘾入骨i
    2020-11-21 08:04

    Closed connection in another client

    In my case, the error was:

    java.net.SocketException: Software caused connection abort: recv failed
    

    It was received in eclipse while debugging a java application accessing a H2 database. The source of the error was that I had initially opened the database with SQuirreL to check manually for integrity. I did use the flag to enable multiple connections to the same DB (i.e. AUTO_SERVER=TRUE), so there was no problem connecting to the DB from java.

    The error appeared when, after a while --it is a long java process-- I decided to close SQuirreL to free resources. It appears as if SQuirreL were the one "owning" the DB server instance and that it was shut down with the SQuirreL connection.

    Restarting the Java application did not yield the error again.

    config

    • Windows 7
    • Eclipse Kepler
    • SQuirreL 3.6
    • org.h2.Driver ver 1.4.192

提交回复
热议问题