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 182875 - IllegalStateException: Unfinished non-first replace pReplace=viewId=PV@013fec7e, index=0, removeCount=0, addedCount=1, Added: [0]: HV@0173b1ad:<0,1>
Summary: IllegalStateException: Unfinished non-first replace pReplace=viewId=PV@013fec...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords: RANDOM
: 182677 191942 192993 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-03-26 11:15 UTC by Vladimir Voskresensky
Modified: 2011-02-01 08:49 UTC (History)
9 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 167093


Attachments
stacktrace (1.07 KB, text/plain)
2010-03-26 11:15 UTC, Vladimir Voskresensky
Details
stacktrace (3.83 KB, text/plain)
2010-12-30 13:31 UTC, michbarsinai
Details
stacktrace (3.85 KB, text/plain)
2011-01-11 13:39 UTC, ytn01
Details
stacktrace (5.69 KB, text/plain)
2011-01-14 16:00 UTC, adam_myatt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Voskresensky 2010-03-26 11:15:31 UTC
Build: NetBeans IDE Dev (Build 100326-cf6cffc3bbd1)
VM: Java HotSpot(TM) Server VM, 14.0-b16, Java(TM) SE Runtime Environment, 1.6.0_14-b08
OS: SunOS

User Comments:
vv159170: View->Show non printable characters




Stacktrace: 
java.lang.IllegalStateException: Unfinished non-first replace pReplace=viewId=PV@013fec7e, index=0, removeCount=0, addedCount=1, Added:
    [0]: HV@0173b1ad:<0,1>

   at org.netbeans.modules.editor.lib2.view.ViewBuilder.createViews(ViewBuilder.java:218)
   at org.netbeans.modules.editor.lib2.view.ViewUpdates.reinitViews(ViewUpdates.java:131)
   at org.netbeans.modules.editor.lib2.view.DocumentView.reinitViews(DocumentView.java:346)
   at org.netbeans.modules.editor.lib2.view.DocumentView$3.preferenceChange(DocumentView.java:451)
   at sun.reflect.GeneratedMethodAccessor64.invoke(GeneratedMethodAccessor64.java:0)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Comment 1 Vladimir Voskresensky 2010-03-26 11:15:35 UTC
Created attachment 95927 [details]
stacktrace
Comment 2 Miloslav Metelka 2010-03-30 13:36:42 UTC
Since this can happen during modifications as well, raising to P2.
Comment 3 Miloslav Metelka 2010-03-30 13:44:09 UTC
I've created a random testing infrastructure that revealed this problem during modifications so committing  both the infrastructure plus the fix in ViewBuilder.java.
http://hg.netbeans.org/jet-main/rev/df33d1087214
Comment 4 Miloslav Metelka 2010-03-31 08:39:24 UTC
*** Bug 182677 has been marked as a duplicate of this bug. ***
Comment 5 Alexandr Scherbatiy 2010-03-31 12:27:38 UTC
the issue is still reproduced in build NetBeans IDE Dev (Build 201003290201)
Comment 6 Quality Engineering 2010-04-02 05:01:28 UTC
Integrated into 'main-golden', will be available in build *201004020200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/df33d1087214
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #182875 - IllegalStateException: Unfinished non-first replace pReplace=viewId=PV@013fec7e, index=0, removeCount=0, addedCount=1, Added: [0]: HV@0173b1ad:<0,1>; View hierarhy random testing infrastructure added.
Comment 7 jiai 2010-09-22 13:55:44 UTC
It is not fixed, it happens in Netbeans 6.10 M1 again:

Product Version: NetBeans IDE 6.10 M1 (Build 201008260001)
Java: 1.6.0_20; Java HotSpot(TM) Client VM 16.3-b01
System: Linux version 2.6.32-25-generic running on i386; UTF-8; de_DE (nb)
Userdir: /home/jessica/.netbeans/6.10m1
Comment 8 Miloslav Metelka 2010-10-21 08:51:13 UTC
Since the views rebuilding process was considerably rewritten in issue #183219 I hope that this issue is resolved as well by changes in #183219.
I've tested View->Show non-printing chars as well and it seems to work fine.
Comment 9 Miloslav Metelka 2010-11-19 10:44:57 UTC
*** Bug 191942 has been marked as a duplicate of this bug. ***
Comment 10 michbarsinai 2010-12-30 13:31:03 UTC
Created attachment 104629 [details]
stacktrace

After pressing <enter> in having done a code-completion on generic ArrayList
Comment 11 ytn01 2011-01-11 13:39:19 UTC
Created attachment 104879 [details]
stacktrace

Selected and then Deleted a some lines of code (the auto generated main method of a JFrame dialog form).
Comment 12 adam_myatt 2011-01-14 16:00:00 UTC
Created attachment 105000 [details]
stacktrace

Pressed keyboard shortcutAlt_Shift_F to format source inside a JSP file open ni the Source Editor.
Comment 13 Miloslav Metelka 2011-01-19 10:48:01 UTC
I have somewhat improved the exception's text to possibly get more information regarding the problem.

http://hg.netbeans.org/jet-main/rev/e7a8077ec5ac
Comment 14 Quality Engineering 2011-01-22 06:19:37 UTC
Integrated into 'main-golden', will be available in build *201101220001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/e7a8077ec5ac
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #182875 - IllegalStateException: Unfinished non-first replace pReplace=viewId=PV@013fec7e, index=0, removeCount=0, addedCount=1, Added: [0]: HV@0173b1ad:<0,1> - improved exception's text.
Comment 15 Miloslav Metelka 2011-02-01 08:46:16 UTC
*** Bug 192993 has been marked as a duplicate of this bug. ***
Comment 16 Miloslav Metelka 2011-02-01 08:49:31 UTC
Since there are no more reports since build 110117 (and since build 110112 in the dup issue 192993) the issue should be fixed (likely due to locking improvements in 194525).
If there would be a report in a build later than 110123 please reopen the issue. Thanks.