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 14068 - IllegalArgumentException from filesystems.Repository.reorder
Summary: IllegalArgumentException from filesystems.Repository.reorder
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: Sun Solaris
: P2 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-07-31 12:51 UTC by Jan Zajicek
Modified: 2008-12-22 16:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Zajicek 2001-07-31 12:51:14 UTC
Got following IAE after finishing mount directory wizard:

Tue Jul 31 13:47:04 CEST 2001: java.lang.IllegalArgumentException: Posted StackTrace
Annotation: Exception occurred in Request Processor
Nested annotation: permutation is not really a permutation: 0 1 2 10 11 12 13 14
15 16 17 18 21 20 0 0 0 0 0 0 0 0
org.openide.util.RequestProcessor$Holder: Posted StackTrace(task
org.openide.loaders.FolderInstance$2@72738d [-2364, 1, -1])
        at
org.openide.util.RequestProcessor$Task.createHolder(RequestProcessor.java:322)
        at org.openide.util.RequestProcessor.post(RequestProcessor.java:100)
        at org.openide.util.RequestProcessor.post(RequestProcessor.java:73)
        at
org.openide.loaders.FolderInstance.postCreationTask(FolderInstance.java:513)
        at
org.openide.loaders.FolderInstance.processObjects(FolderInstance.java:436)
        at
org.openide.loaders.FolderInstance$Listener.finished(FolderInstance.java:537)
        at org.openide.loaders.FolderList.createObjects(FolderList.java:507)
        at org.openide.loaders.FolderList.getObjects(FolderList.java:384)
        at org.openide.loaders.FolderList.access$200(FolderList.java:42)
        at org.openide.loaders.FolderList$ListTask.run(FolderList.java:727)
        at org.openide.util.Task.run(Task.java:152)
[catch] at
org.openide.util.RequestProcessor$ProcessorThread.run(RequestProcessor.java:611)

Tue Jul 31 13:47:04 CEST 2001: java.lang.IllegalArgumentException: permutation
is not really a permutation: 0 1 2 10 11 12 13 14 15 16 17 18 21 20 0 0 0 0 0 0 0 0
java.lang.IllegalArgumentException: permutation is not really a permutation: 0 1
2 10 11 12 13 14 15 16 17 18 21 20 0 0 0 0 0 0 0 0
        at org.openide.filesystems.Repository.reorder(Repository.java:230)
        at org.netbeans.core.AutomountSupport.updateOrder(AutomountSupport.java:230)
        at
org.netbeans.core.AutomountSupport.updateFileSystems(AutomountSupport.java:178)
        at
org.netbeans.core.AutomountSupport.taskFinished(AutomountSupport.java:130)
        at org.openide.util.Task.notifyFinished(Task.java:123)
        at
org.openide.loaders.FolderInstance.defaultProcessObjects(FolderInstance.java:496)
        at org.openide.loaders.FolderInstance.access$200(FolderInstance.java:45)
        at org.openide.loaders.FolderInstance$2.run(FolderInstance.java:438)
        at org.openide.util.Task.run(Task.java:152)
[catch] at
org.openide.util.RequestProcessor$ProcessorThread.run(RequestProcessor.java:611)ùH
Comment 1 Jan Zajicek 2001-07-31 12:58:25 UTC
I consider this more important so increasing to P2. It happens to me
evry time I mount/umount some folder.
Comment 2 rmatous 2001-07-31 13:01:46 UTC
org.netbeans.core.AutomountSupport.updateOrder
(AutomountSupport.java:230) creates wrong permutation. 
Repository.reorder expects valid permutation. If not fires exception: 
OK behaviour.
        
Comment 3 Jan Zajicek 2001-07-31 13:21:36 UTC
Ok, my mistake, now it's Yarda's.
Comment 4 Jaroslav Tulach 2001-08-02 09:04:13 UTC
AutomountSupport rewritten (hopefully correctly).
Comment 5 Marian Mirilovic 2001-12-11 15:57:32 UTC
closed