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 156760 - IAE : Component name already in use: maritalStatus
Summary: IAE : Component name already in use: maritalStatus
Status: RESOLVED WORKSFORME
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@guibuilder
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-14 11:07 UTC by Lukas Hasik
Modified: 2009-01-15 08:16 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 57362


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Hasik 2009-01-14 11:07:46 UTC
Build: NetBeans IDE 6.1 (Build 200804211638)
VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_04-b12
OS: Linux, 2.6.24.7-92.fc8, i386
User comments: 
STACKTRACE: (first 10 lines)
java.lang.IllegalArgumentException: Component name already in use: maritalStatus
        at org.netbeans.modules.form.RADComponent.rename(RADComponent.java:481)
        at org.netbeans.modules.form.RADComponentNode.setName(RADComponentNode.java:356)
        at org.openide.explorer.view.TreeViewCellEditor.editingStopped(TreeViewCellEditor.java:137)
        at javax.swing.AbstractCellEditor.fireEditingStopped(AbstractCellEditor.java:125)
        at javax.swing.DefaultCellEditor$EditorDelegate.stopCellEditing(DefaultCellEditor.java:330)
        at javax.swing.DefaultCellEditor.stopCellEditing(DefaultCellEditor.java:215)
        at javax.swing.DefaultCellEditor$EditorDelegate.actionPerformed(DefaultCellEditor.java:347)
        at javax.swing.JTextField.fireActionPerformed(JTextField.java:492)
        at javax.swing.JTextField.postActionEvent(JTextField.java:705)
        at javax.swing.JTextField$NotifyAction.actionPerformed(JTextField.java:820)
Comment 1 Jiri Vagner 2009-01-14 12:59:48 UTC
Due missing steps to reproduce I tried to do following moves ...

 - create form and and two jbuttons
 - rename variable name of first button to "ahojButton"
 - try to rename variable name of second button also to "ahojButton"

IDE displayed information box about clashing names, IAE was not thrown.

Product Version: NetBeans IDE 6.1 (Build 200804211638)
Java: 1.6.0_11; Java HotSpot(TM) Client VM 11.0-b16
System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)

Lukas, thank you for your report. Please help us more and add steps to reproduce.
Comment 2 Lukas Hasik 2009-01-14 13:58:05 UTC
I just moved the report from exception reporter DB to IZ. Try to search for more info in the XML or add a logging for
next reports. I have no clue what is this about
Comment 3 Tomas Pavek 2009-01-14 14:25:07 UTC
Try to rename the component node in the Inspector (in-place) - as the stacktrace indicates. If it works, then close as 
WORKSFORME. This is reported for 6.1, might have been fixed since then.
Comment 4 Jiri Vagner 2009-01-15 08:16:47 UTC
I was trying to rename that node using in-place editing too. I tested in on NB 6.1 FCS, 6.5FCS and actual Dev. All
versions shows only small user friendly information dialog, IAEs are only inside log file. I think that this is correct
bahaviour, closing issue as WORKSFORME.