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 143414 - NoSuchElementException ... org.netbeans.modules.editor.errorstripe.AnnotationViewDataImpl.findNextUsedLine
Summary: NoSuchElementException ... org.netbeans.modules.editor.errorstripe.Annotation...
Status: CLOSED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Hints & Annotations (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Max Sauer
URL: http://statistics.netbeans.org/except...
Keywords: RANDOM
: 143415 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-08-11 08:57 UTC by Marian Mirilovic
Modified: 2010-04-22 10:31 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 4464


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Mirilovic 2008-08-11 08:57:42 UTC
13 duplicates so far ...

Build: NetBeans IDE 6.0 Beta 1 (Build 200709141330)
VM: Java HotSpot(TM) Client VM, 1.6.0_02-b06
OS: Windows XP, 5.1, x86
User comments: I had double-clicked on a word in my code ("textKit"). And then I pressed CTRL+F.

Note: The word I was searching for also happened to be a class's field member that NetBeans believed to not be used.
Though, it really is being used.
STACKTRACE: (first 10 lines)
java.util.NoSuchElementException
        at java.util.TreeMap.key(TreeMap.java:1206)
        at java.util.TreeMap$NavigableSubMap.firstKey(TreeMap.java:1431)
        at org.netbeans.modules.editor.errorstripe.AnnotationViewDataImpl.findNextUsedLine(AnnotationViewDataImpl.java:332)
        at
org.netbeans.modules.editor.errorstripe.AnnotationViewDataImpl.getMainMarkForBlockImpl(AnnotationViewDataImpl.java:244)
        at
org.netbeans.modules.editor.errorstripe.AnnotationViewDataImpl.getMainMarkForBlock(AnnotationViewDataImpl.java:225)
        at org.netbeans.modules.editor.errorstripe.AnnotationView.paintComponent(AnnotationView.java:283)
        at javax.swing.JComponent.paint(JComponent.java:1027)
        at javax.swing.JComponent.paintToOffscreen(JComponent.java:5122)
        at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1382)
        at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1313)
Comment 1 Vitezslav Stejskal 2008-08-11 11:09:29 UTC
I can't reproduce this. Does it happen regularly?
Comment 2 Vitezslav Stejskal 2008-08-11 11:11:35 UTC
*** Issue 143415 has been marked as a duplicate of this issue. ***
Comment 3 Marian Mirilovic 2008-08-11 12:24:49 UTC
GUEST:  	I had double-clicked on a word in my code ("textKit"). And then I pressed CTRL+F. Note: The word I was
searching for also happened to be a class's field member that NetBeans believed to not be used. Though, it really is
being used.
GUEST: 	debugging
drakemj: 	Just editing my code
drakemj: 	Typing a comment in a class method. Argh.
drakemj: 	Editing code that generated a warning. Can't see what the warning is, until I close this modal "Report
Problem" window.
drakemj: 	Typing code. I'm getting these exceptions every few minutes. Very annoying.
drakemj: 	Typing code. I'm getting these exceptions every few minutes. Very annoying.
drakemj: 	Pasted something into the code editor. Going for a netbeans exception record today
drakemj: 	Replacing method parameter with a new value
drakemj: 	added 2 spaces to a constant string in editor.
GUEST: 	Editing a java file.
benatidc: 	Typing backslashes into a literal quoted string
GUEST: 	Adding a javadoc
GUEST: 	using autocomplete
wobster: 	editing code
Comment 4 Jan Becicka 2008-08-27 10:47:50 UTC
Should be fixed by
http://hg.netbeans.org/main/rev/9c5f965927b2
Comment 5 nbnathan 2008-10-06 20:23:35 UTC
Reopening - reproduced in NetBeans IDE Dev (Build 200810011401)
Comment 6 Vitezslav Stejskal 2008-10-08 12:34:12 UTC
It looks like it's not going to be that simple to fix.
Comment 7 Miloslav Metelka 2008-11-20 11:18:39 UTC
We should fix this in 7.0
Comment 8 Max Sauer 2009-04-14 13:13:21 UTC
Should be fixed now.
---
http://hg.netbeans.org/jet-main/rev/330aa89c8ff6
Comment 9 Quality Engineering 2009-04-15 07:48:36 UTC
Integrated into 'main-golden', will be available in build *200904150201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/330aa89c8ff6
User: Max Sauer <msauer@netbeans.org>
Log: #143414: NSEE o.n.m.editor.errorstripe.AnnotationViewDataImpl.findNextUsedLine
Comment 10 Marian Mirilovic 2010-04-22 10:31:21 UTC
v/c