MyEclipse: Getting Time Out Exception while Remote Debugging in Eclipse

kiran7881 - Oct 26, 2009 - 04:13 PM
Post subject: Getting Time Out Exception while Remote Debugging in Eclipse
Hi i am using MyEclipse6.0 and Weblogic 11g .

I deployed an application in an application server and wants to debug the application from the Eclipse IDE using the RemoteDebugger .

Added some break points to my servlet .

Somehow i am geting error Timeout Exception .

The steps i followed is :

1. From the Menu I clicked on Debug As Icon and selected Open Debug Dialog.
2. From Remote Java Application , I clicked New
3. Given some Name ,
4. Under connect tab , Given the Host and port , broswed to the approiate Project
5.Under source Tab , Added the source ,
6.Under Common Tab , clicked LOcal File , checked Debug Option ,clicked Appply and Debug.

I am getting

Failed to connect to remote VM. Connection timed out.
org.eclipse.jdi.TimeoutException

Till now i am using System.out.println statements and i am fed up .Please help .
support-shalini - Oct 27, 2009 - 08:16 AM
Post subject: RE: Getting Time Out Exception while Remote Debugging in Ecl
kiran7881,
Can you give some more information?
1. What are your installation details? You can get them from MyEclipse > Installation Summary >Installation Details.
2. What are the errors logged in the log file located at workspace dir > .metadata > .log? Please copy paste the relevant errors.
3. What is the JDK that is set for weblogic?
support-joy - Oct 27, 2009 - 08:55 AM
Post subject: RE: Getting Time Out Exception while Remote Debugging in Ecl
Kiran,

I don't have visibility to your system. Can you answer few queries for me -
1. Can you copy and paste your installation details here? To get the same, open MyEclipse IDE, from menu options click on MyEclipse > Installation Summary > Installation Details
2. Have you verified the connection exist to your remote VM?
3. Can you open your error log file, it is located at [your workspace dir]/.metadata/.log and clear the contents. To clear the contents open the .log file press [Ctrl + A] and [Delete]. Next save the file
4. Reproduce the steps. .log file will record the errors. Now, copy and paste the contents of the .log file here.
5. Do you see any errors in the Problems tab? Open Window > Show/View > Problems.
6. Can you also attach screenshots of the issue you are facing
kiran7881 - Oct 27, 2009 - 02:19 PM
Post subject: RE: Getting Time Out Exception while Remote Debugging in Ecl
Shalini and joy please help me , I am fed up of using System.out.println statements .
Shalni as per the details you requested :

Installation details :

1. ** 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.1.R33x_r20070911-_19UEkpF-B7Uh2hKy75y
Build id: M20070921-1145

Eclipse RCP

Version: 3.3.1.R33x_r20070802-8y8eE8sEV3Fz0z0GlHJrXvTAUS
Build id: M20070921-1145


Eclipse Java Development Tools

Version: 3.3.1.r331_v20070629-7o7jE72EDlXAbqAcnbmyg1rf8RIL
Build id: M20070921-1145


Eclipse Plug-in Development Environment

Version: 3.3.1.R33x_r20070802-7N7M3D1VIA_52JsDFsEC
Build id: M20070921-1145


Eclipse Project SDK

Version: 3.3.1.R33x_r20070802-7M7J78_mu1mnlRa7A4Ns52XeZ6D0
Build id: M20070921-1145




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.1.R33x_v20070828\eclipse_1020.dll
-startup
C:\Program Files\MyEclipse 6.0\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar
-exitdata
498_44
-vm
C:\Program Files\MyEclipse 6.0\jre\bin\javaw.exe


FOR 2ND QESTION

!ENTRY org.eclipse.jdt.launching 4 113 2009-10-25 06:19:38.921
!MESSAGE Failed to connect to remote VM. Connection timed out.
!STACK 0
org.eclipse.jdi.TimeoutException
at org.eclipse.jdi.internal.connect.SocketTransportService.attach(SocketTransportService.java:151)
at org.eclipse.jdi.internal.connect.SocketTransportImpl.attach(SocketTransportImpl.java:43)
at org.eclipse.jdi.internal.connect.SocketAttachingConnectorImpl.attach(SocketAttachingConnectorImpl.java:118)
at org.eclipse.jdt.internal.launching.SocketAttachConnector.connect(SocketAttachConnector.java:139)
at org.eclipse.jdt.internal.launching.JavaRemoteApplicationLaunchConfigurationDelegate.launch(JavaRemoteApplicationLaunchConfigurationDelegate.java:79)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:766)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:608)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:899)
at org.eclipse.debug.internal.ui.DebugUIPlugin$7.run(DebugUIPlugin.java:1102)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

FOR 3RD QUESTION


The JDK for weblogic is 1.6
kiran7881 - Oct 27, 2009 - 02:34 PM
Post subject: RE: Getting Time Out Exception while Remote Debugging in Ecl
Joe , here are the details you asked for :


!ENTRY org.eclipse.jdt.launching 4 113 2009-10-27 06:27:17.500
!MESSAGE Failed to connect to remote VM. Connection refused.
!STACK 0
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at org.eclipse.jdi.internal.connect.SocketTransportService$2.run(SocketTransportService.java:136)
at java.lang.Thread.run(Unknown Source)

For Problems Question
2.1.The Problems are related to my java file (Saying java.sql package never used )
2.The serializable class Test does not declare a static final serialVersionUID field of type long DebugTest/src Test.java line 6 1256476365000 17

sorry i don't know how to attach a screen shot to this site .


How can i verify this "Have you verified the connection exist to your remote VM? "

I am using port as 8000 here . (Because it came as default and also while configuring weblogic server from MyEclipse the following line is there under weblogic JDK tab

-Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=48m -XX:MaxPermSize=128m -Xverify:none -da

Please let me know if i am doing any mistake
support-joy - Oct 28, 2009 - 06:11 AM
Post subject: RE: Getting Time Out Exception while Remote Debugging in Ecl
Kiran,

Thank you for the details. I forgot to ask you this - why do you need the remote debugging? Where is application located which you want to debug?
I would recommend you to go through the tutorial on remote debugging here - http://www.myeclipseide.com/documentation/quickstarts/remotedebugging/
kiran7881 - Oct 28, 2009 - 02:43 PM
Post subject: RE: Getting Time Out Exception while Remote Debugging in Ecl
what do you mean by "why do you need the remote debugging?"

The application is in my hard disk on to c drive workspace and deployed into weblogic server 11 with the help of MyElipse IDE
support-joy - Oct 29, 2009 - 04:45 AM
Post subject: RE: Getting Time Out Exception while Remote Debugging in Ecl
Kiran,

If your application is present in your c drive workspace, you don't need remote debugging. Open the workspace where your application is located, right click on your project, from the context menu choose MyEclipse > Debug As > MyEclipse Server Application and choose your app server.
All times are GMT - 6 Hours
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits