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 65273 - Library Wrapper Module Project wizard throws exception, unable to create project
Summary: Library Wrapper Module Project wizard throws exception, unable to create project
Status: CLOSED WORKSFORME
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-28 19:00 UTC by Paul Byrne
Modified: 2005-12-12 14:50 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 Paul Byrne 2005-09-28 19:00:48 UTC
When using the Netbeans Library Wrapper Module Project to attempt to create a
new project the wizard always throws the following exception and will not allow
the project to be created.

This is using the daily build 200509251800

java.lang.reflect.UndeclaredThrowableException
	at $Proxy11.actionPerformed(Unknown Source)
	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.pumpEventsForHierarchy(EventDispatchThread.java:153)
	at java.awt.Dialog$1.run(Dialog.java:515)
	at java.awt.Dialog.show(Dialog.java:536)
	at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:800)
	at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:843)
	at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:831)
	at org.openide.util.Mutex$1.run(Mutex.java:1162)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
	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)
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at
org.openide.util.WeakListenerImpl$ProxyListener.invoke(WeakListenerImpl.java:410)
	... 36 more
Caused by: java.lang.NullPointerException
	at java.io.File.<init>(File.java:194)
	at
org.netbeans.modules.apisupport.project.ui.wizard.NewNbModuleWizardIterator.instantiate(NewNbModuleWizardIterator.java:105)
	at
org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(TemplateWizard.java:949)
	at org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:537)
	at
org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:376)
	at
org.openide.loaders.TemplateWizardIterImpl.instantiate(TemplateWizardIterImpl.java:218)
	at org.openide.WizardDescriptor.callInstantiate(WizardDescriptor.java:1183)
	at org.openide.WizardDescriptor.access$1300(WizardDescriptor.java:70)
	at org.openide.WizardDescriptor$7.run(WizardDescriptor.java:1625)
	at org.openide.WizardDescriptor.lazyValidate(WizardDescriptor.java:1147)
	at org.openide.WizardDescriptor.access$900(WizardDescriptor.java:70)
	at
org.openide.WizardDescriptor$Listener.actionPerformed(WizardDescriptor.java:1652)
	... 41 more
==>
java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at
org.openide.util.WeakListenerImpl$ProxyListener.invoke(WeakListenerImpl.java:410)
	at $Proxy11.actionPerformed(Unknown Source)
	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.pumpEventsForHierarchy(EventDispatchThread.java:153)
	at java.awt.Dialog$1.run(Dialog.java:515)
	at java.awt.Dialog.show(Dialog.java:536)
	at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:800)
	at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:843)
	at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:831)
	at org.openide.util.Mutex$1.run(Mutex.java:1162)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
	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)
Caused by: java.lang.NullPointerException
	at java.io.File.<init>(File.java:194)
	at
org.netbeans.modules.apisupport.project.ui.wizard.NewNbModuleWizardIterator.instantiate(NewNbModuleWizardIterator.java:105)
	at
org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(TemplateWizard.java:949)
	at org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:537)
	at
org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:376)
	at
org.openide.loaders.TemplateWizardIterImpl.instantiate(TemplateWizardIterImpl.java:218)
	at org.openide.WizardDescriptor.callInstantiate(WizardDescriptor.java:1183)
	at org.openide.WizardDescriptor.access$1300(WizardDescriptor.java:70)
	at org.openide.WizardDescriptor$7.run(WizardDescriptor.java:1625)
	at org.openide.WizardDescriptor.lazyValidate(WizardDescriptor.java:1147)
	at org.openide.WizardDescriptor.access$900(WizardDescriptor.java:70)
	at
org.openide.WizardDescriptor$Listener.actionPerformed(WizardDescriptor.java:1652)
	... 41 more
==>
java.lang.NullPointerException
	at java.io.File.<init>(File.java:194)
	at
org.netbeans.modules.apisupport.project.ui.wizard.NewNbModuleWizardIterator.instantiate(NewNbModuleWizardIterator.java:105)
	at
org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(TemplateWizard.java:949)
	at org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:537)
	at
org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:376)
	at
org.openide.loaders.TemplateWizardIterImpl.instantiate(TemplateWizardIterImpl.java:218)
	at org.openide.WizardDescriptor.callInstantiate(WizardDescriptor.java:1183)
	at org.openide.WizardDescriptor.access$1300(WizardDescriptor.java:70)
	at org.openide.WizardDescriptor$7.run(WizardDescriptor.java:1625)
	at org.openide.WizardDescriptor.lazyValidate(WizardDescriptor.java:1147)
	at org.openide.WizardDescriptor.access$900(WizardDescriptor.java:70)
	at
org.openide.WizardDescriptor$Listener.actionPerformed(WizardDescriptor.java:1652)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at
org.openide.util.WeakListenerImpl$ProxyListener.invoke(WeakListenerImpl.java:410)
	at $Proxy11.actionPerformed(Unknown Source)
	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.pumpEventsForHierarchy(EventDispatchThread.java:153)
	at java.awt.Dialog$1.run(Dialog.java:515)
	at java.awt.Dialog.show(Dialog.java:536)
	at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:800)
	at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:843)
	at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:831)
	at org.openide.util.Mutex$1.run(Mutex.java:1162)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
	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 1 Peter Pis 2005-10-03 11:31:51 UTC
Reassigning to "apisupport".
Comment 2 Milos Kleint 2005-10-03 16:57:22 UTC
started
Comment 3 Milos Kleint 2005-10-03 17:30:36 UTC
any steps to reproduce? I've tried and it worked for me.

did you have a module suite already present? or you clicked the browse button on
the 2nd panel and chose a suite? did you go back and forth in the wizard? 

Comment 4 Milos Kleint 2005-10-10 12:40:23 UTC
the exception comes from the fact that no suite directory was selected. But we
check for null value when validating the wizard panel, so one should not be able
to finish the wizard without having one suite selected.

-> I still haven't found a way to reproduce this error. closing as works for me.
please reopen if it still happens to you in latest build. please include
detailed steps to reproduce the error.
Comment 5 Paul Byrne 2005-10-10 23:54:52 UTC
I've just tried something slightly different.

I first created a suite project and then the library project and it seems to
have done the right thing.
Comment 6 Milos Kleint 2005-10-11 08:30:47 UTC
in other words, you got the exception when you created  the library project
first and from it's ui opened the suite project?
Comment 7 Paul Byrne 2005-10-11 18:00:27 UTC
No, previously I did not have a suite and the UI does not present the suite
selection box in that case. 

I just tried creating another library module that was not related to the suite
and the IDE has thrown an Assertion error and seems to be hung. 

OK now I've installed 5.0 beta and tried with a fresh environment and I think I
have a handle on the problem. It all depends on the projec location selected in
the last screen of the wizard. If I pick a directory with contains existing NB
projects the 'Add Suite' section is grayed out and the IDE throws an exception,
if I select an empty directory then the suite section is active and I have to
fill it in before continuing.
Comment 8 Milos Kleint 2005-10-26 08:40:42 UTC
even after multiple attempts i still cannot reproduce the problem and the
library wrapper module creates file for me.
please include detailed step-by-step instructions how to reproduce, and reopen.
thanks alot.
Comment 9 Tomas Danek 2005-12-12 14:50:02 UTC
really cannot reproduce. Closing, feel free to reopen.