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.
Here's how I can reproduce it: 1) put a breakpoint somewhere and start debugging 2) when the breakpoint is hit, open the 'Evaluate Expression' dialog and enter a expression to evaluate (for example this) 3) click on evaluate. it may happen that the exception occurs on the first evaluation 4) if that didn't happen just click the evaluate button like crazy ;) => you will notice that something happens in the expression field (ugly flickering) => at some point you'll get also the exception javax.swing.text.BadLocationException: Invalid offset=28 not within <0, 0> at org.netbeans.modules.editor.lib2.DocUtils.checkOffsetValid(DocUtils.java:170) at org.netbeans.modules.editor.lib2.DocUtils.checkOffsetValid(DocUtils.java:165) at org.netbeans.modules.editor.lib2.DocUtils.getRowEnd(DocUtils.java:61) at org.netbeans.modules.editor.lib2.highlighting.CaretBasedBlockHighlighting$CaretRowHighlighting.getCurrentBlockPositions(CaretBasedBlockHighlighting.java:274) at org.netbeans.modules.editor.lib2.highlighting.CaretBasedBlockHighlighting.updateLineInfo(CaretBasedBlockHighlighting.java:148) at org.netbeans.modules.editor.lib2.highlighting.CaretBasedBlockHighlighting.stateChanged(CaretBasedBlockHighlighting.java:138) at org.openide.util.WeakListenerImpl$Change.stateChanged(WeakListenerImpl.java:297) [catch] at org.netbeans.editor.BaseCaret$4.run(BaseCaret.java:693) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:597) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160) at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
This comes from editor...
Reproducible in a dev build when I was 'clicking the button like crazy' :-). There really was some weird text flickering in the expression field. It looked like if an old expression was set to the field and then immediately reset by the actual expression. I'm not sure. Since the exception didn't seem to harm anything and it didn't occur without excessive clicking on the Evaluate button I'm making this P4. Please rise the prio if this more severe.
moving opened issues from TM <= 6.1 to TM=Dev
This bug was reported against NetBeans IDE 6.0 or an older release, or against a non-maintained module. NetBeans team does not have enough resources to get to this issue, therefore we are closing the issue as a WONTFIX. If you are interested in providing a patch for this bug, please see our NetFIX guidelines for how to proceed. We apologize for any inconvenience. Thank you. The NetBeans Team