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 141728 - java.util.ConcurrentModificationException at java.util.IdentityHashMap$IdentityHashMapIterator.nextIndex
Summary: java.util.ConcurrentModificationException at java.util.IdentityHashMap$Identi...
Status: CLOSED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: Timers (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Jaroslav Tulach
URL: http://statistics.netbeans.org/except...
Keywords:
: 148922 150836 151837 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-07-25 21:47 UTC by tonybeckham
Modified: 2011-05-24 13:35 UTC (History)
22 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 71234


Attachments
stacktrace (1.84 KB, text/plain)
2008-08-21 14:08 UTC, _ alexlamsl
Details
stacktrace (2.04 KB, text/plain)
2008-09-12 20:32 UTC, sternix
Details
stacktrace (2.28 KB, text/plain)
2008-09-13 07:59 UTC, areeda
Details
stacktrace (2.00 KB, text/plain)
2008-09-14 13:22 UTC, azizi
Details
stacktrace (1.80 KB, text/plain)
2008-09-14 17:54 UTC, chronosmark
Details
stacktrace (1.89 KB, text/plain)
2008-09-24 14:09 UTC, gekkothelizard
Details
stacktrace (1.76 KB, text/plain)
2008-09-30 09:30 UTC, pribyl
Details
stacktrace (2.03 KB, text/plain)
2008-10-01 14:12 UTC, rajivderas
Details
Uploaded displayTags.jsp.dump as suggested. (7.11 KB, text/plain)
2008-10-17 17:29 UTC, giorgio42
Details
stacktrace (2.51 KB, text/plain)
2008-10-21 14:49 UTC, sunbiz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tonybeckham 2008-07-25 21:47:04 UTC
Build: NetBeans IDE Dev (Build 200807240010)
VM: Java HotSpot(TM) 64-Bit Server VM, 1.6.0_05-b13-52, Java(TM) SE Runtime Environment, 1.6.0_05-b13-120
OS: Mac OS X, 10.5.4, x86_64

User Comments: 
Editing PHP document and invoked CC.

Stacktrace: 
java.util.ConcurrentModificationException
        at java.util.IdentityHashMap$IdentityHashMapIterator.nextIndex(IdentityHashMap.java:715)
        at java.util.IdentityHashMap$KeyIterator.next(IdentityHashMap.java:804)
        at org.netbeans.modules.timers.InstanceWatcher.contains(InstanceWatcher.java:78)
        at org.netbeans.modules.timers.InstanceWatcher.add(InstanceWatcher.java:72)
        at org.netbeans.modules.timers.TimesCollectorPeer$ObjectCountDescripton.add(TimesCollectorPeer.java:214)
        at org.netbeans.modules.timers.TimesCollectorPeer$ObjectCountDescripton.access$000(TimesCollectorPeer.java:189)
Comment 1 _ alexlamsl 2008-08-21 14:08:23 UTC
Created attachment 68027 [details]
stacktrace
Comment 2 sternix 2008-09-12 20:32:15 UTC
Build: NetBeans IDE Dev (Build 200809120201)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc2-b31
OS: Windows XP, 5.1, x86

User Comments: 
when i want to edit the <div style=" ... "> i press the ctrl + space
i got this...

Stacktrace: 
java.util.ConcurrentModificationException
        at java.util.IdentityHashMap$IdentityHashMapIterator.nextIndex(IdentityHashMap.java:715)
        at java.util.IdentityHashMap$KeyIterator.next(IdentityHashMap.java:804)
        at org.netbeans.modules.timers.InstanceWatcher.contains(InstanceWatcher.java:78)
        at org.netbeans.modules.timers.InstanceWatcher.add(InstanceWatcher.java:72)
        at org.netbeans.modules.timers.TimesCollectorPeer$ObjectCountDescripton.add(TimesCollectorPeer.java:214)
        at org.netbeans.modules.timers.TimesCollectorPeer$ObjectCountDescripton.access$000(TimesCollectorPeer.java:189)
Comment 3 sternix 2008-09-12 20:32:19 UTC
Created attachment 69773 [details]
stacktrace
Comment 4 areeda 2008-09-13 07:59:00 UTC
Build: NetBeans IDE Dev (Build 200809071401)
VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_05-b13
OS: Linux, 2.6.18-92.1.10.el5, i386

User Comments: 
Editing php source

Stacktrace: 
java.util.ConcurrentModificationException
        at java.util.IdentityHashMap$IdentityHashMapIterator.nextIndex(IdentityHashMap.java:715)
        at java.util.IdentityHashMap$KeyIterator.next(IdentityHashMap.java:804)
        at org.netbeans.modules.timers.InstanceWatcher.contains(InstanceWatcher.java:78)
        at org.netbeans.modules.timers.InstanceWatcher.add(InstanceWatcher.java:72)
        at org.netbeans.modules.timers.TimesCollectorPeer$ObjectCountDescripton.add(TimesCollectorPeer.java:214)
        at org.netbeans.modules.timers.TimesCollectorPeer$ObjectCountDescripton.access$000(TimesCollectorPeer.java:189)
Comment 5 areeda 2008-09-13 07:59:04 UTC
Created attachment 69797 [details]
stacktrace
Comment 6 azizi 2008-09-14 13:22:45 UTC
Build: NetBeans IDE Dev (Build 200808241401)
VM: Java HotSpot(TM) Client VM, 10.0-b22, Java(TM) SE Runtime Environment, 1.6.0_06-b02
OS: Linux, 2.6.24-19-generic, i386

User Comments: 


Stacktrace: 
java.util.ConcurrentModificationException
        at java.util.IdentityHashMap$IdentityHashMapIterator.nextIndex(IdentityHashMap.java:715)
        at java.util.IdentityHashMap$KeyIterator.next(IdentityHashMap.java:804)
        at org.netbeans.modules.timers.InstanceWatcher.contains(InstanceWatcher.java:78)
        at org.netbeans.modules.timers.InstanceWatcher.add(InstanceWatcher.java:72)
        at org.netbeans.modules.timers.TimesCollectorPeer$ObjectCountDescripton.add(TimesCollectorPeer.java:214)
        at org.netbeans.modules.timers.TimesCollectorPeer$ObjectCountDescripton.access$000(TimesCollectorPeer.java:189)
Comment 7 azizi 2008-09-14 13:22:55 UTC
Created attachment 69818 [details]
stacktrace
Comment 8 chronosmark 2008-09-14 17:54:47 UTC
Build: NetBeans IDE Dev (Build 200809101401)
VM: Java HotSpot(TM) Client VM, 1.6.0-b105, Java(TM) SE Runtime Environment, 1.6.0-b105
OS: Windows XP, 5.1, x86

User Comments: 
On auto complete

Stacktrace: 
java.util.ConcurrentModificationException
        at java.util.IdentityHashMap$IdentityHashMapIterator.nextIndex(IdentityHashMap.java:715)
        at java.util.IdentityHashMap$KeyIterator.next(IdentityHashMap.java:804)
        at org.netbeans.modules.timers.InstanceWatcher.contains(InstanceWatcher.java:78)
        at org.netbeans.modules.timers.InstanceWatcher.add(InstanceWatcher.java:72)
        at org.netbeans.modules.timers.TimesCollectorPeer$ObjectCountDescripton.add(TimesCollectorPeer.java:214)
        at org.netbeans.modules.timers.TimesCollectorPeer$ObjectCountDescripton.access$000(TimesCollectorPeer.java:189)
Comment 9 chronosmark 2008-09-14 17:54:50 UTC
Created attachment 69823 [details]
stacktrace
Comment 10 gekkothelizard 2008-09-19 21:12:25 UTC
Build: NetBeans IDE Dev (Build 200809170201)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b28
OS: Windows XP, 5.1, x86

User Comments:
gekkothelizard: I was debugging an application - nothing special, just a very small program

tonybeckham: Editing PHP document and invoked CC.

GUEST: I don's speak english, but this happened when i was trying to change the name of a variable

jbecicka: Just tried to open netbeans projects from main repository and waited for all project icons to be loaded (btw it takes ages).

alexlamsl: /*
 * Copyright (c) 2008 NanoBeam Ltd
 * *****************************************************************************
 * All rights reserved.  No part of this software shall be reproduced, stored in
 * a retrieval system,  or retransmitted by any means,  electronic,  mechanical,
 * photocopying,  recording  or  otherwise,   without  written  permission  from
 * NanoBeam Ltd. No title to or ownership of the software is hereby transferred.
 * 
 * Any information contained in this  software may be changed without notice and
 * should not be taken as a commitment by NanoBeam Ltd.
 * 
 * NanoBeam Ltd  assumes no  responsibility  for the use or  reliability of this
 * software  on equipment that  has not  been approved  by  NanoBeam Ltd,  or if
 * modifications are made except as authorised by NanoBeam Ltd.
 * 
 * NanoBeam Ltd may be  contacted via our website, at www.nanobeam.co.uk, or via
 * e-mail at info@nanobeam.co.uk.
 * Copyright © 2002-2008 NanoBeam Limited
 * All rights reserved

mkrauskopf: Opened a Ruby project.

sternix: when i want to edit the <div style=" ... "> i press the ctrl + space
i got this...

areeda: Editing php source

chronosmark: On auto complete

gekkothelizard: I was debugging an application - nothing special, just a very small program



Stacktrace: 
java.util.ConcurrentModificationException
        at java.util.IdentityHashMap$IdentityHashMapIterator.nextIndex(IdentityHashMap.java:715)
        at java.util.IdentityHashMap$KeyIterator.next(IdentityHashMap.java:804)
        at org.netbeans.modules.timers.InstanceWatcher.contains(InstanceWatcher.java:78)
        at org.netbeans.modules.timers.InstanceWatcher.add(InstanceWatcher.java:72)
        at org.netbeans.modules.timers.TimesCollectorPeer$ObjectCountDescripton.add(TimesCollectorPeer.java:214)
        at org.netbeans.modules.timers.TimesCollectorPeer$ObjectCountDescripton.access$000(TimesCollectorPeer.java:189)
Comment 11 chronosmark 2008-09-22 09:02:39 UTC
Build: NetBeans IDE Dev (Build 200809130201)
VM: Java HotSpot(TM) Client VM, 10.0-b22, Java(TM) SE Runtime Environment, 1.6.0_06-b02
OS: Windows XP, 5.1, x86

User Comments:
chronosmark: When added included path to PEAR. Scanning Directory.

tonybeckham: Editing PHP document and invoked CC.

GUEST: I don's speak english, but this happened when i was trying to change the name of a variable

jbecicka: Just tried to open netbeans projects from main repository and waited for all project icons to be loaded (btw it takes ages).

alexlamsl: /*
 * Copyright (c) 2008 NanoBeam Ltd
 * *****************************************************************************
 * All rights reserved.  No part of this software shall be reproduced, stored in
 * a retrieval system,  or retransmitted by any means,  electronic,  mechanical,
 * photocopying,  recording  or  otherwise,   without  written  permission  from
 * NanoBeam Ltd. No title to or ownership of the software is hereby transferred.
 * 
 * Any information contained in this  software may be changed without notice and
 * should not be taken as a commitment by NanoBeam Ltd.
 * 
 * NanoBeam Ltd  assumes no  responsibility  for the use or  reliability of this
 * software  on equipment that  has not  been approved  by  NanoBeam Ltd,  or if
 * modifications are made except as authorised by NanoBeam Ltd.
 * 
 * NanoBeam Ltd may be  contacted via our website, at www.nanobeam.co.uk, or via
 * e-mail at info@nanobeam.co.uk.
 * Copyright © 2002-2008 NanoBeam Limited
 * All rights reserved

mkrauskopf: Opened a Ruby project.

sternix: when i want to edit the <div style=" ... "> i press the ctrl + space
i got this...

areeda: Editing php source

chronosmark: On auto complete

gekkothelizard: I was debugging an application - nothing special, just a very small program

chronosmark: When added included path to PEAR. Scanning Directory.



Stacktrace: 
java.util.ConcurrentModificationException
        at java.util.IdentityHashMap$IdentityHashMapIterator.nextIndex(IdentityHashMap.java:715)
        at java.util.IdentityHashMap$KeyIterator.next(IdentityHashMap.java:804)
        at org.netbeans.modules.timers.InstanceWatcher.contains(InstanceWatcher.java:78)
        at org.netbeans.modules.timers.InstanceWatcher.add(InstanceWatcher.java:72)
        at org.netbeans.modules.timers.TimesCollectorPeer$ObjectCountDescripton.add(TimesCollectorPeer.java:214)
        at org.netbeans.modules.timers.TimesCollectorPeer$ObjectCountDescripton.access$000(TimesCollectorPeer.java:189)
Comment 12 gekkothelizard 2008-09-24 14:09:00 UTC
Build: NetBeans IDE Dev (Build 200809211401)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b28
OS: Windows XP, 5.1, x86

User Comments: 
I was adding the @Version annotation by pressing CTRL+SPACE after writing @ver

Stacktrace: 
java.util.ConcurrentModificationException
        at java.util.IdentityHashMap$IdentityHashMapIterator.nextIndex(IdentityHashMap.java:715)
        at java.util.IdentityHashMap$KeyIterator.next(IdentityHashMap.java:804)
        at org.netbeans.modules.timers.InstanceWatcher.contains(InstanceWatcher.java:78)
        at org.netbeans.modules.timers.InstanceWatcher.add(InstanceWatcher.java:72)
        at org.netbeans.modules.timers.TimesCollectorPeer$ObjectCountDescripton.add(TimesCollectorPeer.java:214)
        at org.netbeans.modules.timers.TimesCollectorPeer$ObjectCountDescripton.access$000(TimesCollectorPeer.java:189)
Comment 13 gekkothelizard 2008-09-24 14:09:09 UTC
Created attachment 70464 [details]
stacktrace
Comment 14 pribyl 2008-09-30 09:30:48 UTC
Build: NetBeans IDE Dev (Build 200809300201)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b28
OS: Windows XP, 5.1, x86

User Comments: 
I was editing really simple php project (with only 4 php classes, each one in separate file).
I selected whole code from one file and pasted it into a new (empty) file called 'EmptyPHP.php'
This Exception was thrown

Stacktrace: 
java.util.ConcurrentModificationException
        at java.util.IdentityHashMap$IdentityHashMapIterator.nextIndex(IdentityHashMap.java:715)
        at java.util.IdentityHashMap$KeyIterator.next(IdentityHashMap.java:804)
        at org.netbeans.modules.timers.InstanceWatcher.contains(InstanceWatcher.java:78)
        at org.netbeans.modules.timers.InstanceWatcher.add(InstanceWatcher.java:72)
        at org.netbeans.modules.timers.TimesCollectorPeer$ObjectCountDescripton.add(TimesCollectorPeer.java:214)
        at org.netbeans.modules.timers.TimesCollectorPeer$ObjectCountDescripton.access$000(TimesCollectorPeer.java:189)
Comment 15 pribyl 2008-09-30 09:30:59 UTC
Created attachment 70877 [details]
stacktrace
Comment 16 rajivderas 2008-10-01 14:12:10 UTC
Build: NetBeans IDE Dev (Build 200809301401)
VM: Java HotSpot(TM) Client VM, 11.0-b11, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b21
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
java.util.ConcurrentModificationException
        at java.util.IdentityHashMap$IdentityHashMapIterator.nextIndex(IdentityHashMap.java:715)
        at java.util.IdentityHashMap$KeyIterator.next(IdentityHashMap.java:804)
        at org.netbeans.modules.timers.InstanceWatcher.contains(InstanceWatcher.java:78)
        at org.netbeans.modules.timers.InstanceWatcher.add(InstanceWatcher.java:72)
        at org.netbeans.modules.timers.TimesCollectorPeer$ObjectCountDescripton.add(TimesCollectorPeer.java:214)
        at org.netbeans.modules.timers.TimesCollectorPeer$ObjectCountDescripton.access$000(TimesCollectorPeer.java:189)
Comment 17 rajivderas 2008-10-01 14:12:23 UTC
Created attachment 70969 [details]
stacktrace
Comment 18 Exceptions Reporter 2008-10-08 14:24:42 UTC
This issue has already 50 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=71234
Comment 19 giorgio42 2008-10-17 17:29:42 UTC
Created attachment 72141 [details]
Uploaded displayTags.jsp.dump as suggested.
Comment 20 sunbiz 2008-10-21 14:49:00 UTC
Build: NetBeans IDE Dev (Build 200810210201)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc2-b32
OS: Windows Vista, 6.0, x86

User Comments: 
Refresh Find usages on Usages window and got this exception

Stacktrace: 
java.util.ConcurrentModificationException
        at java.util.IdentityHashMap$IdentityHashMapIterator.nextIndex(IdentityHashMap.java:715)
        at java.util.IdentityHashMap$KeyIterator.next(IdentityHashMap.java:804)
        at org.netbeans.modules.timers.InstanceWatcher.contains(InstanceWatcher.java:78)
        at org.netbeans.modules.timers.InstanceWatcher.add(InstanceWatcher.java:72)
        at org.netbeans.modules.timers.TimesCollectorPeer$ObjectCountDescripton.add(TimesCollectorPeer.java:214)
        at org.netbeans.modules.timers.TimesCollectorPeer$ObjectCountDescripton.access$000(TimesCollectorPeer.java:189)
Comment 21 sunbiz 2008-10-21 14:49:10 UTC
Created attachment 72391 [details]
stacktrace
Comment 22 Lukas Hasik 2008-10-21 16:09:45 UTC
as I think that pnejedly won't work on it I'm reassigning to tonda. This issue has plenty of duplicates
Comment 23 Antonin Nebuzelsky 2008-10-24 17:55:40 UTC
Reassigning to new timers module owner jtulach.
Comment 24 Jaroslav Tulach 2008-10-29 18:33:57 UTC
42111c30db92
Comment 25 Jaroslav Tulach 2008-10-29 18:34:28 UTC
*** Issue 148922 has been marked as a duplicate of this issue. ***
Comment 26 Jaroslav Tulach 2008-10-29 18:34:48 UTC
*** Issue 150836 has been marked as a duplicate of this issue. ***
Comment 27 Quality Engineering 2008-10-30 04:57:59 UTC
Integrated into 'main-golden', will be available in build *200810300201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/42111c30db92
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #141728: Encapsulating the field with getter and ensuring everyone who accesses it, has lock on the class
Comment 28 Jan Lahoda 2008-10-30 11:18:48 UTC
*** Issue 151837 has been marked as a duplicate of this issue. ***