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.
Summary: | IllegalStateException: Error in org.openide.nodes.EntrySupport$Default with entry Children.Keys.KE[extendedSQLGrammar: false proceduresAreCallable: false readOnly: false maxCharLi,0] from among null i | ||
---|---|---|---|
Product: | db | Reporter: | Jan Horvath <jhorvath> |
Component: | Code | Assignee: | Andrei Badea <abadea> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | romanmostyka, sustaining |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://statistics.netbeans.org/exceptions/detail.do?id=67517 | ||
Issue Type: | DEFECT | Exception Reporter: | 67517 |
Attachments: |
stacktrace
stacktrace |
Description
Jan Horvath
2008-06-20 10:39:51 UTC
Created attachment 63153 [details]
stacktrace
*** Issue 137812 has been marked as a duplicate of this issue. *** This seems to be arising fairly frequently - increasing priority. It looks like this happens when we try to remove a connection from the list and it isn't found in the list. I suspect a timing issue. I think I know the cause. It's difficult because I can't reproduce. I think the problem is I recently changed the equals() and hashCode() method of DatabaseNodeInfo to make use of the display name. The problem is that when you change the URL for a connection, you are changing the display name. Then later on when you try to remove the connection, it can't be found in the node list because equals() is returning false when it should be returning true. So for a connection we need another way to determine if two ConnectionNodeInfo objects are the same (ConnectionNodeInfo inherits from DatabaseNodeInfo). I need to see what other nodes can have their display name changed, or better yet find a hashcode/equals for DatabaseNodeInfo that relies solely on immutable values. Yes, I was able to reproduce. - Create a connection - Disconnect - Go to properties and change the value for the URL (or username) - Try to remove the connection In this way you are guaranteed to get the IllegalStateException I have a fix. Will mark this issue as fixed once I push. *** Issue 137804 has been marked as a duplicate of this issue. *** Integrated into 'main-golden', available in NB_Trunk_Production #273 build Changeset: http://hg.netbeans.org/main/rev/cf2bac824687 User: David Van Couvering <davidvc@netbeans.org> Log: #137811 - IllegalStateException when deleting a connection whose properties have been modified David/Honzo, can you please verify the bugfix in trunk builds? Only verified bugfixes can be ported to NB 6.1 Patch (3) release. Thanks, -R Just got this with 6.5 daily 200807170007. Build: NetBeans IDE Dev (Build 200807170007) VM: Java HotSpot(TM) 64-Bit Server VM, 11.0-b11-fastdebug, Java(TM) SE Runtime Environment, 1.6.0_10-beta-fastdebug-b22 OS: Linux, 2.6.22-14-generic, amd64 User Comments: Deleting a database connection in the Services view results in a exception Created attachment 65087 [details]
stacktrace
Looking at it. 37040e6772c5 Integrated into 'main-golden', available in NB_Trunk_Production #352 build Changeset: http://hg.netbeans.org/main/rev/37040e6772c5 User: Andrei Badea <abadea@netbeans.org> Log: #137811: IllegalStateException: Error in org.openide.nodes.EntrySupport$Default Verified with build 080729. The changeset http://hg.netbeans.org/main/rev/37040e6772c5 is not applicable in release61_fixes repository, because it is effectively a backout of changeset http://hg.netbeans.org/main/rev/18eec35a8c7e made in trunk(6.5) on July 9, 2008 (long after 6.1 branching&release). I've ported the changeset http://hg.netbeans.org/main/rev/cf2bac824687 into release61_fixes repository as http://hg.netbeans.org/release61_fixes/rev/52d0c9d1f933 |