facebook

socket closed, cannot connect to VM when debugging

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

    I have a small java application that compiles and run just fine within the Eclipse IDE. The problem is that whenever I attempt to set breakpoints and debug the class (ScheduleProcess) I get an error stating that a problem occurred. The text of the message says “Launching ScheduleProcess (the time). Reason socket closed.”. I have a breakpoint set at the very first line of the main. I have made changes and recompiled to make sure that I am picking up the correct class at runtime.

    The event details state that it cannot connect to the VM. I have tried multiple JDK’s (1.4.2_09, 1.5.0_05 and the MyEclipse 6.0 included jre). Any ideas what the heck is going on? :-/

    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)

    #284376 Reply

    Loyal Water
    Member

    Can you go to MyEclipse > Installation Summary > Installation Details and paste the information here for me.

    The event details state that it cannot connect to the VM. I have tried multiple JDK’s (1.4.2_09, 1.5.0_05 and the MyEclipse 6.0 included jre).

    Didi you try changing this under Window > Preferences > Java > Installed JREs ?

    The application your trying to debug is a simple java app ?

    #284390 Reply

    Yes, I added the installed JRE’s in the prefs and then selected them for the project. The class is just a simple java app.

    *** Date:
    Thursday, April 24, 2008 11:21:31 AM CDT

    ** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.5.0_11

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 6.0.1 GA
    Build id: 6.0.1-GA-200710

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 6.0.1 GA
    Build id: 6.0.1-GA-200710

    Eclipse Graphical Editing Framework

    Version: 3.3.1.v20070814
    Build id: 20070814-1555

    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 startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    -launcher
    C:\Program Files\MyEclipse 6.0\eclipse\eclipse.exe
    -name
    Eclipse
    –launcher.library
    C:\Program Files\MyEclipse 6.0\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.3.R33x_v20080118\eclipse_1023.dll
    -startup
    C:\Program Files\MyEclipse 6.0\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar
    -exitdata
    7ac_5c
    -vm
    C:\Program Files\MyEclipse 6.0\jre\bin\javaw.exe

    #284416 Reply

    Greg
    Member

    Could there be a firewall issue that is preventing correctly debugger operation? Has the debugger worked previously?

    #284476 Reply

    @support-greg wrote:

    Could there be a firewall issue that is preventing correctly debugger operation? Has the debugger worked previously?

    I have no firewall installed and/or running. And the debugger has worked in the past…..
    g

    #284516 Reply

    I am also not able to run junit tests, same socket crap. What ports does it need open? I can run active ports and see what process may be taking over the ports.

    #284522 Reply

    Greg
    Member

    Can you just try to run junit tests or launch a java application from just a normal eclipse install. I want to rule out anything that may be because of MyEclipse configuration.

    #284533 Reply

    I installed Europa and tried the same thing, the debug and unit tests still fail with the socket error….. 🙁

    #313501 Reply

    grr
    Member

    Are you facing this problem yet? I got similar problem in eclipse, after i changed the jre to JDK at Preferences -> Java -> Installed JREs, it got solved.

    #313502 Reply

    grr
    Member

    Are you facing this problem yet? I got similar problem in eclipse, after i changed the jre to JDK at Preferences -> Java -> Installed JREs, it got solved.

    #313507 Reply

    support-swapna
    Moderator

    grr,

    Thank you for posting your findings. It will surely help other users.

    #477783 Reply

    anmol77
    Participant

    I am also not able to run junit tests, same socket crap. What ports does it need open???

    _________________
    NOOR

Viewing 12 posts - 1 through 12 (of 12 total)
Reply To: socket closed, cannot connect to VM when debugging

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