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 162003 - ClassCastException: org.netbeans.modules.db.mysql.DatabaseUser cannot be cast to java.lang.String
Summary: ClassCastException: org.netbeans.modules.db.mysql.DatabaseUser cannot be cast...
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jiri Rechtacek
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-05 23:47 UTC by donatienl
Modified: 2009-05-05 14:44 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 138400


Attachments
stacktrace (5.71 KB, text/plain)
2009-04-05 23:47 UTC, donatienl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description donatienl 2009-04-05 23:47:30 UTC
Build: NetBeans IDE Dev (Build 200902231810)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Windows XP, 5.1, x86

User Comments:
holmerkel: creating a new mysql database

GUEST: Trying to add a database to mysql with Netbeans services

GUEST: using nebeans 6.7 m2 but also the latest nightly version i tried to add a new database and when i try to enter the database name i get this error not allowing me to enter any words in the end

GUEST: Creating new database for Rails Project



Stacktrace: 
java.lang.ClassCastException: org.netbeans.modules.db.mysql.DatabaseUser cannot be cast to java.lang.String
        at org.netbeans.modules.db.mysql.ui.CreateDatabasePanel.validatePanel(CreateDatabasePanel.java:75)
        at org.netbeans.modules.db.mysql.ui.CreateDatabasePanel.access$1300(CreateDatabasePanel.java:47)
        at org.netbeans.modules.db.mysql.ui.CreateDatabasePanel$3.keyTyped(CreateDatabasePanel.java:360)
        at java.awt.Component.processKeyEvent(Component.java:6171)
        at javax.swing.JComponent.processKeyEvent(JComponent.java:2799)
        at java.awt.Component.processEvent(Component.java:5993)
Comment 1 donatienl 2009-04-05 23:47:35 UTC
Created attachment 79491 [details]
stacktrace
Comment 2 Jiri Rechtacek 2009-04-06 15:43:35 UTC
core-main/rev/2feb99ce8b05
Comment 3 Quality Engineering 2009-04-07 07:24:53 UTC
Integrated into 'main-golden', will be available in build *200904070200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/2feb99ce8b05
User: Jiri Rechtacek <jrechtacek@netbeans.org>
Log: #162003: ClassCastException: org.netbeans.modules.db.mysql.DatabaseUser cannot be cast to java.lang.String