You are not logged in.

#1 2008-12-31 11:20:57

The Orange Peanut
Member
Registered: 2008-01-06
Posts: 152

Having a problem with jgrasps debugger

I'm interested in using jgrasp (http://www.jgrasp.org) for my java development purposes.  However, the integrated debugger isn't working.  I get this error message in the integrated console, but no message if I launch the application from a regular terminal.

 ----jGRASP exec: java -Xnoagent -Djava.compiler=NONE -Xdebug -Xrunjdwp:transport=dt_socket,suspend=y,server=y Driver
 ----jGRASP: could not connect to debugger: Error connecting: Connection refused

I've used jgrasp on Ubuntu 7.10 and 8.10, as well as a previous install of Arch, and I've always 'installed' and launched it the same way.  I download the zip, extract it to my home directory, and run it with the following script to avoid some language encoding/decoding issues:

#! /bin/bash
LANG=en_US.ISO-8859-1 /home/nelson/jgrasp/bin/jgrasp

I'm guessing it is a path or Java issue, but I'm not sure how to diagnose or fix the problem.  The only difference that I can think of between my previous installations and this one is that I usually install the official Sun JDK but this time I opted to install OpenJDK.  Anyone know if installation paths between the two might be different so that my path variable may be pointing in the wrong place?  Also, jgrasp compiles and runs java fine... it just can't connect to the debugger.  Help?

Offline

#2 2009-01-04 10:01:26

The Orange Peanut
Member
Registered: 2008-01-06
Posts: 152

Re: Having a problem with jgrasps debugger

It appears that it isn't a problem with jgrasp but with jdb (or, at least, something that isn't IDE related specifically.)  I downloaded netbeans and it's debugger is giving me a similar problem.  Here is the output from netbeans.

debug:
ERROR: transport error 202: connect failed: Connection refused
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:708]
FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
Java Result: 1
BUILD SUCCESSFUL (total time: 0 seconds)

I googled transport error 202 and found some posts about having localhost in my /etc/hosts file, but it was already there.  Any idea what the problem is?  I'd rather not program bigger projects without some kind of debugger wink

Offline

#3 2010-04-14 23:25:11

Fingel
Member
Registered: 2009-02-28
Posts: 105

Re: Having a problem with jgrasps debugger

Any luck solving this? Im having the same problem.

Offline

Board footer

Powered by FluxBB