java.net.SocketException and RemoteTestRunner [message #921099] |
Sun, 23 September 2012 20:47 |
Ryan Adams Messages: 6 Registered: September 2012 |
Junior Member |
|
|
Whenever I run a JUnit test case I right click the class, go to Run As..., and click Run As JUnit Test Case. Whenever I do this I get the following stack trace
Could not connect to: : 53665
java.net.SocketException: Invalid argument: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.connect(RemoteTestRunner.java:570)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:381)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
I apologize if that is difficult to read, but from what I see it is trying to run my test case on a server. I don't want that. I don't even have a run on server option. Can anyone help me make my test cases run without a server?
[Updated on: Tue, 02 October 2012 18:36] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: java.net.SocketException and RemoteTestRunner [message #991828 is a reply to message #921099] |
Thu, 20 December 2012 09:41 |
Missing name Missing name Messages: 1 Registered: December 2012 |
Junior Member |
|
|
Please forgive my resurection of the thread, but I am having exactly the same issue, but none of the "known" workarounds seems to work.
I am running
Juno
Version: 4.2.1
Build id: M20120914-1800
with the Java 7 jre/jdk (7u10)
My eclipse.ini contains the preferIpV4 entry and when I check the plugin configuration, it ist there as well,
I have disabled IPv6 on my system, reset the card and rebooted,
The firewall has been reconfigured to allow all outbound traffic from jre/javaw.exe,
I still get the same error.
I had previously been using 7u7 / 7u9 as well as 6u30. I had the same problem using the 7x jdk's. Switching to the 6u30 cleared the problem. I deinstalled all of them, installed 7u10 deleted eclipse and did a fresh install.
All to no avail.
I realize that this is a known Java 7 Bug, but it seems to only affect me when launching jUnit as the applications themselves have no problems.
Anyone have an idea what else I can try?
|
|
|
|
Powered by
FUDForum. Page generated in 0.10136 seconds