Need help in running Junit test cases [message #258372] |
Wed, 28 January 2009 23:26 |
ying![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=yinglcs%40gmail.com) Messages: 19 Registered: July 2009 |
Junior Member |
|
|
Hi,
I am trying to run Junit test case under eclipse.
I did:
1. Debug->Run as Junit tests
But I get this error:
'Lanuching AllTests' has encountered a problem.
Cannot connect to VM.
And I find this in the .log file in eclipse:
!ENTRY org.eclipse.core.net 1 0 2009-01-28 15:03:52.799
!MESSAGE System property http.nonProxyHosts has been set to
local|*.local|169.25
4/16|*.169.254/16 by an external source. This value will be overwritten
using th
e values from the preferences
!ENTRY org.eclipse.jdt.launching 4 120 2009-01-28 15:04:03.269
!MESSAGE Cannot connect to VM
!STACK 0
java.net.SocketException: Socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
at java.net.ServerSocket.implAccept(ServerSocket.java:450)
at java.net.ServerSocket.accept(ServerSocket.java:421)
at
org.eclipse.jdi.internal.connect.SocketTransportService.acce pt(Socket
TransportService.java:95)
at
org.eclipse.jdi.internal.connect.SocketTransportImpl.accept( SocketTra
nsportImpl.java:56)
at
org.eclipse.jdi.internal.connect.SocketListeningConnectorImp l.accept(
SocketListeningConnectorImpl.java:135)
at
org.eclipse.jdt.internal.launching.StandardVMDebugger$Connec tRunnable
run(StandardVMDebugger.java:107)
at java.lang.Thread.run(Thread.java:613)
!ENTRY org.eclipse.jdt.launching 4 120 2009-01-28 15:23:53.932
!MESSAGE Cannot connect to VM
!STACK 0
java.net.SocketException: Socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
at java.net.ServerSocket.implAccept(ServerSocket.java:450)
at java.net.ServerSocket.accept(ServerSocket.java:421)
at
org.eclipse.jdi.internal.connect.SocketTransportService.acce pt(Socket
TransportService.java:95)
at
org.eclipse.jdi.internal.connect.SocketTransportImpl.accept( SocketTra
nsportImpl.java:56)
at
org.eclipse.jdi.internal.connect.SocketListeningConnectorImp l.accept(
SocketListeningConnectorImpl.java:135)
at
org.eclipse.jdt.internal.launching.StandardVMDebugger$Connec tRunnable
run(StandardVMDebugger.java:107)
at java.lang.Thread.run(Thread.java:613)
Thank you for any help.
|
|
|
Powered by
FUDForum. Page generated in 0.03051 seconds