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 90295 - Unusable IDE after NoSuchElement exception
Summary: Unusable IDE after NoSuchElement exception
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-29 16:32 UTC by Torbjorn Norbye
Modified: 2007-01-17 10:09 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 Torbjorn Norbye 2006-11-29 16:32:51 UTC
I'm not sure what triggers it, but once or twice a day, I get an exception popup
with "NoSuchElementException". 

From that point on, the IDE becomes unusable - anything Java-related I try to do
(code completion, go to file, etc. etc.) just aborts with NoSuchElement exception.

The only workaround I have found is to save my work and restart the IDE.

This is on OSX using sources up to date as of 11/27.

java.util.NoSuchElementException
	at java.util.AbstractList$Itr.next(AbstractList.java:427)
	at org.netbeans.modules.timers.InstanceWatcher.contains(InstanceWatcher.java:61)
	at org.netbeans.modules.timers.InstanceWatcher.add(InstanceWatcher.java:55)
	at
org.netbeans.modules.timers.TimesCollectorPeer$ObjectCountDescripton.add(TimesCollectorPeer.java:187)
	at
org.netbeans.modules.timers.TimesCollectorPeer$ObjectCountDescripton.access$000(TimesCollectorPeer.java:166)
	at
org.netbeans.modules.timers.TimesCollectorPeer.reportReference(TimesCollectorPeer.java:82)
	at org.netbeans.api.timers.TimesCollector.reportReference(TimesCollector.java:45)
	at org.netbeans.api.java.source.JavaSource.createCurrentInfo(JavaSource.java:1349)
	at org.netbeans.api.java.source.JavaSource.access$2300(JavaSource.java:117)
	at org.netbeans.api.java.source.JavaSource$CompilationJob.run(JavaSource.java:1112)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
	at java.util.concurrent.FutureTask.run(FutureTask.java:123)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
[catch] at java.lang.Thread.run(Thread.java:613)
Comment 1 Jan Lahoda 2006-11-29 18:14:17 UTC
Hopefully fixed:
Checking in InstanceWatcher.java;
/cvs/apisupport/timers/src/org/netbeans/modules/timers/InstanceWatcher.java,v 
<--  InstanceWatcher.java
new revision: 1.3; previous revision: 1.2
done