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 - IllegalArgumentException: permutation of incorrect length: 10 rather than 9
Summary: IllegalArgumentException: permutation of incorrect length: 10 rather than 9
Status: REOPENED
Alias: None
Product: platform
Classification: Unclassified
Component: Explorer (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Jan Peska
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-10 13:26 UTC by nvamelichev
Modified: 2014-07-09 12:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 209050


Attachments
stacktrace (2.83 KB, text/plain)
2014-04-10 13:26 UTC, nvamelichev
Details

Note You need to log in before you can comment on or make changes to this bug.
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




Stacktrace: 
java.lang.IllegalArgumentException: permutation of incorrect length: 10 rather than 9
   at org.openide.loaders.DataFolder$Index.reorder(DataFolder.java:969)
   at org.openide.explorer.view.TreeViewDropSupport.performReorder(TreeViewDropSupport.java:584)
   at org.openide.explorer.view.TreeViewDropSupport.drop(TreeViewDropSupport.java:697)
   at java.awt.dnd.DropTarget.drop(DropTarget.java:450)
   at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(SunDropTargetContextPeer.java:537)
   at sun.awt.X11.XDropTargetContextPeer.processDropMessage(XDropTargetContextPeer.java:184)
Comment 1 nvamelichev 2014-04-10 13:26:10 UTC
Created attachment 146671 [details]
stacktrace
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).