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.
An InvalidRefCallException is thrown when trying to import a simple CWM based model XMI into an instance of a CWM package. Test application reproducing the error is attached.
Created attachment 12319 [details] Simple application that reproduces the error
Hi Jose, the application does not work because there is a number of associations in CWM metamodel that are marked as protected. Since the behavior for visibility other than public is not specified in MOF, this will not work and the metamodel can be considered as not wellformed. When I was trying to simulate your problem for the first time, I haven't realized that I changed my copy of the metamodel long time ago so that all associations are public. You can do the same thing to make it work - just replace all occurrences of "protected_vis" by "public_vis" in the XML file. If you have time, you may also try to automate this process for future users by extending our XMI diff file for CWM to do this change. After you do that, you will need to regenerate the JMI interfaces for CWM, since the interfaces for protected associations were not generated previously. Martin
Sorry for calling you Jose :). I've just realized that your name is Javier. Apologies...