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 243731

Summary: IllegalArgumentException: permutation of incorrect length: 10 rather than 9
Product: platform Reporter: nvamelichev
Component: ExplorerAssignee: Jan Peska <JPESKA>
Status: REOPENED ---    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 209050
Attachments: stacktrace

Description nvamelichev 2014-04-10 13:26:08 UTC
Build: NetBeans IDE 8.0 (Build 201403101706)
VM: OpenJDK 64-Bit Server VM, 24.45-b08, OpenJDK Runtime Environment, 1.7.0_51-b00
OS: Linux

User Comments:
nvamelichev: Opened Matisse palette customizer. Added a couple of java beans to Matisse palette under the "Components" category, then dragged one of the components above the "Choose Component" item

java.lang.IllegalArgumentException: permutation of incorrect length: 10 rather than 9
   at org.openide.loaders.DataFolder$Index.reorder(
   at org.openide.explorer.view.TreeViewDropSupport.performReorder(
   at org.openide.explorer.view.TreeViewDropSupport.drop(
   at java.awt.dnd.DropTarget.drop(
   at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(
   at sun.awt.X11.XDropTargetContextPeer.processDropMessage(
Comment 1 nvamelichev 2014-04-10 13:26:10 UTC
Created attachment 146671 [details]
Comment 2 Jan Peska 2014-07-08 09:13:12 UTC
Can you please be more specific about the reproduction scenario? What do you mean by "Components" category and the "Choose Component"? I don't see those in the palette manager. Can you add a screenshot or something to clarify it and reopen? Thanks
Comment 3 nvamelichev 2014-07-09 12:33:24 UTC
Precise steps to reproduce, now with correct category name:
1. Open any form in Matisse.
2. Right-click the palette, choose "Palette Manager...".
3. In the "Palette Content:" tree, add some components to the "Beans" category using the "Add from Project..." button.
4. Click Close.
5. Try to drag any newly added bean in the "Beans" palette category before the "Choose Bean" item.

I tried several times, but it now does not reproduce. Maybe this bug is highly time-dependent (e.g. DataFolder does not yet know about the newly added items).