This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 145659 - Unable to use the java debugger on MacOSX with NB 6.5betat
Summary: Unable to use the java debugger on MacOSX with NB 6.5betat
Status: CLOSED WONTFIX
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: Macintosh Mac OS X
: P3 blocker (vote)
Assignee: issues@debugger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-30 03:24 UTC by jsheppard1961
Modified: 2010-04-29 09:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jsheppard1961 2008-08-30 03:24:46 UTC
I get the following message whenever I attempt to debug a java program. Debugging works fine on NB 6.1.

debug:
ERROR: transport error 202: connect failed: Operation timed out
FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
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:690]
Java Result: 134
BUILD SUCCESSFUL (total time: 1 minute 17 seconds)
Comment 1 Peter Pis 2008-09-02 12:00:25 UTC
Could you please try to close NB. Then verify if java process was finished either. Then start NB again.
Comment 2 jgibson 2008-11-08 03:47:06 UTC
I noticed a similar problem when I tried to debug in 6.5 (Dev v. 200810101401).

nb-debug-single:
ERROR: transport error 202: gethostbyname: unknown host ["transport.c",L41]
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510) ["debugInit.c",L500]
FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=JVMTI_ERROR_INTERNAL(113)
JDWP exit error JVMTI_ERROR_INTERNAL(113): No transports initialized
JDWP exit error JVMTI_ERROR_INTERNAL(113): No transports initializedJava Result: 133
BUILD SUCCESSFUL (total time: 7 seconds)

My machine's hostname is not defined when my laptop is not connected to my company's internal network.  However, when I
set my hostname to resolve to 127.0.0.1 in /etc/hosts the error goes away.

The error encountered by jsheppard1961 may be occurring because his hostname refers to an interface besides 127.0.0.1. 
Then when the debugger tries to attach to the external network interface the OS-X firewall blocks the attempt, leading
to the timeout.
Comment 3 Peter Pis 2008-11-11 12:14:20 UTC
Have you tried to switch the firewall off (or open port in firewall settings)? Does it work then properly? If so then
it's not issue of debugger.
Comment 4 jsheppard1961 2008-11-11 14:26:02 UTC
I found that if I placed 127.0.0.1 <my-hostname> in the /etc/hosts file and that took care of it. Looks like the
debugger was simply not able to resolve loopback address to hostname.
Comment 5 Martin Entlicher 2008-11-11 14:29:07 UTC
This is not fixable in NetBeans, the transport error in "transport.c",L41 is in JDK. NetBeans do not have sources
written in C.
Please file this bug at http://bugs.sun.com/bugdatabase/
Comment 6 Quality Engineering 2010-04-29 09:43:31 UTC
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.