[mdr-users] XMI reader and InvalidCallException

Céline Le Jeune <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.mdr.user
Message-ID <[email protected]>
Hi!

I have the following exception occured when I read an XMI file: I have build
a record package with some definition. I save the package in the XMI format
with XMIWriter.
But when I read it back into the package (with XMIReader) the import stop
one point giving the following :

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)

Can somebody help me?

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.