After installation of the update for eclipse on 1/2/2017 I got an error even for previously working tests:
An internal error occurred during: "TestNG Result Listening Job". Port value out of range: -1
I googled how to fix that - made an update for JRE to the last version 1.8.0_112 and uninstalled TestNG-Maven integration plugin but still got an error. Could somebody help me to fix the problem?
Console:
java.lang.IllegalArgumentException: port out of range:-1 at java.net.InetSocketAddress.checkPort(Unknown Source) at java.net.InetSocketAddress.(Unknown Source) at java.net.Socket.(Unknown Source) at org.testng.remote.strprotocol.BaseMessageSender.connect(BaseMessageSender.java:60) at org.testng.remote.strprotocol.MessageHub.connect(MessageHub.java:31) at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:105) at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:236) at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:81)
Error log:
java.lang.IllegalArgumentException: Port value out of range: -1 at java.net.ServerSocket.(Unknown Source) at java.net.ServerSocket.(Unknown Source) at org.testng.remote.strprotocol.BaseMessageSender.initReceiver(BaseMessageSender.java:127) at org.testng.eclipse.ui.TestRunnerViewPart$3.run(TestRunnerViewPart.java:444) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Thank you!
I restored my Windows 10 an got no error any more.. It looks like there were no problems with Java, Eclipse or my code