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 Dev (Build 200809020201) VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b28 OS: Linux, 2.6.24-19-generic, i386 User Comments: Delete existing database connection (Services tab, Databases node). Stacktrace: java.lang.AssertionError at org.netbeans.modules.db.explorer.ConnectionList.remove(ConnectionList.java:164) at org.netbeans.modules.db.explorer.infos.ConnectionNodeInfo.delete(ConnectionNodeInfo.java:462) at org.netbeans.modules.db.explorer.nodes.DatabaseNode.destroy(DatabaseNode.java:201) at org.openide.nodes.FilterNode.destroy(FilterNode.java:599) at org.openide.explorer.ExplorerActionsImpl$DeleteActionPerformer.doDestroy(ExplorerActionsImpl.java:640) at org.openide.explorer.ExplorerActionsImpl$DeleteActionPerformer.actionPerformed(ExplorerActionsImpl.java:590)
Created attachment 69085 [details] stacktrace
Build: NetBeans IDE Dev (Build 200809040201) VM: Java HotSpot(TM) Client VM, 11.0-b12, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b24 OS: Windows XP, 5.1, x86 User Comments: Stacktrace: java.lang.AssertionError at org.netbeans.modules.db.explorer.ConnectionList.remove(ConnectionList.java:164) at org.netbeans.modules.db.explorer.infos.ConnectionNodeInfo.delete(ConnectionNodeInfo.java:462) at org.netbeans.modules.db.explorer.nodes.DatabaseNode.destroy(DatabaseNode.java:201) at org.openide.nodes.FilterNode.destroy(FilterNode.java:599) at org.openide.explorer.ExplorerActionsImpl$DeleteActionPerformer.doDestroy(ExplorerActionsImpl.java:640) at org.openide.explorer.ExplorerActionsImpl$DeleteActionPerformer.actionPerformed(ExplorerActionsImpl.java:590)
Build: NetBeans IDE Dev (Build 200809040201) VM: Java HotSpot(TM) Client VM, 11.0-b12, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b24 OS: Windows XP, 5.1, x86 User Comments: Stacktrace: java.lang.AssertionError
Created attachment 69215 [details] stacktrace
Can't reproduce, of course. It's a timing bug and now I have to sit and think and analyze and try and figure out how this happens... Sigh...
OK, I looked at the code some more. This happens when we try to remove a connection from our internal connection list and the connection is not there. Actually, that's probably OK, and is a sign of a slightly over-conservative assert. I'll change it to an informational log message just so we know that something's awry but go ahead and let the operation continue.
19651e1cea5a
I will note the that the fix is probably working around another problem, so I do not agree with it. (Assuming the fix removes the assert, as stated in desc7.)
Integrated into 'main-golden', will be available in build *200809100201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/19651e1cea5a User: David Van Couvering <davidvc@netbeans.org> Log: #146225: [65cat] AssertionError at org.netbeans.modules.db.explorer.ConnectionList.remove
gholmer, can you verify this issue to be sure that it is fixed? David, what's about Andrei's comment in desc9?
Andrei has a good point that an assert is there for a reason and we should try and identify the root cause. So we can keep this open, but at least people won't keep getting assertion errors when the system is still functioning fine.
> gholmer, can you verify this issue to be sure that it is fixed? I don't see it happening any more, thanks.
Hi, Rob. This is related to the connection cache. I suspect if you remove the cache, then is issue becomes a non-issue. Note that right now the assertion has been removed, but there are cases when we are asked to remove a connection that is not in the cache. Probably related to the work you are doing with ConnectionNodeInfo.
Fixed in #4c829f9abb13 for Issue 144819.
Verified with build 080921.