tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michalski, RafaƂ" <RMichal...@eragsm.pl>
Subject attaching jdb
Date Tue, 03 Apr 2001 14:00:04 GMT
I cannot attach the standart debugger to Tomcat.
In tomcat.sh, the all important line reads:

  $JAVACMD -Xdebug -Xnoagent -Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n $TOMCAT_OPTS
-Dtomcat.home=${TOMCAT_HOME}  org.apache.tomcat.startup.Tomcat "$@" &

Trying to attach with jdb

  jdb -attach 8000

I get the following error:


  Internal exception:  java.lang.NullPointerException
	at
com.sun.tools.example.debug.tty.VMConnection.open(VMConnection.java:138)
	at com.sun.tools.example.debug.tty.Env.init(Env.java:68)
	at com.sun.tools.example.debug.tty.TTY.main(TTY.java:923)

With the default suspend=y option,
I _can_ attach the debugger.

I would be partially satisfied 
knowing whether this is a Tomcat problem
or a general problem with remote
debugging in Java 1.3.
Not working, for example.


Greats 
Rafal.

 @^^    -      
<     // \\     
  \___/ 
   /||\ 
  ^ ^^ ^ 


Mime
View raw message