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.
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
Created attachment 12356 [details] xml source file and java file
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