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.
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)
Created attachment 153979 [details] stacktrace
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.
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 :)
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