Simple Remote Debugging [message #104390] |
Tue, 14 October 2003 11:17  |
Eclipse User |
|
|
|
Originally posted by: rami.abramson.terayon.com
Hello all,
We are trying to remote debug a program "TasksServer", jdk1.3.1 .
Our launch command from the command line is:
java -Xdebug -Xnoagent -Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,address=RAMIA1-2k:4444 TasksServer
and we get:
Error [2] in connect() call!
err:: No such file or directory
Socket transport failed to init.
Transport dt_socket failed to initialize, rc = -1.
FATAL ERROR in native method: No transports initialized
We have tried our ports too and the result is the same.
Ofcourse when we try to connect from Eclipse we get:
-ERROR:Launching TasksServer: failed to connect to remote VM.
|-Establishing connection...
How can one remote debug?
thank you,
Gabby and Rami
|
|
|
Re: Simple Remote Debugging [message #104473 is a reply to message #104390] |
Tue, 14 October 2003 12:07   |
Eclipse User |
|
|
|
Originally posted by: tma.zurich.ibm.com
try using the "server=y" flag when starting the program, as in:
-Xrunjdwp:transport=dt_socket,server=y,address=4444
Eclipse tries to connect to the VM, your command line asks the VM to
connecto to eclipse.
Thomas
Rami A. wrote:
> Hello all,
>
> We are trying to remote debug a program "TasksServer", jdk1.3.1 .
> Our launch command from the command line is:
> java -Xdebug -Xnoagent -Djava.compiler=NONE
> -Xrunjdwp:transport=dt_socket,address=RAMIA1-2k:4444 TasksServer
>
> and we get:
> Error [2] in connect() call!
> err:: No such file or directory
> Socket transport failed to init.
> Transport dt_socket failed to initialize, rc = -1.
> FATAL ERROR in native method: No transports initialized
>
> We have tried our ports too and the result is the same.
>
> Ofcourse when we try to connect from Eclipse we get:
> -ERROR:Launching TasksServer: failed to connect to remote VM.
> |-Establishing connection...
>
>
> How can one remote debug?
>
> thank you,
>
> Gabby and Rami
>
|
|
|
Re: Simple Remote Debugging [message #104910 is a reply to message #104473] |
Wed, 15 October 2003 03:30   |
Eclipse User |
|
|
|
Originally posted by: rami.abramson.terayon.com
Thomas Mäder wrote:
> try using the "server=y" flag when starting the program, as in:
> -Xrunjdwp:transport=dt_socket,server=y,address=4444
> Eclipse tries to connect to the VM, your command line asks the VM to
> connecto to eclipse.
> Thomas
> Rami A. wrote:
> > Hello all,
> >
> > We are trying to remote debug a program "TasksServer", jdk1.3.1 .
> > Our launch command from the command line is:
> > java -Xdebug -Xnoagent -Djava.compiler=NONE
> > -Xrunjdwp:transport=dt_socket,address=RAMIA1-2k:4444 TasksServer
> >
> > and we get:
> > Error [2] in connect() call!
> > err:: No such file or directory
> > Socket transport failed to init.
> > Transport dt_socket failed to initialize, rc = -1.
> > FATAL ERROR in native method: No transports initialized
> >
> > We have tried our ports too and the result is the same.
> >
> > Ofcourse when we try to connect from Eclipse we get:
> > -ERROR:Launching TasksServer: failed to connect to remote VM.
> > |-Establishing connection...
> >
> >
> > How can one remote debug?
> >
> > thank you,
> >
> > Gabby and Rami
> >
Thank you, it worked.
|
|
|
|
Re: Simple Remote Debugging [message #105947 is a reply to message #105739] |
Thu, 16 October 2003 05:08  |
Eclipse User |
|
|
|
Originally posted by: tma.zurich.ibm.com
Joy Himmelfarb wrote:
> I am having a similar problem. I start WebLogic 7.0, adding the following
> to the command line:
> -Xdebug -Xrunjdwp:transport=dt_socket server=y suspend=n
>
It's -Xrunjdwp:transport=dt_socket,server=y,suspend=n (with commas
instead of spaces). The server VM seems to ignore extra arguments.
|
|
|
Powered by
FUDForum. Page generated in 0.04856 seconds