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 252712 - java.util.ConcurrentModificationException at java.util.ArrayList.sort
Summary: java.util.ConcurrentModificationException at java.util.ArrayList.sort
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: SQL Editor (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: matthias42
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-31 19:41 UTC by bht
Modified: 2015-06-04 02:31 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 213568


Attachments
stacktrace (690 bytes, text/plain)
2015-05-31 19:41 UTC, bht
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bht 2015-05-31 19:41:12 UTC
Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) Client VM, 25.45-b02, Java(TM) SE Runtime Environment, 1.8.0_45-b15
OS: Windows XP

User Comments:
GUEST: 1

GUEST: sdfsdf

henry_oc: Closed all open class tabs, then used CTR+O to load a new class tab while the Maven unpack index pocess was running (slowing down the PC). Then noticed this notification. (Also have some old SQL tabs open which I haven't used or connected to DB yet this IDE session.)

GUEST: Just using format option

bht: In an editor window with SQL from a previous session, trying to execute the statement which is still there from the previous session. In the "Connection:" dropdown, text shows "Loading connections..." but I cannot select a connection. Then I connect in the services window which works, but in the editor I can still not connect.

GUEST: Was editing java code. No special action was running.

GUEST: Sorry. Didn't see how it happened.




Stacktrace: 
java.util.ConcurrentModificationException
   at java.util.ArrayList.sort(ArrayList.java:1456)
   at java.util.Collections.sort(Collections.java:175)
   at org.netbeans.modules.db.sql.editor.ui.actions.ConnectionAction$DatabaseConnectionModel.sortConnections(ConnectionAction.java:338)
   at org.netbeans.modules.db.sql.editor.ui.actions.ConnectionAction$DatabaseConnectionModel.<init>(ConnectionAction.java:270)
   at org.netbeans.modules.db.sql.editor.ui.actions.ConnectionAction$ToolbarPresenter$1.run(ConnectionAction.java:163)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
Comment 1 bht 2015-05-31 19:41:15 UTC
Created attachment 153979 [details]
stacktrace
Comment 2 matthias42 2015-06-02 18:32:52 UTC
Thank you for your report! A fix was pushed as:

http://hg.netbeans.org/core-main/rev/4581b6c68d91

In the next few days a nightly build will be made available and a message added here. Please check that version if it work correctly for you and whether you can reproduce the problem.

If you find the problem fix, please change the Status of this bug to VERIFIED.
Comment 3 bht 2015-06-03 07:50:23 UTC
Thanks for fixing this. But it is unlikely that I can be of further assistance with this because this was for me a one in a lifetime event - unlikely that I would have encountered this again even without the fix :)
Comment 4 Quality Engineering 2015-06-04 02:31:29 UTC
Integrated into 'main-silver', will be available in build *201506040001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/4581b6c68d91
User: Matthias Blaesing <matthias42@netbeans.org>
Log: #252712: Fix ConcurrentModificationException in connection selector of db dataview