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 230150 - java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry
Summary: java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.n...
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-23 08:08 UTC by _ tboudreau
Modified: 2013-05-30 12:46 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 200706


Attachments
stacktrace (2.87 KB, text/plain)
2013-05-23 08:08 UTC, _ tboudreau
Details
stacktrace (4.38 KB, text/plain)
2013-05-24 06:56 UTC, _ tboudreau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2013-05-23 08:08:31 UTC
Build: NetBeans IDE Dev (Build NetBeans-86-on-20130516)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b11
OS: Linux

User Comments:
GUEST: Added jquery and yui js libraries to JSF web project

GUEST: closed an open editor window.  It was a javascript file, as part of an HTML5 app.

GUEST: In JSF web project installed  yuu-min.js libarary
Exception occurs on every open this file

GUEST: Exception throws every time once yui-min.js library opened

GUEST: <Please provide a description of the problem or the steps to reproduce>.

GUEST: Just navigating around.

tboudreau: Double clicked in explorer to open a file




Stacktrace: 
java.util.ConcurrentModificationException
   at java.util.HashMap$HashIterator.nextEntry(HashMap.java:894)
   at java.util.HashMap$ValueIterator.next(HashMap.java:922)
   at org.netbeans.modules.javascript2.editor.model.Model.resolveLocalTypes(Model.java:193)
   at org.netbeans.modules.javascript2.editor.model.Model.resolveLocalTypes(Model.java:194)
   at org.netbeans.modules.javascript2.editor.model.Model.getModelVisitor(Model.java:140)
   at org.netbeans.modules.javascript2.editor.model.Model.getGlobalObject(Model.java:165)
Comment 1 _ tboudreau 2013-05-23 08:08:35 UTC
Created attachment 134780 [details]
stacktrace
Comment 2 _ tboudreau 2013-05-23 12:18:18 UTC
This makes the IDE useless for editing Javascript the exception is rethrown every few keystrokes.
Comment 3 _ tboudreau 2013-05-24 06:56:15 UTC
Created attachment 134846 [details]
stacktrace

Still happening in a build from today
Comment 4 Vladimir Riha 2013-05-27 06:47:08 UTC
Could you please try to download latest build? It seems similar to issue 229817 which was recently fixed. I tried to add and open yui-min.js and it works OK. Thanks


Product Version: NetBeans IDE Dev (Build web-main-10615-on-20130527)
Java: 1.7.0_21; Java HotSpot(TM) Client VM 23.21-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11
System: Linux version 3.2.0-43-generic-pae running on i386; UTF-8; en_US (nb)
Comment 5 Petr Pisl 2013-05-27 09:13:08 UTC
Please, do you have a reproducible file? It will help me a lot. I don't wont to add blindly synchronization, where shouldn't be.
Comment 6 _ tboudreau 2013-05-27 20:17:10 UTC
I don't know what file this happened on but if it happens again I'll attach the file.
Comment 7 Petr Pisl 2013-05-27 20:39:17 UTC
Thanks Tim.
Comment 8 Petr Pisl 2013-05-30 12:46:44 UTC
Seems that this issue is already fixed. The latest report is from the 16.th May build.