Re: [mdr-users] MDR et CWM models

Martin Matula <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.mdr.user
Message-ID <[email protected]>
Hi Celine,
the problem is that the CWM metamodel marks some of its elements as 
protected or private - the meaning of these is not specified in MOF 
specification. MDR does not support such visibilities. You can fix the 
problem by replacing all protected_vis and private_vis in the CWM 
metamodel by public_vis and loading the CWM metamodel again into the MDR 
and regenerate the JMI interfaces for it.
Regards,
Martin

Céline Le Jeune wrote:

>Hi again!
>
>I had no answer for my last email so I try to explain it again:
>
>I have built an xmi file discribing my CWM record package
>(the same I can obtain with XMIWriter when I export my record refPackage);
>
>But when I read it into the record model instance (with XMIReader) the
>import works to a certain point (I can see 1 of my RecordDefs and its fields
>but not the others, neither the datatypes) when the following exception
>happens :
>
>javax.jmi.reflect.InvalidCallException
>        at
>org.netbeans.mdr.handlers.PackageProxyHandler.refAssociation(PackageProxyHan
>dler.java:206)
>        at
>org.netbeans.lib.jmi.xmi.XmiElement$ReferenceHandler.setReference(XmiElement
>.java:1560)
>        at
>org.netbeans.lib.jmi.xmi.XmiElement$ReferenceHandler.<init>(XmiElement.java:
>1530)
>        at
>org.netbeans.lib.jmi.xmi.XmiElement$Instance.createInstance(XmiElement.java:
>578)
>        at
>org.netbeans.lib.jmi.xmi.XmiElement$Instance.endElement(XmiElement.java:605)
>        at
>org.netbeans.lib.jmi.xmi.XmiSAXReader.endElement(XmiSAXReader.java:240)
>        at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1536)
>        at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
>        at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
>        at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
>        at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
>        at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
>        at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
>        at
>org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
>        at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
>        at org.netbeans.lib.jmi.xmi.XmiSAXReader.read(XmiSAXReader.java:118)
>        at org.netbeans.lib.jmi.xmi.XmiSAXReader.read(XmiSAXReader.java:90)
>        at org.netbeans.lib.jmi.xmi.SAXReader.read(SAXReader.java:56)
>        at Carnet.Satin.main(Satin.java:52)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
>)
>        at
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
>.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:324)
>        at
>org.openide.execution.ThreadExecutor.executeClass(ThreadExecutor.java:116)
>        at
>org.openide.execution.ThreadExecutor$TERunnable.run(ThreadExecutor.java:183)
>        at
>org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:118)
>javax.jmi.xmi.MalformedXMIException: javax.jmi.reflect.InvalidCallException
>        at org.netbeans.lib.jmi.xmi.SAXReader.read(SAXReader.java:62)
>        at Carnet.Satin.main(Satin.java:52)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
>)
>        at
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
>.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:324)
>        at
>org.openide.execution.ThreadExecutor.executeClass(ThreadExecutor.java:116)
>        at
>org.openide.execution.ThreadExecutor$TERunnable.run(ThreadExecutor.java:183)
>        at
>org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:118)
>
>Please help me again...
>
>Thanks again
>
>Céline
>
>
>This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.
>
>  
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.