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 54153 - NPE when opening DB schema node
Summary: NPE when opening DB schema node
Status: CLOSED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: DB schema (show other bugs)
Version: 4.x
Hardware: Macintosh Mac OS X
: P3 blocker (vote)
Assignee: Jan Horvath
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-28 12:49 UTC by Jan Horvath
Modified: 2006-03-24 12:47 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NPE (683 bytes, patch)
2005-01-28 12:50 UTC, Jan Horvath
Details | Diff
dbschema (167.28 KB, text/plain)
2005-03-01 14:35 UTC, Jan Horvath
Details
Patch that solved this for me. (5.16 KB, patch)
2005-03-03 18:37 UTC, Petr Jiricka
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Horvath 2005-01-28 12:49:51 UTC
build 20050128-0954

-create db schema from jdbc connection (mysql)
-open db schema node
-NPE
Comment 1 Jan Horvath 2005-01-28 12:50:12 UTC
Created attachment 20038 [details]
NPE
Comment 2 Rochelle Raccah 2005-02-16 00:44:13 UTC
How did you create the dbschema (New->File on some node in the
project)?  Where in the project did you put it?
What kind of project is it?

Can you reproduce it by creating a new project, copying that schema in
there and then expanding it?
Comment 3 Rochelle Raccah 2005-02-18 03:51:23 UTC
Issue 53887 has a different stack, but similar behavior.  Could it be 
a duplicate?
Comment 4 Rochelle Raccah 2005-02-18 22:30:32 UTC
Please provide more info as requested.

Also, I believe impact is somewhat low - the db schema node cannot be
expanded without an error icon (probably related to getPackageNameExt
- nb 3.6 way of doing things somewhere in the code). But, usage of the
schema to create CMP beans or to map CMP beans should still be working.
Comment 5 Jan Horvath 2005-03-01 14:35:02 UTC
i couldn't reproduce it in new builds. I didn't get NPE but when open newly created 
dbschema, there is an "error..." as only subnode. I'm attaching dbschema with this error.
Comment 6 Jan Horvath 2005-03-01 14:35:53 UTC
Created attachment 20589 [details]
dbschema
Comment 7 Petr Jiricka 2005-03-03 18:36:40 UTC
I also got the error that Rochelle describes. It happens consistently
when I create a new schema from template in the project root
directory. I don't know why it happens, but I saw some suspicious code
in dbschema. I changed it the way it is used in j2ee/ejbjarproject,
and it started to work!

I am attaching a diff - Rochelle, can you please review it? Thanks.
Comment 8 Petr Jiricka 2005-03-03 18:37:30 UTC
Created attachment 20660 [details]
Patch that solved this for me.
Comment 9 Petr Jiricka 2005-03-04 17:08:39 UTC
I see that it works now for me, even without my fix. 

The attached file can be open fine in new builds. Marking as fixed.
Comment 10 Jan Horvath 2005-04-18 13:32:15 UTC
v.