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 201901 - AssertionError: setOrder([MultiFileObject@142bcd4[FormDesignerPalette/SwingControls/JLabel.palette_item], MultiFileObject@1cd573c[FormDesignerPalette/SwingControls/JButton.palette_item], MultiFileObje
Summary: AssertionError: setOrder([MultiFileObject@142bcd4[FormDesignerPalette/SwingCo...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-09 16:51 UTC by Petr Somol
Modified: 2011-10-12 10:47 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 181049


Attachments
stacktrace (4.19 KB, text/plain)
2011-09-09 16:51 UTC, Petr Somol
Details
The visual difference (107.35 KB, image/png)
2011-09-13 11:17 UTC, Jaroslav Tulach
Details
stacktrace (3.08 KB, text/plain)
2011-09-22 10:16 UTC, jungmat
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Somol 2011-09-09 16:51:12 UTC
This bug was originally marked as duplicate of bug 131021, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 20110909-cbc8cdaa5ce8)
VM: Java HotSpot(TM) Client VM, 21.0-b17, Java(TM) SE Runtime Environment, 1.7.0-b147
OS: Windows 7

User Comments:
psomol: In GUI Builder Palette drag any component and drop it within the same palette




Stacktrace: 
java.lang.AssertionError: setOrder([MultiFileObject@142bcd4[FormDesignerPalette/SwingControls/JLabel.palette_item], MultiFileObject@1cd573c[FormDesignerPalette/SwingControls/JButton.palette_item], MultiFileObject@1574a5f[FormDesignerPalette/SwingControls/JTextField.palette_item], MultiFileObject@18c1922[FormDesignerPalette/SwingControls/JToggleButton.palette_item], MultiFileObject@d2ca1d[FormDesignerPalette/SwingControls/JCheckBox.palette_item], MultiFileObject@e81e5f[FormDesignerPalette/SwingControls/JRadioButton.palette_item], MultiFileObject@19d9f69[FormDesignerPalette/SwingControls/ButtonGroup.palette_item], MultiFileObject@1f88b13[FormDesignerPalette/SwingControls/JComboBox.palette_item], MultiFileObject@55a561[FormDesignerPalette/SwingControls/JList.palette_item], MultiFileObject@c4b7e3[FormDesignerPalette/SwingControls/JTextArea.palette_item], MultiFileObject@ee3316[FormDesignerPalette/SwingControls/JScrollBar.palette_item], MultiFileObject@17b1050[FormDesignerPalette/SwingControls/JSlider.palette_item
   at org.openide.filesystems.Ordering.setOrder(Ordering.java:350)
   at org.openide.filesystems.FileUtil.setOrder(FileUtil.java:2198)
   at org.openide.loaders.FolderOrder.write(FolderOrder.java:187)
   at org.openide.loaders.FolderOrder.setOrder(FolderOrder.java:140)
   at org.openide.loaders.DataFolder.setOrder(DataFolder.java:249)
   at org.openide.loaders.DataFolder$Index.reorder(DataFolder.java:1011)
Comment 1 Petr Somol 2011-09-09 16:51:17 UTC
Created attachment 110580 [details]
stacktrace
Comment 2 Jaroslav Tulach 2011-09-13 11:17:34 UTC
Created attachment 110702 [details]
The visual difference
Comment 3 jungmat 2011-09-22 10:16:12 UTC
Created attachment 111020 [details]
stacktrace

just open the IDE
Comment 4 MackSix 2011-09-27 08:30:30 UTC
This happens to me if I try to drag and drop a component from one place in the Palette to another. It also happens if I right click and choose "Sort by Item Name" or "Sort by Category Name".

Product Version: NetBeans IDE 7.1 Beta (Build 201109222201)
Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)

AND

Product Version: NetBeans IDE Dev (Build 201109260601)
Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Comment 5 MackSix 2011-10-02 05:47:42 UTC
All of what I described above is working fine now in:

Product Version: NetBeans IDE Dev (Build 201110010601)
Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Comment 6 Jaroslav Tulach 2011-10-12 09:42:38 UTC
Why not mark the bug fixed, if things work?
Comment 7 MackSix 2011-10-12 10:47:31 UTC
I'm still learning... will mark it fixed next time. Thank you.