TestNG Java.net.SocketException:Software caused connection Abort:socket write error

Source: Internet
Author: User
Tags testng

Execute case error, prompt java.net.SocketException:Software caused connection Abort:socket write error

java.net.SocketException: Software caused connection abort: socket write errorat 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.