| | |
JUnit Testing: Could not connect to: : <Socket>
Thread Solved |
Java Syntax (Toggle Plain Text)
Could not connect to: : 50404 java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:520) at java.net.Socket.connect(Socket.java:470) at java.net.Socket.<init>(Socket.java:367) at java.net.Socket.<init>(Socket.java:180) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.connect(RemoteTestRunner.java:560) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:377) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
has anyone run into this issue and or find a fix? I've not been able to get much from google. I have been running unit tests no problem them wham it poops out
. I've tried restarting, disconnecting the network cable, starting up a new instance of eclipse, disabling the windows firewall...etc
However if I run a "mvn test" on the project from the command line all goes well as expected >_<
Dont forget to spread the reputation to those that deserve!
Ending up being able to solve this one. Debugged the servlet used for the connection to the JUnit window. Found it was using the wrong port (for some reason it was placing it a single digit below the correct port) and stepped through each iteration of the servlet doConnect() method adjusting the port each time.
Once I did that JUnit testing began to work as normal; hopefully however, it will continue to do so next time I start up eclipse
Once I did that JUnit testing began to work as normal; hopefully however, it will continue to do so next time I start up eclipse
Dont forget to spread the reputation to those that deserve!
•
•
Join Date: Jun 2009
Posts: 1
Reputation:
Solved Threads: 0
Hey,
I've seen this problem, too, on a corporate laptop when it wasn't connected to the corporate network (by being either plugged directly into it or tunneled in with the laptop's Nortel VPN client). Stopping the laptop's "McAfee Host Intrusion Prevention Service" would resolve the problem and enable Eclipse to run JUnit tests.
I've seen this problem, too, on a corporate laptop when it wasn't connected to the corporate network (by being either plugged directly into it or tunneled in with the laptop's Nortel VPN client). Stopping the laptop's "McAfee Host Intrusion Prevention Service" would resolve the problem and enable Eclipse to run JUnit tests.
![]() |
Similar Threads
- need help TCPIP socket (C#)
- What did the Object of Socket Class Contain? (Java)
- unable to test JUnit installation (Java)
- TCP Socket Question (VB.NET)
- c,c++ socket application in window with open ssl (C++)
- Sometimes an error come out "Could not connect to database".Why?? (Oracle)
- What will a flash xml socket connect to - please help - insanity is near (PHP)
- Errors with smtp-vilter, ClamAv, and SpamAssassin on Fedora Core 2 (*nix Software)
- Port number, ip address, computer name (Windows 95 / 98 / Me)
Other Threads in the Java Forum
- Previous Thread: JSlider to create different number of lables
- Next Thread: How do I connect to the internet in Java?
| Thread Tools | Search this Thread |
android api applet application apps array arrays automation awt bidirectional binary birt bluetooth businessintelligence busy_handler(null) card chat class classes client code collision columns component constructor database designadrawingapplicationusingjavajslider draw eclipse error errors eventlistener exception expand fractal game givemetehcodez graphics gui guidancer html ide image inetaddress input integer intellij j2me java javafx javamicroeditionuseofmotionsensor javaprojects jme jni jpanel jtree julia linux list loop machine map method methods mobile mobiledevelopmentcreatejar myaggfun netbeans newbie oracle physics plazmic print problem program programming project recursion scanner server set sharepoint smart sms smsspam sort sortedmaps sql string subclass support swing textfield threads tree trolltech unlimited utility webservices windows





