Bug 218281 - javax.swing.text.BadLocationException: org.netbeans.modules.showtodos.TodoSourceParsing.parse(TodoSourceParsing.java:73)
javax.swing.text.BadLocationException: org.netbeans.modules.showtodos.TodoSou...
Status: RESOLVED INVALID
Product: contrib
Classification: Unclassified
Component: Code
7.4
All All
: P1 (vote)
: TBD
Assigned To: Jaroslav Havlin
issues@contrib
EXCEPTIONS_REPORT
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-09-13 11:38 UTC by rozwell
Modified: 2013-05-15 13:08 UTC (History)
16 users (show)

See Also:
Issue Type: DEFECT
:


Attachments
stacktrace (1.13 KB, text/plain)
2012-09-13 11:38 UTC, rozwell
Details
stacktrace (1.13 KB, text/plain)
2012-11-06 14:47 UTC, alied
Details
stacktrace (2.15 KB, text/plain)
2013-01-07 12:17 UTC, markiewb
Details
stacktrace (1.13 KB, text/plain)
2013-01-16 14:58 UTC, alied
Details
stacktrace (2.73 KB, text/plain)
2013-03-06 11:42 UTC, paolosca
Details
stacktrace (2.73 KB, text/plain)
2013-03-07 17:33 UTC, cwt137
Details
stacktrace (3.79 KB, text/plain)
2013-05-12 15:04 UTC, Martin Fousek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rozwell 2012-09-13 11:38:47 UTC
This issue was reported manually by mkristofic.
It already has 7 duplicates 


Build: NetBeans IDE Dev (Build 2012-09-10_00-04-28 )
VM: Java HotSpot(TM) 64-Bit Server VM, 23.3-b01, Java(TM) SE Runtime Environment, 1.7.0_07-b10
OS: Linux

User Comments:
452: create java class (.java), del template header, ctrl+x in last line  ( } - to last line)

452: ctrl+x .xhtml

452: ctrl+x




Stacktrace: 
javax.swing.text.BadLocationException: Invalid offset=1561 not within <0, 1509>
   at org.netbeans.editor.Utilities.checkOffsetValid(Utilities.java:1345)
   at org.netbeans.editor.Utilities.checkOffsetValid(Utilities.java:1340)
   at org.netbeans.editor.Utilities.getRowStart(Utilities.java:198)
   at org.netbeans.editor.Utilities.getRowStart(Utilities.java:181)
   at org.netbeans.modules.showtodos.TodoSourceParsing.parse(TodoSourceParsing.java:73)
   at org.netbeans.modules.showtodos.HighlightTodos.getHighlights(HighlightTodos.java:97)
Comment 1 rozwell 2012-09-13 11:38:50 UTC
Created attachment 124295 [details]
stacktrace
Comment 2 Milutin Kristofic 2012-09-13 12:13:04 UTC
org.netbeans.modules.showtodos.TodoSourceParsing.parse(TodoSourceParsing.java:73)
Comment 3 alied 2012-11-06 14:47:10 UTC
Created attachment 127232 [details]
stacktrace

deleting lines with Ctrl+Del
Comment 4 markiewb 2013-01-07 12:17:21 UTC
Created attachment 129955 [details]
stacktrace
Comment 5 markiewb 2013-01-07 12:21:00 UTC
Steps: 
* open a GIT-committed file
* make changes to the file -> diff-sidebar should show changes
* keep editor open and revert the modification (right click on node in projects view -> GIT->Revert->Revert Modifications...) -> Exception pops up

