Hi Guys (again ;-)),

I am running JDK1.3.0_02 under Solaris 5.8 and I am having difficulty running 
JDB against jboss. I use JDB as I use text editors and don't have jbuilder or 
vaj. Just to be sure, I downloaded and reinstalled the JDK with the lastest 
version and I asked the system administrator to make sure that all patches 
were loaded on my sparc. The box was also rebooted afterward.

I copied and modified run.sh to make rundb.sh using Vladamir's suggestion from 
an earlier thread so that the invocation became:

java -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,serve
r=y,address=2112,suspend=y $JAXP -classpath $JBOSS_CLASSPATH org.jboss.Main $@

I have noticed that -classic doesn't work as an option, but the jdb 
documentation claims that it is not necessary.

The error that I get from jdb (independently of why I'm trying to use it is) 
is:

com.sun.jdi.InternalException: Unexpected JDWP Error: 24
        at com.sun.tools.jdi.JDWPException.toJDIException(JDWPException.java:48
)        at com.sun.tools.jdi.EventRequestManagerImpl$EventRequestImpl.set(Even
tRequestManagerImpl.java:165)
        at com.sun.tools.jdi.EventRequestManagerImpl$EventRequestImpl.setEnable
d(EventRequestManagerImpl.java:132)
        at com.sun.tools.jdi.EventRequestManagerImpl$EventRequestImpl.enable(Ev
entRequestManagerImpl.java:119)
        at com.sun.tools.example.debug.tty.BreakpointSpec.resolveEventRequest(B
reakpointSpec.java:82)
        at com.sun.tools.example.debug.tty.EventRequestSpec.resolve(EventReques
tSpec.java:76)
        at com.sun.tools.example.debug.tty.EventRequestSpecList.resolve(EventRe
questSpecList.java:75)
        at com.sun.tools.example.debug.tty.EventHandler.classPrepareEvent(Event
Handler.java:249)
        at com.sun.tools.example.debug.tty.EventHandler.handleEvent(EventHandle
r.java:121)
        at com.sun.tools.example.debug.tty.EventHandler.run(EventHandler.java:8
3)
        at java.lang.Thread.run(Thread.java:484)

I am wondering if anyone has had similar experiences and possible ideas about 
the cause... This error appears to happen after running following the setting 
of a breakpoint. JDB appears to connect OK, from what I can tell.

I have been trying to connect with:
jdb -attach 2112 -sourcepath <myjbosspath>/JBoss-2.2.1_Tomcat-3.2.1/jboss/src

My classpath before running jdb and rundb.sh is equivalent to the jdk rt.jar...

Kind Regards,

Matt
-- 
Matt Davies [mailto:[EMAIL PROTECTED]]
Research Scientist, DSTC [http://www.dstc.edu.au/]



_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to