Build: NetBeans IDE Dev (Build 080620)
VM: Java HotSpot(TM) Client VM, 1.5.0_13-119, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_13-b05-237
OS: Mac OS X, 10.5.3, i386
changing database URL in the db connection properties
Created attachment 63153 [details]
*** 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
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
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
- 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
User: David Van Couvering <firstname.lastname@example.org>
Log: #137811 - IllegalStateException when deleting a connection whose properties have been modified
can you please verify the bugfix in trunk builds? Only verified bugfixes can be ported to NB 6.1 Patch (3) release.
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
Deleting a database connection in the Services view results in a exception
Created attachment 65087 [details]
Looking at it.
Integrated into 'main-golden', available in NB_Trunk_Production #352 build
User: Andrei Badea <email@example.com>
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