Re: newbie's question -- basic debugging of n/w app fails
Banibrata Dutta <[email protected]> Thu, 4 Nov 2004 01:11:28 +0530
| Newsgroups | gmane.comp.java.jswat.user |
|---|---|
| Message-ID | <[email protected]> |
Forgot to add the version & environment information: I am using JSwat version 2.20, and J2SE SDK 1.5-rc, on Mandrake Linux 9.1. java.runtime.name = Java(TM) 2 Runtime Environment, Standard Edition sun.boot.library.path = /usr/local/jdk1.5.0/jre/lib/i386 java.vm.version = 1.5.0-rc-b63 java.vm.vendor = Sun Microsystems Inc. java.vendor.url = http://java.sun.com/ path.separator = : java.vm.name = Java HotSpot(TM) Client VM file.encoding.pkg = sun.io user.country = US sun.os.patch.level = unknown java.vm.specification.name = Java Virtual Machine Specification user.dir = /home/bdutta/work/SIP-AS/jain-sip/src/examples/shootist java.runtime.version = 1.5.0-rc-b63 java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment java.endorsed.dirs = /usr/local/jdk1.5.0/jre/lib/endorsed os.arch = i386 java.io.tmpdir = /tmp line.separator = java.vm.specification.vendor = Sun Microsystems Inc. os.name = Linux sun.jnu.encoding = ISO-8859-1 java.library.path = /usr/local/jdk1.5.0/jre/lib/i386/client:/usr/local/jdk1.5.0/jre/lib/i386:/usr/local/jdk1.5.0/jre/../lib/i386 java.specification.name = Java Platform API Specification java.class.version = 49.0 sun.management.compiler = HotSpot Client Compiler os.version = 2.4.21-0.13mdk user.home = /home/bdutta user.timezone = America/New_York java.awt.printerjob = sun.print.PSPrinterJob file.encoding = ISO-8859-1 java.specification.version = 1.5 user.name = bdutta java.class.path = /usr/share/java/jswat.jar:/usr/share/java/jswat-parser.jar:/usr/share/java/jclasslib.jar::/usr/local/jdk1.5.0:/usr/local/jdk1.5.0/lib/tools.jar java.vm.specification.version = 1.0 sun.arch.data.model = 32 java.home = /usr/local/jdk1.5.0/jre java.specification.vendor = Sun Microsystems Inc. user.language = en java.vm.info = mixed mode, sharing java.version = 1.5.0-rc java.ext.dirs = /usr/local/jdk1.5.0/jre/lib/ext sun.boot.class.path = /usr/local/jdk1.5.0/jre/lib/rt.jar:/usr/local/jdk1.5.0/jre/lib/i18n.jar:/usr/local/jdk1.5.0/jre/lib/sunrsasign.jar:/usr/local/jdk1.5.0/jre/lib/jsse.jar:/usr/local/jdk1.5.0/jre/lib/jce.jar:/usr/local/jdk1.5.0/jre/lib/charsets.jar:/usr/local/jdk1.5.0/jre/classes java.vendor = Sun Microsystems Inc. file.separator = / java.vendor.url.bug = http://java.sun.com/cgi-bin/bugreport.cgi sun.cpu.endian = little sun.io.unicode.encoding = UnicodeLittle sun.cpu.isalist = On Thu, 4 Nov 2004 00:49:58 +0530, Banibrata Dutta <[email protected]> wrote: > Hi, > > I am trying to run the JAIN-SIP stack's (NIST) bundled sample > application using jswat. JAIN-SIP is actually a Java implementation of > the SIP (VoIP) protocol stack, with a JAIN API over it. This > application communicates with another peer protocol stack via TCP/IP > or UDP/IP. The default port (for both TCP & UDP) is 5600 & 5700 (for > sender & receiver stacks respectively) which are run on the same > machine, so communication is via loopback interface. > > Having given the background, I have tried to run the "sender" > application as it is, but trying to run the "receiver" application > inside JSwat. The receiver application when run outside of debugger > runs just fine, but it is giving problems if I try to run it through > the debugger (not that both apps are compiled with the -g option). > > problem-1) When I start my application, I get this error... > > Cause of death: > ERROR: transport error 202: connect failed: Network is unreachable > ["transport.c",L41] > ERROR: JDWP Transport dt_socket failed to initialize, > TRANSPORT_INIT(510) ["debugInit.c",L497] > JDWP exit error JVMTI_ERROR_INTERNAL(113): No transports initialized > > FATAL ERROR in native method: JDWP No transports initialized, > jvmtiError=JVMTI_ERROR_INTERNAL(113) > > problem-2) If I run the debugee application (receiver) in a standalone > JVM and then "attach" to it via JSwat, I am able to do that. But on > attaching, I do not see the application source-code in the source-pane > in JSwat. Also, after I set breakpoints in the "attached" application, > when i do "RESUME", the main listener thread keeps spawning at a > high-rate and they keep becoming ZOMBIEs. > > Could someone help me with these problems ? > > thanks & regards, > Banibrata. > -- > -------------------- > Diamond is a piece of coal that did well under pressure. > -- -------------------- Diamond is a piece of coal that did well under pressure.