- This topic has 2 replies, 2 voices, and was last updated 16 years, 5 months ago by javamike.
-
AuthorPosts
-
javamikeMemberI’m new to Eclipse, Java and Junit. I’m trying to get a Junit test to run and I keep getting a cannot connect to VM message. I’m using MyEclipse Blue 6.5, this is on a project that some other programmers have been working on for a while. I created a new workspace and a HelloJava program and I could create a junit test and run it. But I can’t get a test to run on the existing development project. I can debug it though. Here is the error:
!ENTRY org.eclipse.jdt.launching 4 120 2008-08-07 14:52:21.209
!MESSAGE Cannot connect to VM
!STACK 0
java.net.SocketException: socket closed
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(Unknown Source)
at java.net.ServerSocket.implAccept(Unknown Source)
at java.net.ServerSocket.accept(Unknown Source)
at org.eclipse.jdi.internal.connect.SocketTransportService.accept(SocketTransportService.java:95)
at org.eclipse.jdi.internal.connect.SocketTransportImpl.accept(SocketTransportImpl.java:56)
at org.eclipse.jdi.internal.connect.SocketListeningConnectorImpl.accept(SocketListeningConnectorImpl.java:135)
at org.eclipse.jdt.internal.launching.StandardVMDebugger$ConnectRunnable.run(StandardVMDebugger.java:106)
at java.lang.Thread.run(Unknown Source)Thanks
Loyal WaterMemberCan you go to MyEclipse > Installation Summary > Installation Details and paste the information here for me.
Can you just try to run junit tests from just a normal eclipse install. A similar issue was report on the forums a while back and it turned out that this was an Eclipse related issue. I want to rule out anything that may suggest this is a similar Eclipse related issue.
javamikeMemberI installed Eclipse pointed it to the work space that MyEclipse Blue is using and I think the Junit test ran. There were no VM connect errors. There were some errors when the test ran but I think that was because of our code. Below is the information from the Installation Summary detail :
*** Date:
Friday, August 8, 2008 12:00:13 PM CDT** System properties:
OS=WindowsXP
OS version=5.1
Java version=1.5.0_14*** MyEclipse details:
MyEclipse Blue Edition
Version: 6.5.1 Blue GA
Build id: 6.5.1-Blue-GA-20080715*** Eclipse details:
MyEclipse Blue EditionVersion: 6.5.1 Blue GA
Build id: 6.5.1-Blue-GA-20080715Eclipse Platform
Version: 3.3.3.r33x_r20080129-_19UEl7Ezk_gXF1kouft
Build id: M20080221-1800Eclipse RCP
Version: 3.3.3.r33x_r20080129-8y8eE9UEUWI6qujeED0xT7bc
Build id: M20080221-1800Eclipse Java Development Tools
Version: 3.3.2.r33x_r20080129-7o7jE7_EDhYDiyVEnjb1pFd7ZGD7
Build id: M20080221-1800Eclipse Plug-in Development Environment
Version: 3.3.3.r33x_r20080129-7N7M5DQVIA_6oJsEFkEL
Build id: M20080221-1800Eclipse Project SDK
Version: 3.3.3.r33x_r20080129-7M7J7LB-u3aphGW6o3_VmiVfGXWO
Build id: M20080221-1800Eclipse Graphical Editing Framework
Version: 3.3.2.v20080129
Build id: 20080221-1602Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-showsplash
-launcher
C:\Program Files\MyEclipse 6.5 Blue\eclipse\eclipse.exe
-name
Eclipse
–launcher.library
C:\Program Files\MyEclipse 6.5 Blue\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.3.R33x_v20080118\eclipse_1023.dll
-startup
C:\Program Files\MyEclipse 6.5 Blue\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar
-exitdata
16a4_7c
-clean
-vm
C:\Program Files\MyEclipse 6.5 Blue\jre\bin\javaw.exeThanks for trying to help.
-
AuthorPosts