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 161960 - AssertionError at org.netbeans.modules.masterfs.filebasedfs.children.ChildrenSupport.addChild
Summary: AssertionError at org.netbeans.modules.masterfs.filebasedfs.children.Children...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jiri Skrivanek
URL: http://statistics.netbeans.org/except...
Keywords:
: 162717 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-04-04 15:11 UTC by _ alexlamsl
Modified: 2009-06-23 19:12 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 148912


Attachments
stacktrace (5.16 KB, text/plain)
2009-04-04 15:11 UTC, _ alexlamsl
Details
stacktrace (5.16 KB, text/plain)
2009-04-04 15:31 UTC, _ alexlamsl
Details
stacktrace (4.84 KB, text/plain)
2009-04-04 15:32 UTC, _ alexlamsl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ alexlamsl 2009-04-04 15:11:05 UTC
Build: NetBeans IDE Dev (Build 200904030200)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Windows XP, 5.1, x86

User Comments:
alexlamsl: opened first tcl script, opening the 2nd one through "File" --> "Open File..."

Tcl Editor support is installed - but none of the expected syntax highlightings show up



Stacktrace: 
java.lang.AssertionError
        at org.netbeans.modules.masterfs.filebasedfs.children.ChildrenSupport.addChild(ChildrenSupport.java:118)
        at org.netbeans.modules.masterfs.filebasedfs.children.ChildrenSupport.rescanChildren(ChildrenSupport.java:228)
        at org.netbeans.modules.masterfs.filebasedfs.children.ChildrenSupport.getChildren(ChildrenSupport.java:75)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj$FolderChildrenCache.getChildren(FolderObj.java:516)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.getChildren(FolderObj.java:131)
        at org.openide.loaders.MultiFileLoader.checkFiles(MultiFileLoader.java:332)
Comment 1 _ alexlamsl 2009-04-04 15:11:14 UTC
Created attachment 79437 [details]
stacktrace
Comment 2 _ alexlamsl 2009-04-04 15:31:07 UTC
Build: NetBeans IDE Dev (Build 200904030200)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Windows XP, 5.1, x86

User Comments: 
opening tcl script
this time syntax highlighting is working

Stacktrace: 
java.lang.AssertionError
        at org.netbeans.modules.masterfs.filebasedfs.children.ChildrenSupport.addChild(ChildrenSupport.java:118)
        at org.netbeans.modules.masterfs.filebasedfs.children.ChildrenSupport.rescanChildren(ChildrenSupport.java:228)
        at org.netbeans.modules.masterfs.filebasedfs.children.ChildrenSupport.getChildren(ChildrenSupport.java:75)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj$FolderChildrenCache.getChildren(FolderObj.java:516)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.getChildren(FolderObj.java:131)
        at org.openide.loaders.MultiFileLoader.checkFiles(MultiFileLoader.java:332)
Comment 3 _ alexlamsl 2009-04-04 15:31:12 UTC
Created attachment 79438 [details]
stacktrace
Comment 4 _ alexlamsl 2009-04-04 15:32:09 UTC
Build: NetBeans IDE Dev (Build 200904030200)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Windows XP, 5.1, x86

User Comments: 
continuously trying to open the same tcl file without success

Stacktrace: 
java.lang.AssertionError
        at org.netbeans.modules.masterfs.filebasedfs.children.ChildrenSupport.addChild(ChildrenSupport.java:118)
        at org.netbeans.modules.masterfs.filebasedfs.children.ChildrenSupport.rescanChildren(ChildrenSupport.java:228)
        at org.netbeans.modules.masterfs.filebasedfs.children.ChildrenSupport.getChildren(ChildrenSupport.java:75)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj$FolderChildrenCache.getChildren(FolderObj.java:516)
        at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FolderObj.getChildren(FolderObj.java:131)
        at org.openide.loaders.MultiFileLoader.checkFiles(MultiFileLoader.java:332)
Comment 5 _ alexlamsl 2009-04-04 15:32:13 UTC
Created attachment 79439 [details]
stacktrace
Comment 6 Jiri Skrivanek 2009-04-06 09:07:56 UTC
I cannot reproduce it. Could please describe exact steps how to reproduce it? What project was open, was TCL file part
of a project, was it in some versioning system? Or attach files for test. Thanks.
Comment 7 _ alexlamsl 2009-04-06 11:21:56 UTC
They are standalone tcl scripts which does not belong to any projects.

Steps to reproduce:
1) "File" --> "Open File..."
2) Choose a tcl script and "Open"
3) No error so far, however there is no syntax highlighting.
4) "File" --> "Open File..."
5) Choose another tcl script and "Open"
Either:
6) Exception thrown. File is then not opened.
Or:
7) File opened successfully with syntax highlighting.
8) Goto (4)
Comment 8 Jiri Skrivanek 2009-04-06 14:30:18 UTC
I cannot reproduce it. But it seems to be a duplicate of issue 161785. Could you wait for newer build and try it once
more? Thank you.
Comment 9 Jiri Skrivanek 2009-04-07 13:40:34 UTC
Fixed.
http://hg.netbeans.org/core-main/rev/7734e6fd2453
Comment 10 Quality Engineering 2009-04-08 07:48:17 UTC
Integrated into 'main-golden', will be available in build *200904080201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/7734e6fd2453
User: Jiri Skrivanek <jskrivanek@netbeans.org>
Log: #161960 - Rollback of changsets 8ee4eb0675c4 and ca31b3f4e889. The first one caused issues 161960, 161746 and 161785 because getParentFile traverse to Desktop on windows if file is instance of sun.awt.shell.ShellFolder. Conversion File to URI/URL avoids such problems but it is a little bit slower.
Comment 11 Quality Engineering 2009-04-08 20:00:36 UTC
Integrated into 'main-golden', will be available in build *200904081400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/7734e6fd2453
User: Jiri Skrivanek <jskrivanek@netbeans.org>
Log: #161960 - Rollback of changsets 8ee4eb0675c4 and ca31b3f4e889. The first one caused issues 161960, 161746 and 161785 because getParentFile traverse to Desktop on windows if file is instance of sun.awt.shell.ShellFolder. Conversion File to URI/URL avoids such problems but it is a little bit slower.
Comment 12 Jiri Skrivanek 2009-04-15 13:52:09 UTC
*** Issue 162717 has been marked as a duplicate of this issue. ***