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 180284 - Services->Databases no longer works for AS400 databases
Summary: Services->Databases no longer works for AS400 databases
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: DB schema (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-04 07:46 UTC by moamoa
Modified: 2010-03-23 05:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
log file with requested -D argument (72.19 KB, text/plain)
2010-03-18 12:25 UTC, gholmer
Details
patched db-metadata module (217.80 KB, application/octet-stream)
2010-03-19 15:14 UTC, Jiri Rechtacek
Details
log file with patched module installed (150.36 KB, text/plain)
2010-03-19 17:50 UTC, gholmer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description moamoa 2010-02-04 07:46:41 UTC
When you connect to an AS400 database you are no longer able to see any schema under the top level node. You are not able to view any tables or other object, nor add any. You can still execute queries and the database connection itself seems to be working.

When you try to expand the database connection node, the + disappears for a short while, then reappears. No items are expanded under the route node.

This functioned perfectly prior to 6.8 and has only stopped working in this version. It has been tested on various AS400 databases and on the latest JDBC drivers.

Other users have this issue too;
http://netbeans.org/projects/www/lists/nbusers/archive/2010-02/message/129
Comment 1 Jiri Rechtacek 2010-02-04 07:53:33 UTC
Because AS400 is not one of supported platforms/db I have to decrease the priority to P3/4. If there is a public accessible AS400 server I can debug NetBeans DB support with that one.
Comment 2 moamoa 2010-02-04 08:56:06 UTC
I have checked message.txt and there is nothing indicating an issue of any kind.

Is there a way of turning on some kind of detail debug output, in order to see what the db exploring is trying to do when the root node is being expanded?
Comment 3 diegobazzanella 2010-02-17 14:06:43 UTC
I think this bug may be the same then id 174220 bug:

https://netbeans.org/bugzilla/show_bug.cgi?id=174220
Comment 4 gholmer 2010-03-17 14:56:31 UTC
There is absolutely no way we are going to be able to make our AS/400 boxes publicly available for testing.  Surely there's another way to find out how this regression happened?
Comment 5 moamoa 2010-03-18 10:26:18 UTC
Access to AS400 systems for testing seems "difficult" for sure.

Is it not possible to turn on some kind of detail logging for this module so that users with access to an as400 can test and report details. Surely this should be enough to resolve this?
Comment 6 gholmer 2010-03-18 12:25:13 UTC
Created attachment 95367 [details]
log file with requested -D argument
Comment 7 Jiri Rechtacek 2010-03-18 16:57:02 UTC
Thanks for the log. I'm going to patch the module to ignore such exception and send you back.
Comment 8 Jiri Rechtacek 2010-03-19 15:14:37 UTC
Created attachment 95448 [details]
patched db-metadata module

Attached DB JDBC Metadata module, contains more logging and a fix maybe. Please, copy the module into your IDE installation and try connect to AS400 again. Send back your log. Thanks
Comment 9 gholmer 2010-03-19 17:47:46 UTC
Works great, thank you!  For those who didn't see the message on the NetCAT list, the request was to add -J-Dorg.netbeans.modules.db.level=FINEST before starting NetBeans in order to get logging information.  You would add it to the 
netbeans_default_options line in <install-dir>/etc/netbeans.conf.  The patched module goes in <install-dir>/ide/modules.
Comment 10 gholmer 2010-03-19 17:50:24 UTC
Created attachment 95456 [details]
log file with patched module installed
Comment 11 Jiri Rechtacek 2010-03-22 10:59:21 UTC
Thanks for response. The fix seems to be working, I commit the fix in core-main/rev/3796bc229799
Btw, the problem was caused by fix of issue 169704 in NB6.8.
Comment 12 Quality Engineering 2010-03-23 05:14:10 UTC
Integrated into 'main-golden', will be available in build *201003230200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/3796bc229799
User: Jiri Rechtacek <jrechtacek@netbeans.org>
Log: #180284: Services->Databases no longer works for AS400 databases