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.

Bug 131356 - Can not get out of the New JDBC Driver dialog
Summary: Can not get out of the New JDBC Driver dialog
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Hibernate (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vadiraj Deshpande
URL:
Keywords:
Depends on: 129633
Blocks:
  Show dependency tree
 
Reported: 2008-03-28 00:37 UTC by Dongmei Cao
Modified: 2008-11-24 13:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Sample project to reproduce the bug (16.02 KB, application/x-compressed)
2008-03-28 00:46 UTC, Dongmei Cao
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dongmei Cao 2008-03-28 00:37:20 UTC
Use the attached project and try to CC on the table attribute in the Trip.hbm.xml. 
It pops up the New JDBC Driver dialog. But there is no way to get out of this dialog. 
I have to kill the IDE by Ctrl-C.

The cause is from the configuration file. Notice I have commented out 

    <!-- comment them out to reproduce the bug
    <property name="hibernate.connection.driver_class">org.apache.derby.jdbc.ClientDriver</property>
    <property name="hibernate.connection.url">jdbc:derby://localhost:1527/travel</property>
    -->

If there is no driver_class specified in the configuration file, the New JDBC Driver dialog will pop up and get stuck.
If the driver_class is specified and no url is specified, then CC gives "No Suggestion", which is expected.
Comment 1 Dongmei Cao 2008-03-28 00:46:20 UTC
Created attachment 59262 [details]
Sample project to reproduce the bug
Comment 2 Vadiraj Deshpande 2008-03-31 04:37:45 UTC
I agree that this is an issue specially the JDBC driver dialog. If the driver is not found in the XML, this dialog pops
up to ask the driver information from the user. This is same behavior as with db api. When the dialog is shown, user
have the option of specifying the driver details, and upon providing the details, the connection is established and CC
will be activated. 

Investigating further.
Comment 3 Vadiraj Deshpande 2008-04-01 12:57:07 UTC
This issue is because the Database Explorer API do not have any feedback from the Add Driver dialog. See
http://www.netbeans.org/issues/show_bug.cgi?id=129633
Comment 4 Vadiraj Deshpande 2008-04-01 14:44:38 UTC
The issue with add driver dialog showing in never ending loop is fixed. 
The user feedback messages will be handled in separate enhancement. (http://www.netbeans.org/issues/show_bug.cgi?id=131722)
Comment 5 martin_zmrhal 2008-11-24 13:57:13 UTC
Verified

Product Version: NetBeans IDE Dev (Build 200811240201)
Java: 1.6.0_10; Java HotSpot(TM) Client VM 11.0-b15
System: Linux version 2.6.27-7-generic running on i386; UTF-8; en_US (nb)