facebook

I can’t get Junit test to run

  1. MyEclipse IDE
  2.  > 
  3. WebSphere Development
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #288056 Reply

    javamike
    Member

    I’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

    #288073 Reply

    Loyal Water
    Member

    Can 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.

    #288078 Reply

    javamike
    Member

    I 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 Edition

    Version: 6.5.1 Blue GA
    Build id: 6.5.1-Blue-GA-20080715

    Eclipse Platform

    Version: 3.3.3.r33x_r20080129-_19UEl7Ezk_gXF1kouft
    Build id: M20080221-1800

    Eclipse RCP

    Version: 3.3.3.r33x_r20080129-8y8eE9UEUWI6qujeED0xT7bc
    Build id: M20080221-1800

    Eclipse Java Development Tools

    Version: 3.3.2.r33x_r20080129-7o7jE7_EDhYDiyVEnjb1pFd7ZGD7
    Build id: M20080221-1800

    Eclipse Plug-in Development Environment

    Version: 3.3.3.r33x_r20080129-7N7M5DQVIA_6oJsEFkEL
    Build id: M20080221-1800

    Eclipse Project SDK

    Version: 3.3.3.r33x_r20080129-7M7J7LB-u3aphGW6o3_VmiVfGXWO
    Build id: M20080221-1800

    Eclipse Graphical Editing Framework

    Version: 3.3.2.v20080129
    Build id: 20080221-1602

    Eclipse 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.exe

    Thanks for trying to help.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: I can’t get Junit test to run

You must be logged in to post in the forum log in