- This topic has 11 replies, 6 voices, and was last updated 8 years, 6 months ago by anmol77.
-
AuthorPosts
-
garage_logicianMemberI 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)
Loyal WaterMemberCan 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 ?
garage_logicianMemberYes, 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 WorkbenchVersion: 6.0.1 GA
Build id: 6.0.1-GA-200710Eclipse Graphical Editing Framework
Version: 3.3.1.v20070814
Build id: 20070814-1555Eclipse 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 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
GregMemberCould there be a firewall issue that is preventing correctly debugger operation? Has the debugger worked previously?
garage_logicianMember@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
garage_logicianMemberI 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.
GregMemberCan 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.
garage_logicianMemberI installed Europa and tried the same thing, the debug and unit tests still fail with the socket error….. 🙁
grrMemberAre 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.
grrMemberAre 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.
support-swapnaModeratorgrr,
Thank you for posting your findings. It will surely help other users.
anmol77ParticipantI am also not able to run junit tests, same socket crap. What ports does it need open???
_________________
NOOR -
AuthorPosts