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.
Summary: | [67cat] javax.swing.text.BadLocationException: Invalid offset=7012, docLength=6998 | ||
---|---|---|---|
Product: | editor | Reporter: | brettryan <brettryan> |
Component: | Code folding | Assignee: | Miloslav Metelka <mmetelka> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | 12agnarok, alexismp, denbo, ehsavoie, emiddio, eventlistener, flynnk, fsoares, johnsonlau, josuemb, lhochet, lukeester, marano, mkleint, mmocnak, mragab, m_potociar, nicoliniyo, ravindranathakila, sebglon, smsmithee, smvda, supernikita, sustaining, sworisbreathing, tboudreau, tjahnsen, tomasb, tprochazka, vijaykiran, viulian, xylifyx |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://statistics.netbeans.org/exceptions/detail.do?id=150519 | ||
Issue Type: | DEFECT | Exception Reporter: | 150519 |
Bug Depends on: | |||
Bug Blocks: | 174597, 174688 | ||
Attachments: |
stacktrace
stacktrace stacktrace stacktrace stacktrace stacktrace pom file |
Description
brettryan
2009-05-03 17:41:13 UTC
Created attachment 81435 [details]
stacktrace
Is this reliably reproducible? I tried the steps in my dev build and got no exception. Build: NetBeans IDE Dev (Build 200905180201) VM: Java HotSpot(TM) Client VM, 14.0-b13, Java(TM) SE Runtime Environment, 1.6.0_14-ea-b04 OS: Windows Vista, 6.0, x86 User Comments: attemting to add an annotation to a simple type in a XML Schema using the schema view Stacktrace: javax.swing.text.BadLocationException: Invalid offset=2747, docLength=2734 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.updateGuardedStartPos(Fold.java:411) at org.netbeans.api.editor.fold.Fold.insertUpdate(Fold.java:444) at org.netbeans.api.editor.fold.FoldHierarchy$ApiPackageAccessorImpl.foldInsertUpdate(FoldHierarchy.java:413) Created attachment 82408 [details]
stacktrace
This issue was originally marked as duplicate of issue 114828, that is already resolved. This issue is still valid, so this seems to be another issue, but it might be related. Build: NetBeans IDE Dev (Build 200905271401) VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03 OS: Windows XP, 5.1, x86 User Comments: Used Java Hint to remove an explicit version from the maven compiler plugin Stacktrace: javax.swing.text.BadLocationException: Invalid offset=1963, docLength=1949 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.updateGuardedStartPos(Fold.java:411) at org.netbeans.api.editor.fold.Fold.insertUpdate(Fold.java:444) at org.netbeans.api.editor.fold.FoldHierarchy$ApiPackageAccessorImpl.foldInsertUpdate(FoldHierarchy.java:413) Created attachment 83016 [details]
stacktrace
This issue already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=150519 Marek, these are yours now ... This issue already has 14 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=150519 This issue already has 21 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=150519 This issue already has 23 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=150519 This issue was originally marked as duplicate of issue 114828, that is already resolved. This issue is still valid, so this seems to be another issue, but it might be related. Build: NetBeans IDE Dev (Build 090814) VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03 OS: Linux, 2.6.29.6-desktop-1mnb, i386 User Comments: updating the pom.xml file by using a code generator with is using xam model as the base. Stacktrace: javax.swing.text.BadLocationException: Invalid offset=2621, docLength=2619 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.updateGuardedStartPos(Fold.java:411) at org.netbeans.api.editor.fold.Fold.insertUpdate(Fold.java:444) at org.netbeans.api.editor.fold.FoldHierarchy$ApiPackageAccessorImpl.foldInsertUpdate(FoldHierarchy.java:413) Created attachment 86250 [details]
stacktrace
This issue already has 51 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=150519 It would be great to have reliable steps to reproduce this. Build: NetBeans IDE Dev (Build 200908022240) VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33 OS: Windows Vista, 6.0, x86 User Comments: In a Maven pom.xml file (created by NB) clicked on hint (lightbulb with yellow warning sign) in gutter, selected "Remove explicit version declaration." The respective line was the <version>2.2</version> one. <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>2.2</version> <configuration> <encoding>${project.build.sourceEncoding}</encoding> </configuration> </plugin> Stacktrace: javax.swing.text.BadLocationException: Invalid offset=3659, docLength=3647 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.updateGuardedStartPos(Fold.java:411) at org.netbeans.api.editor.fold.Fold.insertUpdate(Fold.java:444) at org.netbeans.api.editor.fold.FoldHierarchy$ApiPackageAccessorImpl.foldInsertUpdate(FoldHierarchy.java:413) Created attachment 86734 [details]
stacktrace
Build: NetBeans IDE Dev (Build 200909170201) VM: Java HotSpot(TM) 64-Bit Server VM, 14.1-b02-92, Java(TM) SE Runtime Environment, 1.6.0_15-b03-226 OS: Mac OS X, 10.5.8, x86_64 User Comments: Stacktrace: javax.swing.text.BadLocationException: Invalid offset=6853, docLength=6844 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.updateGuardedStartPos(Fold.java:411) at org.netbeans.api.editor.fold.Fold.insertUpdate(Fold.java:444) at org.netbeans.api.editor.fold.FoldHierarchy$ApiPackageAccessorImpl.foldInsertUpdate(FoldHierarchy.java:413) Created attachment 87821 [details]
stacktrace
Attaching the pom.xml which causes the problem. Created attachment 88684 [details]
pom file
Integrated into 'main-golden', will be available in build *200910030241* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/9a063e673faf User: Miloslav Metelka <mmetelka@netbeans.org> Log: #164342 - [67cat] javax.swing.text.BadLocationException: Invalid offset=7012, docLength=6998 - improved checking for empty folds during removeUpdate(). Integrated into 'main-golden', will be available in build *200910061401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/9a063e673faf User: Miloslav Metelka <mmetelka@netbeans.org> Log: #164342 - [67cat] javax.swing.text.BadLocationException: Invalid offset=7012, docLength=6998 - improved checking for empty folds during removeUpdate(). Does anybody going to verify the issue? I'd like to apply the changes to release67_fixes branch. But it requires the issue is verified. The patch to NetBeans 6.7.1 is very important for our team because we use it as a base for our GF ESB product. verified in 6.8 beta Changed status whiteboard. Changed the status whiteboard to the correct value. The fix has been ported into the release67_fixes repository. http://hg.netbeans.org/release67_fixes/rev/c0c40d67e0a7 Verified on 6.7 with appropriate patch. |