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 65658 - [50cat] if import file="nbproject/build-impl.xml" is modified to a nonexistent path, throws NCDFE from Ant debugger java.lang.NoClassDefFoundError
Summary: [50cat] if import file="nbproject/build-impl.xml" is modified to a nonexisten...
Status: CLOSED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Ant (show other bugs)
Version: 5.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-03 03:56 UTC by claudio4j
Modified: 2010-04-29 09:25 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 claudio4j 2005-10-03 03:56:39 UTC
[ BUILD # : beta 1 ]
[ JDK VERSION : 1.6 ]

tested with jdk 5_05 too

if <import file="nbproject/build-impl.xml"/> is modified to a non existant path, like "nbproject/build-implaaaaaa.xml", and do:

Files tab --> right-click build.xml --> run target it throws:

java.lang.NoClassDefFoundError: org/apache/tools/ant/module/AntModule
    at org.netbeans.modules.ant.debugger.RunTargetsAction$LazyMenu.getPopupMenu(RunTargetsAction.java:137)
    at javax.swing.plaf.basic.BasicMenuUI$Handler.mouseEntered(BasicMenuUI.java:498)
    at java.awt.Component.processMouseEvent(Component.java:5497)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
    at java.awt.Component.processEvent(Component.java:5253)
    at java.awt.Container.processEvent(Container.java:1966)
    at java.awt.Component.dispatchEventImpl(Component.java:3955)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Component.dispatchEvent(Component.java:3803)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
    at java.awt.LightweightDispatcher.trackMouseEnterExit(Container.java:4017)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3874)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
    at java.awt.Container.dispatchEventImpl(Container.java:2010)
    at java.awt.Window.dispatchEventImpl(Window.java:1774)
    at java.awt.Component.dispatchEvent(Component.java:3803)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)


  However it should print something like, property file "nbproject/build-implaaaaaa.xml" not found.
Comment 1 Jesse Glick 2005-10-03 22:48:44 UTC
Similar (but not identical) ant/debugger bug was filed recently; might be
treated as a dupe.
Comment 2 Martin Entlicher 2005-10-21 16:28:12 UTC
Reproduced. We can get the error message from the IOException which is silently
thrown into messages.log there.
Comment 3 Martin Entlicher 2005-10-21 16:59:32 UTC
The NoClassDefFoundError is caused by outdated module dependency. There is a
friend dependency on Ant module! The spec. version needs to be updated every
time ant module spec. version changes.
Comment 4 Martin Entlicher 2005-10-21 17:44:36 UTC
Fixed in trunk. Module dependency corrected, information dialog is displayed
when there's an I/O problem:

/cvs/ant/debugger/src/org/netbeans/modules/ant/debugger/RunTargetsAction.java,v
 <--  RunTargetsAction.java
new revision: 1.2; previous revision: 1.1

/cvs/ant/debugger/nbproject/project.xml,v  <--  project.xml
new revision: 1.7; previous revision: 1.6
Comment 5 Quality Engineering 2010-04-29 09:25:37 UTC
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.