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 66583 - [50cat] Cannot add additional jar to ant classpath
Summary: [50cat] Cannot add additional jar to ant classpath
Status: VERIFIED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker with 1 vote (vote)
Assignee: Jan Jancura
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2005-10-12 10:59 UTC by vanob
Modified: 2006-01-18 07:03 UTC (History)
1 user (show)

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 vanob 2005-10-12 10:59:27 UTC
[ BUILD # : 200510111800 ]
[ JDK VERSION : 1.5.0_05 ]

1. Start with empty userdir
2. Go Tools/Options/Advanced/Ant
3. Press on Manage Classpath button
4. Press Add jar/zip button
5. Browse and select some jar file
6. Press ok/ok/ok
7. repeat step 2 and 3

Classpath list is empty

I wanted to add commons-net.jar file to ant classpath in order to use ftp task.
Comment 1 Milan Kubec 2005-10-12 11:18:29 UTC
Reproducible. Reassigning to correct module.
Comment 2 Milan Kubec 2005-10-12 11:19:36 UTC
Better subcomponent.
Comment 3 Milan Kubec 2005-10-12 14:36:40 UTC
Regression from Beta.
Comment 4 vanob 2005-10-12 14:50:49 UTC
Workaround:

Place the intended jar files under 
<NETBEANS-INSTALL-DIR>/ide6/ant/lib
Comment 5 Jan Jancura 2005-10-14 10:13:51 UTC
fixed in trunk:

cvs commit -m "66583 [50cat] Cannot add additional jar to ant classpath\n66604
NPE thrown when c..." -- AntCustomizer.java (in directory
C:\Hanz\Dev\trunk\ant\src\org\apache\tools\ant\module\)
Checking in AntCustomizer.java;
/cvs/ant/src/org/apache/tools/ant/module/AntCustomizer.java,v  <-- 
AntCustomizer.java
new revision: 1.13; previous revision: 1.12
done
Comment 6 claudio4j 2005-10-17 23:08:00 UTC
Tested with: JDK 5_05, 200510131600, clean user dir

Reproduce the steps provided by bug reporter, at the last "OK" to go back to the
Editor, throws:


java.lang.NullPointerException
	at org.apache.tools.ant.module.AntCustomizer.applyChanges(AntCustomizer.java:202)
	at
org.apache.tools.ant.module.AntPanelController.applyChanges(AntPanelController.java:38)
	at org.netbeans.modules.options.advanced.Model.applyChanges(Model.java:97)
	at
org.netbeans.modules.options.advanced.AdvancedPanel.applyChanges(AdvancedPanel.java:127)
	at
org.netbeans.modules.options.advanced.AdvancedPanelController.applyChanges(AdvancedPanelController.java:40)
	at org.netbeans.modules.options.OptionsPanel.save(OptionsPanel.java:347)
	at
org.netbeans.modules.options.OptionsWindowAction$OptionsPanelListener.actionPerformed(OptionsWindowAction.java:192)
	at
org.netbeans.core.windows.services.NbPresenter$ButtonListener.actionPerformed(NbPresenter.java:1064)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
	at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
	at java.awt.Component.processMouseEvent(Component.java:5488)
	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.processMouseEvent(Container.java:3892)
	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)
Comment 7 Jan Jancura 2005-10-19 14:05:07 UTC
already fixed in trunk
Comment 8 vanob 2006-01-18 07:03:02 UTC
Works fine