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.
build 20050128-0954 -create db schema from jdbc connection (mysql) -open db schema node -NPE
Created attachment 20038 [details] NPE
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?
Issue 53887 has a different stack, but similar behavior. Could it be a duplicate?
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.
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.
Created attachment 20589 [details] dbschema
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.
Created attachment 20660 [details] Patch that solved this for me.
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.
v.