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 55760 - <j2seproject1:debug> does inadequate error checking
Summary: <j2seproject1:debug> does inadequate error checking
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 4.x
Hardware: All All
: P4 blocker (vote)
Assignee: Jan Jancura
Depends on:
Reported: 2005-03-02 13:13 UTC by Milan Kubec
Modified: 2009-12-21 04:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Milan Kubec 2005-03-02 13:13:18 UTC
[dev-200503011900, JDK 1.5.0_02]

If user invokes debug target on command line for
project created in IDE she would get really
scaring error message:

[java] FATAL ERROR in native method: JDWP No
transports initialized,
[java] ERROR: transport error 202: connect failed:
Cannot assign requested address ["transport.c",L41]
[java] ERROR: JDWP Transport dt_socket failed to
initialize, TRANSPORT_INIT(510) ["debugInit.c",L497]
[java] JDWP exit error JVMTI_ERROR_INTERNAL(113):
No transports initialized
[java] Java Result: 1

Similar message is printed on JDK 1.4. I think
that's it's useless to try to start debugee
process if no debugger is waiting.
Comment 1 Jesse Glick 2005-03-10 16:49:16 UTC
Right symptoms, wrong diagnosis. The debug target is OK if you set
-Djpda.address=..., but the current build-impl.xml does not check that it is
set. Need a one-line addition:

    <target name="-init-macrodef-debug">
        <macrodef name="debug" uri="">
            <attribute name="classname" default="${main.class}"/>
            <attribute name="classpath" default="${debug.classpath}"/>
            <attribute name="args" default="${application.args}"/>
                <!-- HERE: -->
                <fail unless="jpda.address">Must set property 'jpda.address' to
start program in debugger</fail>
                <java fork="true" classname="@{classname}" dir="${work.dir}"
                    <!-- ... -->
Comment 2 Quality Engineering 2009-12-21 04:49:20 UTC
This bug was reported against NetBeans IDE 6.0 or an older release, or against a non-maintained module. NetBeans team does not have enough resources to get to this issue, therefore we are closing the issue as a WONTFIX. If you are interested in providing a patch for this bug, please see our NetFIX guidelines for how to proceed. 

We apologize for any inconvenience.

Thank you.
The NetBeans Team