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.
This bug was originally marked as duplicate of bug 209490, 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 201205020400) VM: Java HotSpot(TM) Client VM, 23.0-b21, Java(TM) SE Runtime Environment, 1.7.0_04-b20 OS: Windows Vista User Comments: MackSix: Closed JavaSE project and reopened it. MackSix: 1.) Install Dev 201204050400 2.) Change userdir and cachedir names in /etc/netbeans.conf to "dev20120405". 3.) Start NetBeans and create new Java Application. 4.) Created new JFrame form. 4.) Closed project. 5.) Open project again. 6.) Add 2 jLabels and a jButton to Form. 7.) Close project. 8.) Reopen Project and this IllegalStateException occured. MackSix: 1) Moved class to new package. 2) Undo 3) Redo This Exception was thrown. Stacktrace: java.lang.IllegalStateException: Null children of pView[26] from <0,35> origEndIndex=35, rebuild<6,34>. TLCache: size=6, capacity=300, head=Entry[pView=PV@01d1fc04#1 <139,140>, WxH:8.0x17.0, chWxH=8.0x17.0 previous=null, next=Entry@14392982], tail=Entry[pView=PV@00a18d03#2 <0,3>, WxH:24.0x17.0, chWxH=24.0x17.0 previous=Entry@25106997, next=null] docView: DV@00e02b04#141 <0,12781> incomMod=false, lengthyAE=0 Regions: C<580,12778> P<584,11839>, ChgFlags: H; visWidth:1274Gap: <0|0, vis[26]<442.0|1.099511630292E12 [ 0]: PV@00a18d03#2 <0,3> y=0.0, WxH:24.0x17.0, chWxH=24.0x17.0 [ 1]: PV@006a4b2f#2 <3,56> y=17.0, WxH:424.0x17.0, chWxH=424.0x17.0 [ 2]: PV@006e1aac#2 <56,96> y=34.0, WxH:320.0x17.0, chWxH=320.0x17.0 [ 3]: PV@00992d18#2 <96,100> y=51.0, WxH:32.0x17.0, chWxH=32.0x17.0 [ 4]: PV@005f977a#2 <100,139> y=68.0, WxH:312.0x17.0, chWxH=312.0x17.0 ... [ 23]: PV@0186da74#2 <537,545> y=391.0, WxH:64.0x17.0, chWxH=64.0x17.0 [ 24]: PV@006ffa8e#2 <545,580> y=408.0, WxH:280.0x17.0, at org.netbeans.modules.editor.lib2.view.DocumentViewChildren.ensureParagraphsChildrenAndLayoutValid(DocumentViewChildren.java:531) at org.netbeans.modules.editor.lib2.view.DocumentViewChildren.paint(DocumentViewChildren.java:562) at org.netbeans.modules.editor.lib2.view.DocumentView.paint(DocumentView.java:706) at org.netbeans.modules.editor.lib2.view.EditorView.paint(EditorView.java:162) at javax.swing.plaf.basic.BasicTextUI$RootView.paint(BasicTextUI.java:1434) at javax.swing.plaf.basic.BasicTextUI.paintSafely(BasicTextUI.java:737)
Created attachment 118990 [details] stacktrace
Created attachment 118992 [details] Project to use for reproduction. 1) Open up attached project in NetBeans. 2) View Project windows in tree mode and Drag & Drop Model.java into "newpackage". 3) Undo & Redo a few times. This Exception thrown. If not, this exception may be thrown: http://statistics.netbeans.org/analytics/exception.do?id=577245 Product Version: NetBeans IDE Dev (Build 201205020400) Java: 1.7.0_04; Java HotSpot(TM) Client VM 23.0-b21 System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Also See: http://netbeans.org/bugzilla/show_bug.cgi?id=201922
Created attachment 119044 [details] 2nd Project - I opened it and this exception happened. I opened the 2nd attached project in Build 201205030400 and this exception was immediately thrown. Product Version: NetBeans IDE Dev (Build 201205030400) Java: 1.7.0_04; Java HotSpot(TM) Client VM 23.0-b21 System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Created attachment 119047 [details] stacktrace Just opened an old project and opened a java file in the editor
Created attachment 119142 [details] stacktrace
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=187600
Created attachment 119209 [details] stacktrace Opening a java file
Created attachment 119233 [details] stacktrace
This is related to staring netbeans and opening a project with an empty userdir and/or cache dir. I have repeated it several time by deleting the directories, but it does not do it every time.
*** Bug 211294 has been marked as a duplicate of this bug. ***
Created attachment 119314 [details] stacktrace
Hopefully fixed this time. http://hg.netbeans.org/jet-main/rev/d2ea1ae5d745
Created attachment 119547 [details] stacktrace
Integrated into 'main-golden', will be available in build *201205170950* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/d2ea1ae5d745 User: Miloslav Metelka <mmetelka@netbeans.org> Log: #211985 - IllegalStateException: Null children of pView[26] from <0,35> origEndIndex=35, rebuild<6,34>. TLCache: size=6, capacity=300, head=Entry[pView=PV@01d1fc04#1 <139,140>, WxH:8.0x17.0, chWxH=8.0x17.0 prev.
Created attachment 119697 [details] stacktrace ISE when opening file, while all fold are set to collapse automatically
Created attachment 119703 [details] stacktrace