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 190210 - ClassCastException: java.lang.String cannot be cast to org.netbeans.modules.db.util.JdbcUrl
Summary: ClassCastException: java.lang.String cannot be cast to org.netbeans.modules.d...
Status: RESOLVED WORKSFORME
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-07 13:48 UTC by flotho
Modified: 2011-03-24 12:05 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 172309


Attachments
stacktrace (9.58 KB, text/plain)
2010-09-07 13:48 UTC, flotho
Details

Note You need to log in before you can comment on or make changes to this bug.
Description flotho 2010-09-07 13:48:40 UTC
This issue was reported manually by musilt2.
It already has 1 duplicates 


Build: NetBeans IDE 6.9.1 (Build 201008030030)
VM: Java HotSpot(TM) Client VM, 17.0-b16, Java(TM) SE Runtime Environment, 1.6.0_21-b06
OS: Linux

User Comments:
flotho: Trying to import entity classes from the database. Impossible to select a proper datasource




Stacktrace: 
java.lang.ClassCastException: java.lang.String cannot be cast to org.netbeans.modules.db.util.JdbcUrl
   at org.netbeans.modules.db.util.DatabaseExplorerInternalUIs$DriverDataComboBoxModel.getItemDisplayName(DatabaseExplorerInternalUIs.java:100)
   at org.netbeans.modules.db.util.DataComboBoxSupport$ItemListCellRenderer.getListCellRendererComponent(DataComboBoxSupport.java:226)
   at javax.swing.plaf.basic.BasicComboBoxUI.getBaseline(BasicComboBoxUI.java:960)
   at javax.swing.plaf.metal.MetalComboBoxUI.getBaseline(MetalComboBoxUI.java:132)
   at javax.swing.JComponent.getBaseline(JComponent.java:2532)
   at javax.swing.GroupLayout$ComponentSpring.getBaseline(GroupLayout.java:3000)
Comment 1 flotho 2010-09-07 13:48:43 UTC
Created attachment 101917 [details]
stacktrace
Comment 2 Jiri Rechtacek 2011-03-24 12:05:49 UTC
NewConnectionDialog was reworked a lot in NB7.0, probably already fixed. If I'm wrong in NetBeans 7.0 or later, please reopen it again. Thanks