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 156362

Summary: [test] AssertionError: visnodes.size()=0 snapshot.size()=2
Product: platform Reporter: Jan Horvath <jhorvath>
Component: ExplorerAssignee: t_h <t_h>
Status: RESOLVED DUPLICATE    
Severity: blocker CC: big_al, blakenzoe, inkubus08, ota, recjake, siriphong
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=138832
Issue Type: DEFECT Exception Reporter: 138832
Attachments: stacktrace
stacktrace

Description Jan Horvath 2009-01-06 16:06:33 UTC
Build: NetBeans IDE Dev (Build 090105)
VM: Java HotSpot(TM) 64-Bit Server VM, 1.6.0_07-b06-57, Java(TM) SE Runtime Environment, 1.6.0_07-b06-153
OS: Mac OS X, 10.5.6, x86_64

User Comments:
jhorvath: writing javascript code embedded in the JSP

GUEST: editing PHP/HTML

GUEST: Copying and pasting

jhorvath: writing javascript code embedded in the JSP



Stacktrace: 
java.lang.AssertionError: visnodes.size()=0 snapshot.size()=2
        at org.openide.explorer.view.VisualizerChildren.recomputeIndexes(VisualizerChildren.java:87)
        at org.openide.explorer.view.VisualizerChildren.getIndex(VisualizerChildren.java:153)
        at org.openide.explorer.view.VisualizerNode.getIndex(VisualizerNode.java:291)
        at javax.swing.tree.DefaultTreeModel.getIndexOfChild(DefaultTreeModel.java:142)
        at javax.swing.tree.FixedHeightLayoutCache$FHTreeStateNode.createChildFor(FixedHeightLayoutCache.java:953)
        at javax.swing.tree.FixedHeightLayoutCache.getNodeForPath(FixedHeightLayoutCache.java:701)
Comment 1 Jan Horvath 2009-01-06 16:06:45 UTC
Created attachment 75499 [details]
stacktrace
Comment 2 t_h 2009-01-06 17:00:57 UTC
Can you try to reproduce after a4ff22e34c71? If the problem still exists please attach finer log
(-J-Dorg.openide.nodes.level=100 -J-Dorg.openide.explorer.level=100 as command line parameters)
Comment 3 big_al 2009-04-01 23:34:35 UTC
Build: NetBeans IDE Dev (Build 200903310200)
VM: Java HotSpot(TM) 64-Bit Server VM, 1.6.0_07-b06-57, Java(TM) SE Runtime Environment, 1.6.0_07-b06-153
OS: Mac OS X, 10.5.6, x86_64

User Comments: 
Editing a mixed JSF / JSPX / HTML page

Stacktrace: 
java.lang.AssertionError: visnodes.size()=2 snapshot.size()=1
        at org.openide.explorer.view.VisualizerChildren.recomputeIndexes(VisualizerChildren.java:87)
        at org.openide.explorer.view.VisualizerChildren.getIndex(VisualizerChildren.java:153)
        at org.openide.explorer.view.VisualizerNode.getIndex(VisualizerNode.java:289)
        at javax.swing.tree.DefaultTreeModel.getIndexOfChild(DefaultTreeModel.java:142)
        at javax.swing.tree.FixedHeightLayoutCache$FHTreeStateNode.createChildFor(FixedHeightLayoutCache.java:953)
        at javax.swing.tree.FixedHeightLayoutCache.getNodeForPath(FixedHeightLayoutCache.java:701)
Comment 4 big_al 2009-04-01 23:34:39 UTC
Created attachment 79250 [details]
stacktrace
Comment 5 t_h 2009-04-29 12:18:56 UTC

*** This issue has been marked as a duplicate of 160431 ***