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 111144 - BadLocationException in the 'Evaluate Expression' Dialog
Summary: BadLocationException in the 'Evaluate Expression' Dialog
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@editor
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2007-07-26 16:32 UTC by _ leonchiver
Modified: 2009-12-21 06:06 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 _ leonchiver 2007-07-26 16:32:00 UTC
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)
Comment 1 Martin Entlicher 2007-07-26 16:41:08 UTC
This comes from editor...
Comment 2 Vitezslav Stejskal 2007-10-12 15:29:55 UTC
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.
Comment 3 Jiri Prox 2008-04-11 00:41:49 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 4 Quality Engineering 2009-12-21 06:06:38 UTC
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