M
MileHighCelt
I am using JUnit 3.8.1 (that came with Eclipse 3.1) to run some tests.
Yesterday everything was fine, but this morning after rebooting my
windows box, none of my tests will run. When I click the test class
and select "run as junit test" it takes 10-15 seconds before throwing
an exception such as:
Could not connect to: : 2248
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at java.net.Socket.<init>(Socket.java:309)
at java.net.Socket.<init>(Socket.java:124)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.connect(RemoteTestRunner.java:754)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:336)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
It is interesting that the port noted at the beginning of this message
increments after each attempt (it was originally 1989 when I noticed
it). Anyone know why this might suddenly be happening. I am not
trying to run any remote applications, so I don't know why junit is
trying to open sockets to various ports.
Thanks for your help.
Yesterday everything was fine, but this morning after rebooting my
windows box, none of my tests will run. When I click the test class
and select "run as junit test" it takes 10-15 seconds before throwing
an exception such as:
Could not connect to: : 2248
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at java.net.Socket.<init>(Socket.java:309)
at java.net.Socket.<init>(Socket.java:124)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.connect(RemoteTestRunner.java:754)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:336)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
It is interesting that the port noted at the beginning of this message
increments after each attempt (it was originally 1989 when I noticed
it). Anyone know why this might suddenly be happening. I am not
trying to run any remote applications, so I don't know why junit is
trying to open sockets to various ports.
Thanks for your help.