File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Java remote debugging Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java remote debugging " Watch "Java remote debugging " New topic
Author

Java remote debugging

a sq
Greenhorn

Joined: Apr 09, 2010
Posts: 3
I am trying to debug remote java application from eclipse, but getting this exception ?

Failed to connect to remote VM. Connection timed out.
org.eclipse.jdi.TimeoutException
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60046
    
  65

"a sq", please check your private messages for an important administrative matter.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
jammy chen
Greenhorn

Joined: Aug 24, 2009
Posts: 25
Could you have startuped the remote java application vm?

You must add some additional paramters which follow after java command to let your remote debug is available, for axample: java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005 AdminMain, I need to point the 5005 is your port which need build communitcate on it, then you also need to config the remote configration on eclipse, please choose the attach mode. at finnally only is run the vm it will wait the any client with it build socket communication, I think this is no way appear TimeoutException, if also you should check your firewall keep it colsed try again.


Java tutorial
 
jQuery in Action, 2nd edition
 
subject: Java remote debugging
 
Similar Threads
Trouble in using @EJB in Servlet
how to run a remote Application
File Creation on a Particular Path of a Remote Machine in java
WA #1.....word association
Debugging in java