为什么Infinitest会不断给我SocketExceptions,我该怎么办?

时间:2019-02-04 18:44:40

标签: eclipse-plugin infinitest eclipse-jee

我正在Eclipse Neon中运行Infinitest(下面的版本号)。除非它无法运行,并且在Infinitest Console中,我不断收到此消息:

Error occurred during test run
java.net.ConnectException: Connection refused: connect
    at java.net.DualStackPlainSocketImpl.connect0(Native Method)
    at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:90)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:380)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:236)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:218)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:183)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403)
    at java.net.Socket.connect(Socket.java:666)
    at java.net.Socket.connect(Socket.java:606)
    at java.net.Socket.<init>(Socket.java:469)
    at java.net.Socket.<init>(Socket.java:239)
    at org.infinitest.testrunner.TestRunnerProcess.main(TestRunnerProcess.java:79)

有人知道这是什么原因吗?

面向Web开发人员的Eclipse Java EE IDE。 版本:Neon.3版本(4.6.3) 版本号:20170314-1500

Infinitest 5.2.0

编辑: 我切换了项目并得到了:

Error occurred during test run
java.net.ConnectException: Connection refused: connect
    at java.net.DualStackPlainSocketImpl.connect0(Native Method)
    at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:90)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:380)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:236)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:218)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:183)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403)
    at java.net.Socket.connect(Socket.java:666)
    at java.net.Socket.connect(Socket.java:606)
    at java.net.Socket.<init>(Socket.java:469)
    at java.net.Socket.<init>(Socket.java:239)
    at org.infinitest.testrunner.TestRunnerProcess.main(TestRunnerProcess.java:79)

相似,但不相同。我添加了它可能会有所帮助。

0 个答案:

没有答案