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 169499 - javax.swing.text.BadLocationException: Invalid offset=14003, docLength=1047
Summary: javax.swing.text.BadLocationException: Invalid offset=14003, docLength=1047
Status: RESOLVED DUPLICATE of bug 157706
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Marek Fukala
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-29 19:48 UTC by pavaneshwar
Modified: 2009-09-08 16:19 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 595


Attachments
stacktrace (1.52 KB, text/plain)
2009-07-29 19:48 UTC, pavaneshwar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pavaneshwar 2009-07-29 19:48:05 UTC
Build: NetBeans IDE 6.7.1 (Build 200907230233)
VM: Java HotSpot(TM) Client VM, 14.0-b16, Java(TM) SE Runtime Environment, 1.6.0_14-b08
OS: Windows Vista, 6.0, x86

User Comments:
GUEST: closing windows and then resizing the overall window
I guess the second comment also applies to my situation
Debugging, IDE stopped at a breakpoint in code while i was viewing the associated JSP. IDE Unable to switch view for Visual JSF page

GUEST: Replacing in project

pavaneshwar: Used "Find and Replace in Projects" function.

vanob: Invoked F6 on the Enterprise Application

gtzabari: I selected a block of text (multiple lines) using SHIFT + arrow keys, then deleted it using backspace then I get the attached exception.



Stacktrace: 
javax.swing.text.BadLocationException: Invalid offset=14003, docLength=1047
        at org.netbeans.editor.DocumentContent.checkOffset(DocumentContent.java:326)
        at org.netbeans.editor.DocumentContent.createPosition(DocumentContent.java:117)
        at javax.swing.text.AbstractDocument.createPosition(AbstractDocument.java:816)
        at org.netbeans.api.editor.fold.Fold.<init>(Fold.java:142)
        at org.netbeans.api.editor.fold.FoldHierarchy$ApiPackageAccessorImpl.createFold(FoldHierarchy.java:352)
        at org.netbeans.modules.editor.fold.FoldOperationImpl.createFold(FoldOperationImpl.java:155)
Comment 1 pavaneshwar 2009-07-29 19:48:11 UTC
Created attachment 85490 [details]
stacktrace
Comment 2 Exceptions Reporter 2009-07-29 19:48:17 UTC
This issue already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=595
Comment 3 Vitezslav Stejskal 2009-07-30 08:44:51 UTC
Looks like a problem in JspFoldManager.
Comment 4 Marek Fukala 2009-09-08 16:19:28 UTC

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