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 201605 - 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 FIXED
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: 2011-09-04 23:35 UTC by 372046933
Modified: 2011-10-17 07:30 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 171022


Attachments
stacktrace (9.00 KB, text/plain)
2011-09-04 23:35 UTC, 372046933
Details

Note You need to log in before you can comment on or make changes to this bug.
Description 372046933 2011-09-04 23:35:32 UTC
Build: NetBeans IDE 6.9.1 (Build 201011082200)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.1-b02, Java(TM) SE Runtime Environment, 1.6.0_26-b03
OS: Linux

User Comments:
GUEST: i create an entity from database in the wizard

jeff_rubinoff: selecting data source

GUEST: NetBeans said there's a problem with datasource of the project. A yellow exclamation mark is also conspicuous. But when I am about to ressolve the problem by add a link. The exception is caught by NetBeans. The expected datasouce window doesn't appear. Believe it or not, the connection to DB is actually sound. I can run the project without any exception except a YELLOW exclamation

GUEST: change SID from newDB to orcl

GUEST: ???nb6.9.1????EJB????????????????BEAN??????????????????????????????????weblogic10.3.2

GUEST: Resolving a DataSource Conflict in the project




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.JComponent.getBaseline(JComponent.java:2532)
   at javax.swing.GroupLayout$ComponentSpring.getBaseline(GroupLayout.java:3000)
   at javax.swing.GroupLayout$BaselineGroup.calculateBaselineAndResizeBehavior(GroupLayout.java:2657)
Comment 1 372046933 2011-09-04 23:35:37 UTC
Created attachment 110382 [details]
stacktrace
Comment 2 Jeffrey Rubinoff 2011-09-05 11:38:34 UTC
I don't know about Jiri, but I cannot understand your bug report at all. I don't remember our exchange, which must have been some time ago, and I cannot find it in my inbox.
Could you please say *exactly* what you were doing that resulted in this problem? And all environment information?
In order to find the problem, Jiri will have to reproduce it. So you need to give steps to reproduce the problem in your bug report.
Comment 3 Jiri Rechtacek 2011-10-17 07:30:41 UTC
All reports came from NB6.9.x, no more reports after NB7.0. It seems it was fixed in NB7.0 (see issue 191530)