| | |
JUnit Testing: Could not connect to: : <Socket>
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
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?
Views: 856 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for Java
-xlint android animated api apple applet application arguments array arrays automation binary blackberry block bluetooth chat class classes client code component database developmenthelp draw eclipse encode error event exception file fractal game gameprogramming givemetehcodez graphics gui helpwithhomework html ide image input integer iphone j2me j2seprojects java javac javaprojects jmf jni jpanel julia lego linux list loop loops mac map method methods mobile netbeans newbie notdisplaying number object online oracle print problem program programming project recursion scanner screen server set singleton size sms socket sort sql string swing system template test textfields threads time title transfer tree tutorial-sample update windows working





