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 122402 - BadLocationException: Invalid offset
Summary: BadLocationException: Invalid offset
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-20 15:20 UTC by damian_nb
Modified: 2009-11-02 11:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description damian_nb 2007-11-20 15:20:28 UTC
on output I ovserved a few times the following exception (hard to say what happend that exception occured)

javax.swing.text.BadLocationException: Invalid offset = 240, bias = Forward, outside of the view <240, 240>, isFragment
= false
[catch] at org.netbeans.editor.DrawEngineLineView.modelToView(DrawEngineLineView.java:460)
        at org.netbeans.editor.DrawEngineLineView.modelToView(DrawEngineLineView.java:441)
        at org.netbeans.lib.editor.view.GapBoxView.modelToView(GapBoxView.java:1501)
        at org.netbeans.editor.view.spi.LockView.modelToView(LockView.java:420)
        at javax.swing.plaf.basic.BasicTextUI$RootView.modelToView(BasicTextUI.java:1413)
        at javax.swing.plaf.basic.BasicTextUI.modelToView(BasicTextUI.java:947)
        at javax.swing.plaf.basic.BasicTextUI.modelToView(BasicTextUI.java:922)
        at org.netbeans.editor.GlyphGutter.changedLine(GlyphGutter.java:574)
        at org.netbeans.editor.Annotations.fireChangedLine(Annotations.java:586)
        at org.netbeans.editor.Annotations.refreshLine(Annotations.java:501)
        at org.netbeans.editor.Annotations.removeAnnotation(Annotations.java:353)
        at org.netbeans.modules.editor.NbEditorDocument.removeAnnotation(NbEditorDocument.java:252)
        at org.openide.text.NbDocument.removeAnnotation(NbDocument.java:488)
        at org.netbeans.modules.editor.hints.AnnotationHolder$NbDocumentAttacher.detachAnnotation(AnnotationHolder.java:236)
        at org.netbeans.modules.editor.hints.AnnotationHolder.detachAnnotation(AnnotationHolder.java:209)
        at org.netbeans.modules.editor.hints.AnnotationHolder.updateAnnotationOnLine(AnnotationHolder.java:617)
        at org.netbeans.modules.editor.hints.AnnotationHolder.removeUpdate(AnnotationHolder.java:425)
        at
org.netbeans.lib.editor.util.swing.PriorityDocumentListenerList.removeUpdate(PriorityDocumentListenerList.java:85)
        at javax.swing.text.AbstractDocument.fireRemoveUpdate(AbstractDocument.java:242)
        at org.netbeans.editor.BaseDocument.fireRemoveUpdate(BaseDocument.java:1390)
        at org.netbeans.editor.BaseDocument.remove(BaseDocument.java:784)
        at org.netbeans.modules.diff.builtin.visualizer.editable.EditableDiffView.rollback(EditableDiffView.java:482)
        at
org.netbeans.modules.diff.builtin.visualizer.editable.LineNumbersActionsBar.performAction(LineNumbersActionsBar.java:192)
        at
org.netbeans.modules.diff.builtin.visualizer.editable.LineNumbersActionsBar.mouseClicked(LineNumbersActionsBar.java:199)
        at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:212)
        at java.awt.Component.processMouseEvent(Component.java:5491)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
        at java.awt.Component.processEvent(Component.java:5253)
        at java.awt.Container.processEvent(Container.java:1966)
        at java.awt.Component.dispatchEventImpl(Component.java:3955)
        at java.awt.Container.dispatchEventImpl(Container.java:2024)
        at java.awt.Component.dispatchEvent(Component.java:3803)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3901)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
        at java.awt.Container.dispatchEventImpl(Container.java:2010)
        at java.awt.Window.dispatchEventImpl(Window.java:1774)
        at java.awt.Component.dispatchEvent(Component.java:3803)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 1 Jiri Prox 2007-11-21 09:01:24 UTC
Which build do you use? 
Comment 2 damian_nb 2007-11-21 09:11:22 UTC
Product Version: NetBeans IDE Dev (Build 200711200000)
Java: 1.5.0_06; Java HotSpot(TM) Client VM 1.5.0_06-b05
System: Linux version 2.6.9-55.0.12.ELsmp running on i386; UTF-8; en_US (nb)
Comment 3 Jiri Prox 2008-04-11 00:43:23 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 4 Max Sauer 2008-11-18 09:05:02 UTC
This will be resolved LATER.
Comment 5 Quality Engineering 2009-11-02 11:00:05 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX