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 194909

Summary: AssertionError: limitOffset=2841 > docTextLength=2833
Product: editor Reporter: Kenneth Ganfield <kganfield>
Component: Painting & PrintingAssignee: Miloslav Metelka <mmetelka>
Status: RESOLVED DUPLICATE    
Severity: normal CC: fvogler, IgalR, jsnuggs, kvaso, pbelbin, troodon
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 176203
Attachments: stacktrace
stacktrace
stacktrace
stacktrace

Description Kenneth Ganfield 2011-01-31 13:00:03 UTC
Build: NetBeans IDE Dev (Build 201101310000)
VM: Java HotSpot(TM) 64-Bit Server VM, 17.1-b03-307, Java(TM) SE Runtime Environment, 1.6.0_22-b04-307-9M3263
OS: Mac OS X

User Comments:
kganfield: editing processRequest method in new generated servlet

jsnuggs: Trying to insert a line by pressing enter.

GUEST: Occured while wrting Code for Servlet

GUEST: Hit the backspace button my my mac




Stacktrace: 
java.lang.AssertionError: limitOffset=2841 > docTextLength=2833
   at org.netbeans.modules.editor.lib2.view.ViewBuilder.createNextView(ViewBuilder.java:396)
   at org.netbeans.modules.editor.lib2.view.ViewBuilder.createViews(ViewBuilder.java:338)
   at org.netbeans.modules.editor.lib2.view.ViewUpdates.buildViews(ViewUpdates.java:146)
   at org.netbeans.modules.editor.lib2.view.ViewUpdates.checkRebuild(ViewUpdates.java:516)
   at org.netbeans.modules.editor.lib2.view.ViewUpdates$FactoriesListener.viewFactoryChanged(ViewUpdates.java:542)
   at org.netbeans.modules.editor.lib2.view.EditorViewFactory.fireEvent(EditorViewFactory.java:224)
Comment 1 Kenneth Ganfield 2011-01-31 13:00:08 UTC
Created attachment 105517 [details]
stacktrace
Comment 2 fvogler 2011-01-31 19:46:11 UTC
Created attachment 105531 [details]
stacktrace
Comment 3 IgalR 2011-02-03 17:11:29 UTC
Created attachment 105628 [details]
stacktrace

Removing part of the code
Comment 4 pbelbin 2011-02-05 06:20:29 UTC
Created attachment 105671 [details]
stacktrace

pointed and clicked to the right of a semicolon (last character on the line) to place the cursor, then hit <enter>, expecting to insert a new line, ready for additional code.
Comment 5 Miloslav Metelka 2011-02-07 12:55:43 UTC

*** This bug has been marked as a duplicate of bug 191620 ***