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 185346

Summary: AssertionError at org.netbeans.modules.masterfs.filebasedfs.children.ChildrenSupport.addChild
Product: platform Reporter: Jindrich Sedek <jsedek>
Component: FilesystemsAssignee: Jaroslav Tulach <jtulach>
Status: RESOLVED FIXED    
Severity: normal CC: big_al, bokc, carlo.salinari, dkaspar, ehsavoie, emiddio, jeff_rubinoff, jglick, leonhad, mfukala, mpapamichael, simpatico, sunflower, ulfzibis
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 169003
Bug Depends on: 184854    
Bug Blocks: 184127    
Attachments: stacktrace
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace

Description Jindrich Sedek 2010-05-03 10:12:37 UTC
This bug was originally marked as duplicate of bug 161960, 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 201005030200)
VM: Java HotSpot(TM) 64-Bit Server VM, 16.0-b13, Java(TM) SE Runtime Environment, 1.6.0_18-b06
OS: Linux

User Comments:
jsedek: Create  new WebApplication on Tomcat
invoke Rename action on project
type new name; check 'Rename Folder' checkbox and submit the Action 
->AE is thrown and the project disapears from Projects view




Stacktrace: 
java.lang.AssertionError
   at org.netbeans.modules.masterfs.filebasedfs.children.ChildrenSupport.addChild(ChildrenSupport.java:125)
   at org.netbeans.modules.masterfs.filebasedfs.children.ChildrenSupport.rescanChild(ChildrenSupport.java:183)
   at org.netbeans.modules.masterfs.filebasedfs.children.ChildrenSupport.getChild(ChildrenSupport.java:103)
   at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj$FolderChildrenCache.getChild(FolderObj.java:556)
   at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObjectFactory.getFileObject(FileObjectFactory.java:181)
   at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObjectFactory.getValidFileObject(FileObjectFactory.java:681)
Comment 1 Jindrich Sedek 2010-05-03 10:12:41 UTC
Created attachment 98355 [details]
stacktrace
Comment 2 Jaroslav Tulach 2010-05-03 17:14:26 UTC
Why P2? What happens when the code is executed without assertions?
Comment 3 Jesse Glick 2010-05-05 23:26:26 UTC
Created attachment 98529 [details]
stacktrace
Comment 4 Exceptions Reporter 2010-05-07 21:46:10 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=169003
Comment 5 emiddio 2010-05-10 22:55:20 UTC
Created attachment 98734 [details]
stacktrace

rename project -- folder only -- project name already renamed with earlier rename
Comment 6 emiddio 2010-05-10 23:01:20 UTC
Created attachment 98735 [details]
stacktrace
Comment 7 leonhad 2010-05-11 14:22:21 UTC
Created attachment 98774 [details]
stacktrace

Rename project
Comment 8 Jaroslav Tulach 2010-05-12 07:51:21 UTC
*** Bug 185800 has been marked as a duplicate of this bug. ***
Comment 9 Alexandr Scherbatiy 2010-05-12 12:55:25 UTC
Created attachment 98845 [details]
stacktrace

netbeans-trunk-nightly-201005112200-javafx-full-windows.exe 

Use the full NetBeans with JavaFX and Mobile modules 

Steps to reproduce:
To reproduce:
- create a new MobileApplication with all defaults
- in Projects tree select root node of the project and invoke Rename. Set new
project name, check 'Also Rename Project Folder', press Rename button
Comment 10 Exceptions Reporter 2010-05-12 12:55:35 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=169003
Comment 11 Jaroslav Tulach 2010-05-17 04:49:44 UTC
*** Bug 186186 has been marked as a duplicate of this bug. ***
Comment 12 Jaroslav Tulach 2010-05-17 04:56:57 UTC
*** Bug 186083 has been marked as a duplicate of this bug. ***
Comment 13 Jaroslav Tulach 2010-05-25 07:21:54 UTC
*** Bug 186149 has been marked as a duplicate of this bug. ***
Comment 14 Jaroslav Tulach 2010-05-25 07:27:10 UTC
*** Bug 186442 has been marked as a duplicate of this bug. ***
Comment 15 Jaroslav Tulach 2010-06-04 10:15:01 UTC
*** Bug 187079 has been marked as a duplicate of this bug. ***
Comment 16 Jaroslav Tulach 2010-06-15 21:50:01 UTC
Should be fixed after rewrite done due to bug 184854