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 236301 - javax.swing.text.BadLocationException: Invalid offset=-536828495 not within <0, 34038>
Summary: javax.swing.text.BadLocationException: Invalid offset=-536828495 not within <...
Status: NEW
Alias: None
Product: contrib
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: issues@contrib
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-24 02:24 UTC by Exceptions Reporter
Modified: 2015-03-19 15:06 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 204093


Attachments
stacktrace (800 bytes, text/plain)
2013-09-24 02:24 UTC, Exceptions Reporter
Details
stacktrace (799 bytes, text/plain)
2013-12-23 18:03 UTC, _ tboudreau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2013-09-24 02:24:42 UTC
This bug was originally marked as duplicate of bug 210121, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201309191137)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.25-b01, Java(TM) SE Runtime Environment, 1.7.0_25-b15
OS: Mac OS X

User Comments:
GUEST: editing comments




Stacktrace: 
javax.swing.text.BadLocationException: Invalid offset=-536828495 not within <0, 34038>
   at org.netbeans.editor.Utilities.checkOffsetValid(Utilities.java:1350)
   at org.netbeans.editor.Utilities.checkOffsetValid(Utilities.java:1345)
   at org.netbeans.editor.Utilities.getLineOffset(Utilities.java:561)
   at org.netbeans.modules.editor.hints.AnnotationHolder$11.run(AnnotationHolder.java:1457)
   at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1391)
   at org.netbeans.modules.editor.hints.AnnotationHolder.resolveWarnings(AnnotationHolder.java:1447)
Comment 1 Exceptions Reporter 2013-09-24 02:24:44 UTC
Created attachment 140400 [details]
stacktrace
Comment 2 Milutin Kristofic 2013-10-09 16:29:12 UTC
There are exceptions thrown from showtodos

java.lang.Exception
	at org.netbeans.lib.lexer.TokenHierarchyOperation.ensureReadLocked(TokenHierarchyOperation.java:397)
	at org.netbeans.lib.lexer.TokenHierarchyOperation.isActive(TokenHierarchyOperation.java:357)
	at org.netbeans.api.lexer.TokenHierarchy.isActive(TokenHierarchy.java:356)
	at org.netbeans.modules.showtodos.TodoSourceParsing.parse(TodoSourceParsing.java:71)
	at org.netbeans.modules.showtodos.TodoSourceParsing.parseForAnnotatable(TodoSourceParsing.java:135)
	at org.netbeans.modules.showtodos.TodoAnnotationProvider.parse(TodoAnnotationProvider.java:123)
	at org.netbeans.modules.showtodos.TodoAnnotationProvider.annotate(TodoAnnotationProvider.java:108)
	at org.netbeans.modules.showtodos.TodoAnnotationProvider.annotate(TodoAnnotationProvider.java:93)
	at org.openide.text.CloneableEditorSupport.ensureAnnotationsLoaded(CloneableEditorSupport.java:392)
	at org.openide.text.CloneableEditorInitializer.initAnnotations(CloneableEditorInitializer.java:634)
	at org.openide.text.CloneableEditorInitializer.run(CloneableEditorInitializer.java:351)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2042)

You can see in messages.log that annotation was probably created from showtodos so I am sending this to their evaluation.
Comment 3 _ tboudreau 2013-12-23 18:03:25 UTC
Created attachment 143411 [details]
stacktrace

Occurred after using contrib/licensechanger to change headers
Comment 4 Exceptions Reporter 2015-03-19 15:06:40 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=204093