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.
NetBeans IDE Dev (Build 200705081800) 1.5.0_11; Java HotSpot(TM) Client VM 1.5.0_11-b03 Windows XP version 5.1 running on x86 en_GB (nb); Cp1252 Description: ============ invoke project wizard -> general -> Java Desktop Aplication -> fill special character (e.g ###) in offer project location and press finish an exception will occur StackTrace: =========== java.lang.AssertionError: Parameter must be a valid folder. at org.netbeans.spi.project.ui.support.ProjectChooser.setProjectsFolder(ProjectChooser.java:49) at org.netbeans.modules.swingapp.templates.NewAppWizardIterator.instantiate(NewAppWizardIterator.java:202) at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(TemplateWizard.java:996) at org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:572) at org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:393)
Created attachment 42273 [details] 103653
I'm not able to reproduce the problem, if I enter invalid folder name I got error message "Project Folder is not a valid path." in the wizard and Finish button is disabled. Please provide exact steps. Thanks.
no I catch different exception And steps to reproduce are: invoke project wizard -> general -> Java Desktop Aplication -> fill special character (e.g ###test) in project location and press finish. All buttons are disabled and an exception will occur StackTrace: =========== java.lang.reflect.UndeclaredThrowableException at $Proxy16.actionPerformed(Unknown Source) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236) at java.awt.Component.processMouseEvent(Component.java:6038)
Created attachment 42419 [details] 103653_2
I didn't mean that I catch any exception, I meant the error message that is displayed in the wizard if the folder is not valid. I'm still to able to reproduce the problem, I did exactly those steps and the project was created. Does it happen only in automated test? Or are you able to reproduce it by hand?
The same exception is thrown when user enters not yet created folder into Project Location field. The problem is that swingapp NewAppWizardIterator passes non-existing folder to ProjectChooser.setProjectsFolder() if the folder is not created yet. Reassigning.
*** Issue 104599 has been marked as a duplicate of this issue. ***
upgrading to P2, since this will make the IDE look completely broken to new users who create a Swing app framework project as their first app (and who want to change the directory where projects are generated, as I think a lot of people will)
Fixed. /cvs/form/swingapp/src/org/netbeans/modules/swingapp/templates/NewAppWizardIterator.java new revision: 1.5; previous revision: 1.4
verified on Product Version: NetBeans IDE 6.0 Milestone 10 (build 200706242201) Java: 1.6.0_02-ea; Java HotSpot(TM) Client VM 1.6.0_02-ea-b02 System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb)