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 198352 - [70cat] javax.swing.text.BadLocationException: Invalid offset=106074, docLength=38727
Summary: [70cat] javax.swing.text.BadLocationException: Invalid offset=106074, docLeng...
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Code folding (show other bugs)
Version: 7.0
Hardware: All All
: P2 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-05 14:24 UTC by javydreamercsw
Modified: 2011-06-22 20:32 UTC (History)
8 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 177466


Attachments
stacktrace (2.35 KB, text/plain)
2011-05-05 14:24 UTC, javydreamercsw
Details
stacktrace (2.94 KB, text/plain)
2011-05-20 08:11 UTC, Martin Fousek
Details
stacktrace (4.95 KB, text/plain)
2011-05-20 14:53 UTC, Jesse Glick
Details
stacktrace (4.95 KB, text/plain)
2011-05-20 15:20 UTC, Jesse Glick
Details
stacktrace (4.95 KB, text/plain)
2011-05-20 15:23 UTC, Jesse Glick
Details
stacktrace (3.29 KB, text/plain)
2011-05-21 09:47 UTC, schkovich
Details
stacktrace (3.29 KB, text/plain)
2011-05-21 23:35 UTC, schkovich
Details
stacktrace (3.29 KB, text/plain)
2011-05-22 14:14 UTC, schkovich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description javydreamercsw 2011-05-05 14:24:50 UTC
Build: NetBeans IDE 7.0 (Build 201104080000)
VM: Java HotSpot(TM) Client VM, 19.1-b02, Java(TM) SE Runtime Environment, 1.6.0_24-b07
OS: Windows XP

User Comments:
javydreamercsw: DOing find and replace.

GUEST: clicked on Editor icon under Tools->options, coming from Miscellaneous section




Stacktrace: 
javax.swing.text.BadLocationException: Invalid offset=106074, docLength=38727
   at org.netbeans.editor.DocumentContent.checkOffset(DocumentContent.java:418)
   at org.netbeans.editor.DocumentContent.createPosition(DocumentContent.java:131)
   at javax.swing.text.AbstractDocument.createPosition(AbstractDocument.java:816)
   at org.netbeans.modules.editor.lib2.view.OffsetRegion.createPos(OffsetRegion.java:83)
   at org.netbeans.modules.editor.lib2.view.OffsetRegion.union(OffsetRegion.java:157)
   at org.netbeans.modules.editor.lib2.view.OffsetRegion.union(OffsetRegion.java:72)
Comment 1 javydreamercsw 2011-05-05 14:24:55 UTC
Created attachment 108136 [details]
stacktrace
Comment 2 Martin Fousek 2011-05-20 08:11:39 UTC
Created attachment 108410 [details]
stacktrace

1, generated two Entities from DB
2, rightclick on one of them ... diff to second one
-> Exception appeared
Comment 3 Jesse Glick 2011-05-20 14:53:37 UTC
Created attachment 108418 [details]
stacktrace

Team > Diff on a locally modified (Hg) file.
Comment 4 Jesse Glick 2011-05-20 15:20:38 UTC
Created attachment 108419 [details]
stacktrace
Comment 5 Jesse Glick 2011-05-20 15:23:37 UTC
Created attachment 108420 [details]
stacktrace

Team > Diff
Comment 6 schkovich 2011-05-21 09:47:39 UTC
Created attachment 108431 [details]
stacktrace

refactor/rename class constant. exception was thrown during search phase
Comment 7 schkovich 2011-05-21 23:35:44 UTC
Created attachment 108436 [details]
stacktrace

show local changes
Comment 8 schkovich 2011-05-22 14:14:49 UTC
Created attachment 108441 [details]
stacktrace

again, show local history contact me if you need file in question
Comment 9 Jesse Glick 2011-05-23 19:55:14 UTC
Happening constantly in dev builds, is this getting evaluated?
Comment 10 David Strupl 2011-05-24 06:38:11 UTC
Should happen now.
Comment 11 Miloslav Metelka 2011-05-24 12:04:42 UTC
http://hg.netbeans.org/jet-main/rev/9480bd18526f
Comment 12 Quality Engineering 2011-05-25 11:14:24 UTC
Integrated into 'main-golden', will be available in build *201105250400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/9480bd18526f
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #198352 - javax.swing.text.BadLocationException: Invalid offset=106074, docLength=38727 - limit bounds of events from view factories.
Comment 13 Miloslav Metelka 2011-06-07 08:54:07 UTC
release701:
9480bd18526f transplanted to 4f9dad219f66
Comment 14 Jiri Prox 2011-06-10 14:49:21 UTC
I wasn't able to reproduce it in 7.0.1 -> marking as verified
Comment 15 Peter Nabbefeld 2011-06-16 08:31:43 UTC
It seems, the update is not avalable via autoupdate, probably spec version has not been updated?
Comment 16 Jesse Glick 2011-06-22 20:32:27 UTC
(In reply to comment #15)
> the update is not avalable via autoupdate, probably spec version has
> not been updated?

Spec versions are generally only updated when

1. Making an API change.

2. Publishing a major release (e.g. 7.1).

3. Publishing an official patch update (e.g. 6.9 patch 2).

So to get bug fixes you must either download a fresh development build, or wait for an official release or patch update documented to include the fix.