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 37526

Summary: Problems importing a CWM based mode from XMI
Product: java Reporter: jfrank <jfrank>
Component: UnsupportedAssignee: issues@java <issues>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 3.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: DEFECT Exception Reporter:
Attachments: Simple application that reproduces the error

Description jfrank 2003-11-26 13:58:08 UTC
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.
Comment 1 jfrank 2003-11-26 14:19:04 UTC
Created attachment 12319 [details]
Simple application that reproduces the error
Comment 2 Martin Matula 2003-11-26 21:02:04 UTC
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
Comment 3 Martin Matula 2003-11-26 21:04:37 UTC
Sorry for calling you Jose :). I've just realized that your name is
Javier. Apologies...