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 37604 - incomplete package definition
Summary: incomplete package definition
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-28 16:23 UTC by fubin
Modified: 2003-12-10 19:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
xml source file and java file (45.04 KB, patch)
2003-11-28 16:30 UTC, fubin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description fubin 2003-11-28 16:23:23 UTC
I read in an xml file with has a root 
package library. When I try to use createExtent
() method to create an instance of root package 
of LibraryPackage (or an instance of its nested 
package uml2) e.g. following code 

final RefPackage m1UmlPackageInstance = 
repository.createExtent(extendName, m2UmlPackage);

there are always same exception occurred:

org.netbeans.api.mdr.CreationFailedException: 
Cannot instantiate package because of unexpected 
exception: org.netbeans.mdr.util.DebugException: 
Package definition is incomplete: class 
CreateObjectAction super = MofClass$Impl  ID: 
1855942D-21B8-11D8-847B-
3FD705F6AA77:00000000000007D9  MID: 1855942D-21B8-
11D8-847B-3FD705F6AA77:00000000000002E2  OPCKG: 
1855942D-21B8-11D8-847B-
3FD705F6AA77:00000000000003F7
Comment 1 fubin 2003-11-28 16:30:00 UTC
Created attachment 12356 [details]
xml source file and java file
Comment 2 Martin Matula 2003-12-10 19:46:08 UTC
Your metamodel contains only one outermost package, all the other 
packages are nested. In spite of that, you are using dozens of 
clustered imports between the packages. Since all the packages are 
nested it is not necessary. Moreover, it is forbidden to cluster a 
nested package. This is why your metamodel cannot be instantiated. 
Please fix your metamodel by removing all imports from it - then it 
will work (I have tested it).
Martin