javax.swing.text.BadLocationException: Invalid offset=39026 not within <0, 9993>
        at org.netbeans.editor.Utilities.checkOffsetValid(Utilities.java:1345)
        at org.netbeans.editor.Utilities.checkOffsetValid(Utilities.java:1340)
        at org.netbeans.editor.Utilities.getRowStart(Utilities.java:198)
        at org.netbeans.editor.Utilities.getRowStart(Utilities.java:181)
        at org.netbeans.modules.showtodos.TodoSourceParsing.parse(TodoSourceParsing.java:73)
        at org.netbeans.modules.showtodos.HighlightTodos.getHighlights(HighlightTodos.java:97)
        at org.netbeans.modules.editor.lib2.highlighting.DirectMergeContainer$HlSequence.(DirectMergeContainer.java:185)
        at org.netbeans.modules.editor.lib2.highlighting.DirectMergeContainer.getHighlights(DirectMergeContainer.java:92)
        at org.netbeans.modules.editor.lib2.highlighting.HighlightsReader.(HighlightsReader.java:62)
        at org.netbeans.modules.editor.lib2.view.HighlightsViewFactory.restart(HighlightsViewFactory.java:185)
        at org.netbeans.modules.editor.lib2.view.ViewBuilder$FactoryState.init(ViewBuilder.java:1327)
        at org.netbeans.modules.editor.lib2.view.ViewBuilder.createViews(ViewBuilder.java:723)
        at org.netbeans.modules.editor.lib2.view.ViewBuilder.createReplaceRepaintViews(ViewBuilder.java:684)
        at org.netbeans.modules.editor.lib2.view.ViewUpdates.viewsRebuildOrMarkInvalidNeedsLock(ViewUpdates.java:402)
        at org.netbeans.modules.editor.lib2.view.DocumentViewOp$1.run(DocumentViewOp.java:283)
        at org.netbeans.modules.editor.lib2.view.DocumentView.runTransaction(DocumentView.java:226)
        at org.netbeans.modules.editor.lib2.view.DocumentView$1.run(DocumentView.java:239)
        at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1383)
        at org.netbeans.modules.editor.lib2.view.DocumentView.runReadLockTransaction(DocumentView.java:236)
        at org.netbeans.modules.editor.lib2.view.DocumentViewOp.viewsRebuildOrMarkInvalid(DocumentViewOp.java:279)
        at org.netbeans.modules.editor.lib2.view.ViewUpdates$RebuildViews.run(ViewUpdates.java:599)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1477)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2071)
Comment 6 alied 2013-01-16 14:58:32 UTC
Created attachment 130289 [details]
stacktrace

reverting local changes via the left margin SVN modified/added lines marks.
Comment 7 Exceptions Reporter 2013-02-07 12:22:29 UTC
This bug already has 50 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=192393
Comment 8 Debeet 2013-03-02 18:44:56 UTC
This bug is present in the dev version.
Comment 9 athompson 2013-03-03 13:14:34 UTC
I imagine it's present in any version where the "editor TODO highlighting" is installed.
Comment 10 paolosca 2013-03-06 11:42:16 UTC
Created attachment 132257 [details]
stacktrace

Did a paste and copy of the whole file content then pressed ctrl+z to revert to the old version
Comment 11 cwt137 2013-03-07 17:33:22 UTC
Created attachment 132347 [details]
stacktrace
Comment 12 Martin Fousek 2013-05-12 15:04:53 UTC
Created attachment 134327 [details]
stacktrace

CommentAction on empty line of the .phtml file
Comment 13 Martin Fousek 2013-05-13 14:15:08 UTC
Pretty much of duplicates. Reassigning to the last person who maintained this module. Jardo please feel free to reassign it if you are not the owner of this module anymore. Thanks a lot.
Comment 14 Jaroslav Havlin 2013-05-14 15:25:42 UTC
Michel, please, could you check this bug. Thank you.
Comment 15 Jaroslav Havlin 2013-05-15 11:54:47 UTC
(In reply to comment #14)
> Michel, please, could you check this bug. Thank you.
I've moved exception reports related to TODO Highlighting to bug 229772.
Exceptions.printStackTrace() was changed to logging of an INFO message.
Comment 16 Jaroslav Havlin 2013-05-15 13:08:06 UTC
All exception reports from various places were assigned to more specific bugs.
Closing this issue.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo