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

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

Given this stack trace snippet

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

14条回答
  •  抹茶落季
    2020-11-21 08:05

    I was facing the same problem with wireMock while mocking the rest API calls. Earlier I was defining the server like this:

    WireMockServer wireMockServer = null;
    

    But it should be defined like as shown below:

    @Rule 
    public WireMockRule wireMockRule = new WireMockRule(8089);
    

提交回复
热议问题