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 56653 - Newly created database schema is corrupted
Summary: Newly created database schema is corrupted
Status: CLOSED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: DB schema (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: Petr Jiricka
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2005-03-18 16:21 UTC by Petr Jiricka
Modified: 2005-07-12 16:20 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The IDE log file (line numbers may not be exact because of my local changes) (16.90 KB, text/plain)
2005-03-25 12:40 UTC, Petr Jiricka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2005-03-18 16:21:15 UTC
1. Create an EJB project
2. Launch the dbschema wizard in this project
3. Select only *some* tables in the wizard, not all
4. Finish
5. Expand the newly created db schema -> an error icon will appear
Comment 1 Petr Jiricka 2005-03-18 17:08:29 UTC
Maybe a false alarm, now I can't reproduce it. I'll look into it more.

Comment 2 _ ludo 2005-03-18 17:24:41 UTC
I got this behaviour once or twice...
IDE restart could load the schema many times....
Event issue?
The schema content might not be the issue, more the way nodes are created I
think... 
Comment 3 Petr Jiricka 2005-03-19 06:16:05 UTC
Added some diagnostic code, please attach the IDE log file if you encounter it
again.

Checking in SchemaRootChildren.java;
/cvs/db/model/src/org/netbeans/modules/dbschema/nodes/SchemaRootChildren.java,v
 <--  SchemaRootChildren.java
new revision: 1.3; previous revision: 1.2
done
Comment 4 Petr Jiricka 2005-03-22 11:03:29 UTC
Petre B, can you reproduce, please. Does anyone have reliable steps to reproduce?
Comment 5 zikmund 2005-03-22 13:33:00 UTC
Similar problems were reported in the past by Jan Horvath - see issue 54153.
Comment 6 Petr Jiricka 2005-03-23 18:12:59 UTC
Adding more diagnostics code. Since this is very hard to reproduce, marking as
incomplete for now.

Checking in src/org/netbeans/modules/dbschema/SchemaElementUtil.java;
/cvs/db/model/src/org/netbeans/modules/dbschema/SchemaElementUtil.java,v  <-- 
SchemaElementUtil.java
new revision: 1.4; previous revision: 1.3
done
Comment 7 Petr Jiricka 2005-03-25 12:39:30 UTC
I was finally able to reproduce this again, and based on the IDE log file with
diagnostic messages, hopefully track it down and fix it.

Checking in src/org/netbeans/modules/dbschema/nodes/SchemaRootChildren.java;
/cvs/db/model/src/org/netbeans/modules/dbschema/nodes/SchemaRootChildren.java,v
 <--  SchemaRootChildren.java
new revision: 1.4; previous revision: 1.3
done

Attaching the IDE log file after this happened. If you are still able to
reproduce after this fix, please reopen.
Comment 8 Petr Jiricka 2005-03-25 12:40:48 UTC
Created attachment 21134 [details]
The IDE log file (line numbers may not be exact because of my local changes)