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 103653 - AssertionError when project location contains special characters
Summary: AssertionError when project location contains special characters
Status: VERIFIED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: App Framework (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
: 104599 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-05-10 14:31 UTC by Jana Maleckova
Modified: 2007-06-25 12:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
103653 (4.94 KB, text/plain)
2007-05-10 14:32 UTC, Jana Maleckova
Details
103653_2 (5.79 KB, text/plain)
2007-05-15 16:41 UTC, Jana Maleckova
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jana Maleckova 2007-05-10 14:31:35 UTC
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)
Comment 1 Jana Maleckova 2007-05-10 14:32:23 UTC
Created attachment 42273 [details]
103653
Comment 2 Milan Kubec 2007-05-14 11:53:03 UTC
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.
Comment 3 Jana Maleckova 2007-05-15 16:38:58 UTC
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)
Comment 4 Jana Maleckova 2007-05-15 16:41:17 UTC
Created attachment 42419 [details]
103653_2
Comment 5 Milan Kubec 2007-05-16 08:47:56 UTC
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?
Comment 6 Milan Kubec 2007-05-22 15:53:16 UTC
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.
Comment 7 Jan Stola 2007-05-23 13:08:45 UTC
*** Issue 104599 has been marked as a duplicate of this issue. ***
Comment 8 Patrick Keegan 2007-05-23 18:57:36 UTC
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)
Comment 9 Tomas Pavek 2007-05-24 15:08:24 UTC
Fixed.

/cvs/form/swingapp/src/org/netbeans/modules/swingapp/templates/NewAppWizardIterator.java
new revision: 1.5; previous revision: 1.4
Comment 10 Jana Maleckova 2007-06-25 12:14:01 UTC
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)