java.net.SocketException: Software caused connection abort:
socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(Unknown Source)
at java.net.SocketOutputStream.write(Unknown Source)
at java.io.ObjectOutputStream$BlockDataOutputStream.drain(Unknown Source)
at java.io.ObjectOutputStream$BlockDataOutputStream.setBlockDataMode(UnknownSource)
at java.io.ObjectOutputStream.writeNonProxyDesc(Unknown Source)
at java.io.ObjectOutputStream.writeClassDesc(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.writeFatalException(Unknown Source)
at java.io.ObjectOutputStream.writeObject(Unknown Source)
at org.testng.remote.strprotocol.SerializedMessageSender.sendMessage(SerializedMessageSender.java:21)
at org.testng.remote.strprotocol.MessageHub.sendMessage(MessageHub.java:44)
at org.testng.remote.strprotocol.RemoteTestListener.onTestStart(RemoteTestListener.java:49)
at org.testng.internal.Invoker.runTestListeners(Invoker.java:1832)
at org.testng.internal.Invoker.runTestListeners(Invoker.java:1807)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:643)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:842)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1166)
at
答案 0 :(得分:0)
如果您还没有在Eclipse中设置代理,则可能需要设置代理。
在Eclipse中,转到“窗口”菜单,然后转到“首选项”。在搜索文本框中键入“proxy”。选择网络连接。在那里你可以设置代理。
另一方面,为了设置独立Maven安装的代理,您必须编辑settings.xml
中的<maven-home>/conf
文件。编辑填充所需数据的proxies
元素:
<proxies>
<!-- proxy
| Specification for one proxy, to be used in connecting to the network.
| -->
<proxy>
<id>httpProxy</id>
<active>true</active>
<protocol>http</protocol>
<host>172.16.63.254</host>
<port>3128</port>
</proxy>
<proxy>
<id>httpsProxy</id>
<active>true</active>
<protocol>https</protocol>
<host>172.16.63.254</host>
<port>3128</port>
</proxy>
<!--<username>proxyuser</username>
<password>proxypass</password>-->
</proxies>