我已经使用Hudson配置了fitnesse插件[版本1.4]。 我已将其设置为在每个作业运行时启动新的fitnesse服务器。当我配置作业在Hudson Master上运行但是当我配置作业在Hudson奴隶上运行时,一切正常。我收到以下错误:
Connnecting to http://localhost:9998/somepath?test&format=xml&includehtml
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:411)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:525)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:208)
at sun.net.www.http.HttpClient.New(HttpClient.java:291)
at sun.net.www.http.HttpClient.New(HttpClient.java:310)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:987)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:923)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:841)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1195)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:379)
at hudson.plugins.fitnesse.FitnesseExecutor.getHttpBytes(FitnesseExecutor.java:225)
at hudson.plugins.fitnesse.FitnesseExecutor$1.run(FitnesseExecutor.java:202)
at java.lang.Thread.run(Thread.java:662)
有任何解决此问题的建议吗?
答案 0 :(得分:0)
您是否尝试过将其连接到其他端口?可能是端口正在由其他应用程序进行,而您并不知道这一点。它发生在我身上几次。
答案 1 :(得分:0)
我得到了与您描述的完全相同的错误,结果发现重新启动托管FitNesse的服务器清除了问题,我认为FitNesse服务从未正确终止连接,因此新连接被拒绝。希望这有助于某人。