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 145801 - DB tables are not listed on the 3th step of wizard for JDA creation.
Summary: DB tables are not listed on the 3th step of wizard for JDA creation.
Status: VERIFIED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: David Vancouvering
URL:
Keywords:
: 145780 145834 145869 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-09-01 12:46 UTC by Jana Maleckova
Modified: 2008-09-02 16:02 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exc1-and-exc2.txt (3.54 KB, text/plain)
2008-09-01 14:08 UTC, Jiri Vagner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jana Maleckova 2008-09-01 12:46:39 UTC
Product Version: NetBeans IDE Dev (Build 20080901062808)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b13
System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb)

Description:
============
start wizard for Java Desktop Application project with db connection.
On the 3th step, choose db. Then all available db tables should be listed in combo "Database Table" => combo remains
empty and wizard is not able to finish. No workaround exist => P1
Comment 1 Jan Stola 2008-09-01 12:58:29 UTC
I am sorry, I am not able to reproduce this issue. Are you able to reproduce it reliably? Please, try to find out more 
details about this problem. It definitely is not as general as you describe it e.g. it doesn't occur on all platforms, 
OSs, JDKs, DBs etc. Thank you in advance.
Comment 2 Jana Maleckova 2008-09-01 13:42:39 UTC
it is reproducible on Ubuntu/XP win. used DB - derby. tested with jdk 1.6.0_10 on both platforms
Comment 3 Jan Stola 2008-09-01 13:47:36 UTC
OK, thanks. It seems to be reproducible in the very latest development builds only - it works fine in 080825, but it 
doesn't work in 20080901. I was able to reproduce it on both JDK 5 and JDK 6.
Comment 4 Jiri Vagner 2008-09-01 14:07:14 UTC
Something wrong with db support in last dev version. I'm not able to see created tables inside new created db, clicking
on Tables node throws exception (exc1). Right mouse click inside text area of SQL Command window throws another
exception (exc2). After restart of IDE I can see tables in db explorer, but I'm not able to use connection to this
connection witt JDA DB project wizard. Maybe form module is innocent. What about reassigning this issue to db guys?

Dev (Build 200808311401), Java: 1.6.0_05, Apache Derby - 10.2.2.0

exc1: 
org.apache.derby.client.am.SqlException: Žádné aktuální připojení.
	at org.apache.derby.client.am.DatabaseMetaData.checkForClosedConnectionX(Unknown Source)
Caused: java.sql.SQLTransientConnectionException: Žádné aktuální připojení.
	at org.apache.derby.client.am.SQLExceptionFactory40.getSQLException(Unknown Source)
	at org.apache.derby.client.am.SqlException.getSQLException(Unknown Source)
	at org.apache.derby.client.am.DatabaseMetaData.checkForClosedConnection(Unknown Source)
        ...


exc2:
java.lang.NullPointerException
	at org.openide.awt.Mnemonics.findMnemonicAmpersand(Mnemonics.java:169)
	at org.openide.awt.AlwaysEnabledAction.extractCommonAttribute(AlwaysEnabledAction.java:91)
	at org.openide.awt.AlwaysEnabledAction.getValue(AlwaysEnabledAction.java:78)
	at javax.swing.AbstractButton.setMnemonicFromAction(AbstractButton.java:1236)
	at javax.swing.AbstractButton.configurePropertiesFromAction(AbstractButton.java:1140)
         ...

Comment 5 Jiri Vagner 2008-09-01 14:08:53 UTC
Created attachment 68792 [details]
exc1-and-exc2.txt
Comment 6 Jiri Vagner 2008-09-01 14:20:47 UTC
Oups, this issue is already assigned to db component. Sorry. :)
Comment 7 Andrei Badea 2008-09-01 16:29:19 UTC
I could not reproduce in a self-compiled build with sources from about September 1, 16:00 CEST. Moreover, the second
exception in jvagner's stack trace was fixed in issue 145751, but it seems the fix didn't make it into the
20080901062808 build. Could you please try to reproduce in a self-compiled build or tomorrow's daily build? Thanks.
Comment 8 Andrei Badea 2008-09-01 16:33:40 UTC
Weird, suddenly I can reproduce now.
Comment 9 Andrei Badea 2008-09-01 17:12:46 UTC
Seems caused by the change to o.n.m.db.explorer.DatabaseConnection in #9e49de57eafe, so reverting that part of the
changeset in #fb495781989a. Sorry, I just can't do any better at the moment.
Comment 10 Andrei Badea 2008-09-01 17:16:25 UTC
Fix pushed to main.
Comment 11 Andrei Badea 2008-09-01 22:51:49 UTC
*** Issue 145834 has been marked as a duplicate of this issue. ***
Comment 12 Quality Engineering 2008-09-02 05:38:45 UTC
Integrated into 'main-golden', will be available in build *200809020201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/fb495781989a
User: Andrei Badea <abadea@netbeans.org>
Log: #145801: DB tables are not listed on the 3th step of wizard for JDA creation.
Comment 13 Jana Maleckova 2008-09-02 12:47:11 UTC
tables are correctly listed in wizard now.
verified on
Product Version: NetBeans IDE Dev (Build 20080902042312)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b13
System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb)
Comment 14 Andrei Badea 2008-09-02 12:51:58 UTC
*** Issue 145869 has been marked as a duplicate of this issue. ***
Comment 15 Andrei Badea 2008-09-02 13:17:52 UTC
*** Issue 145780 has been marked as a duplicate of this issue. ***
Comment 16 Michel Graciano 2008-09-02 16:02:13 UTC
*** Issue 145834 has been marked as a duplicate of this issue. ***