Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Debugging a remote Java application with Eclipse as the server (Socket listen)
Debugging a remote Java application with Eclipse as the server (Socket listen) [message #698677] Wed, 20 July 2011 00:12 Go to next message
ranjitiyer is currently offline ranjitiyerFriend
Messages: 1
Registered: July 2011
Junior Member
I am trying to debug a remote Java application from Eclipse, with Eclipse acting as the Server as opposed acting as a Client to the remote application. I launch the remote application with the following JVM options where 'server=n' will cause the remote application to connect back to Eclipse (Socket Listen) instead of Eclipse connecting to the remote app (Socket Attach).

-Xdebug -Xrunjdwp:transport=dt_socket,server=n,suspend=n,address=8000


Finally, I configure Eclipse to listen on a port and then launch the remote app. The app connects to Eclipse and my breakpoints are hit. However, when I launch a second instance of the remote app with the above JVM options, the app fails with the following error indicating it was unable to connect to Eclipse.

ERROR: transport error 202: connect failed: Connection refused


Is there a known issue in Eclipses' remote debugging that limits only one remote app to connect to it at a given time?

Thanks for any insights.
Re: Debugging a remote Java application with Eclipse as the server (Socket listen) [message #698698 is a reply to message #698677] Wed, 20 July 2011 02:06 Go to previous message
David Wegener is currently offline David WegenerFriend
Messages: 1445
Registered: July 2009
Senior Member
On 07/19/2011 07:12 PM, forums-noreply@eclipse.org wrote:
> I am trying to debug a remote Java application from Eclipse, with
> Eclipse acting as the Server as opposed acting as a Client to the remote
> application. I launch the remote application with the following JVM
> options where 'server=n' will cause the remote application to connect
> back to Eclipse (Socket Listen) instead of Eclipse connecting to the
> remote app (Socket Attach).
>
> -Xdebug -Xrunjdwp:transport=dt_socket,server=n,suspend=n,address=8000
>
> Finally, I configure Eclipse to listen on a port and then launch the
> remote app. The app connects to Eclipse and my breakpoints are hit.
> However, when I launch a second instance of the remote app with the
> above JVM options, the app fails with the following error indicating it
> was unable to connect to Eclipse.
>
> ERROR: transport error 202: connect failed: Connection refused
>
> Is there a known issue in Eclipses' remote debugging that limits only
> one remote app to connect to it at a given time?
>
You already have a connection active on port 8000. You can't have two
connections to the same port number. You need to specify a different
port for the second connection.

> Thanks for any insights.
Previous Topic:JDI/JDWP trace
Next Topic:Java Model Status "Invalid name specified" exception - Possible bug
Goto Forum:
  


Current Time: Fri Apr 19 19:51:42 GMT 2024

Powered by FUDForum. Page generated in 0.03325 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top