Execute case error, prompt java.net.SocketException:Software caused connection Abort:socket write error
java.net.SocketException: Software caused connection abort: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:
111
)
at java.net.SocketOutputStream.write(SocketOutputStream.java:
155
)
at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:
221
)
at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:
291
)
at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:
295
)
at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:
141
)
at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:
229
)
at java.io.BufferedWriter.flush(BufferedWriter.java:
254
)
at org.testng.remote.strprotocol.JsonMessageSender.sendMessage(JsonMessageSender.java:
41
)
at org.testng.remote.strprotocol.MessageHub.sendMessage(MessageHub.java:
42
)
at org.testng.remote.strprotocol.RemoteTestListener1.onFinish(RemoteTestListener1.java:
34
)
at org.testng.TestRunner.fireEvent(TestRunner.java:
1246
)
at org.testng.TestRunner.afterRun(TestRunner.java:
1039
)
at org.testng.TestRunner.run(TestRunner.java:
621
)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:
334
)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:
329
)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:
291
)
at org.testng.SuiteRunner.run(SuiteRunner.java:
240
)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:
52
)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:
86
)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:
1198
)
at org.testng.TestNG.runSuitesLocally(TestNG.java:
1123
)
at org.testng.TestNG.run(TestNG.java:
1031
)
at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:
132
)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:
230
)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:
76
)
|
Workaround:
Encounter this problem is not a code problem, because through MVN test to execute is not error, then analysis is testng plug-in problem, Google came out roughly also because of plug-in version problem, need to use the lower version of the testng plug-in,
The version of the unified plug-in version and Pom.xml, such as my personal unified use of the 6.9.5 version resolves the issue
Resources:
Https://github.com/cbeust/testng-eclipse/issues/91
https://github.com/cbeust/testng-eclipse/issues/329
TestNG Java.net.SocketException:Software caused connection Abort:socket write error