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.
It was never a good idea to call refreshChildren() on the event thread as it goes to the database. But recent changes to the refresh logic can cause exceptions to be thrown when this is done. In particular, initChildren() for many subclasses of DatabaseNodeInfo now call DatabaseConnection.getJDBCConnection(test), which throws an exception if it's called on the event thread. To fix this, we need to check and see if refreshChildren() is being called on the event thread, and if so, run it on a background thread.
455ccd51237a
Integrated into 'main-golden', will be available in build *200811010201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/455ccd51237a User: David Van Couvering <davidvc@netbeans.org> Log: #152048: DatabaseNodeInfo.refreshChildren() can not be called on the event thread
Verified.
I've transplanted the changeset http://hg.netbeans.org/main/rev/455ccd51237a into release65_fixes repository as http://hg.netbeans.org/release65_fixes/rev/040b48f2dabb