XMI format error loading project on argouml
Posted
by Tom Brito
on Stack Overflow
See other posts from Stack Overflow
or by Tom Brito
Published on 2010-04-01T14:30:13Z
Indexed on
2010/04/01
14:33 UTC
Read the original article
Hit count: 645
java
Have anyone experienced this (org.argouml.model.)XmiException opening a project lastest version of argouml?
XMI format error : org.argouml.model.XmiException: XMI parsing error at line: 18: Cannot set a multi-value to a non-multivalued reference:namespace
If this file was produced by a tool other than ArgoUML, please
check to make sure that the file is in a supported format, including
both UML and XMI versions.
If you believe that the file is legal UML/XMI and should have loaded
or if it was produced by any version of ArgoUML, please report
the problem as a bug by going to http://argouml.tigris.org/project_bugs.html.
System Info:
ArgoUML version : 0.30
Java Version : 1.6.0_15
Java Vendor : Sun Microsystems Inc.
Java Vendor URL : http://java.sun.com/
Java Home Directory : /usr/lib/jvm/java-6-sun-1.6.0.15/jre
Java Classpath : /usr/lib/jvm/java-6-sun-1.6.0.15/jre/lib/deploy.jar
Operation System : Linux, Version 2.6.31-20-generic
Architecture : i386
User Name : wellington
User Home Directory : /home/wellington
Current Directory : /home/wellington
JVM Total Memory : 34271232
JVM Free Memory : 10512336
Error occurred at : Thu Apr 01 11:21:10 BRT 2010
Cause : org.argouml.model.XmiException: XMI parsing error at line: 18: Cannot set a multi-value to a non-multivalued reference:namespace
at org.argouml.model.mdr.XmiReaderImpl.parse(XmiReaderImpl.java:307)
at org.argouml.persistence.ModelMemberFilePersister.readModels(ModelMemberFilePersister.java:273)
at org.argouml.persistence.XmiFilePersister.doLoad(XmiFilePersister.java:261)
at org.argouml.ui.ProjectBrowser.loadProject(ProjectBrowser.java:1597)
at org.argouml.ui.LoadSwingWorker.construct(LoadSwingWorker.java:89)
at org.argouml.ui.SwingWorker.doConstruct(SwingWorker.java:153)
at org.argouml.ui.SwingWorker$2.run(SwingWorker.java:281)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.netbeans.lib.jmi.util.DebugException: Cannot set a multi-value to a non-multivalued reference:namespace
at org.netbeans.lib.jmi.xmi.XmiSAXReader.startElement(XmiSAXReader.java:232)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1359)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2747)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
at org.netbeans.lib.jmi.xmi.XmiSAXReader.read(XmiSAXReader.java:136)
at org.netbeans.lib.jmi.xmi.XmiSAXReader.read(XmiSAXReader.java:98)
at org.netbeans.lib.jmi.xmi.SAXReader.read(SAXReader.java:56)
at org.argouml.model.mdr.XmiReaderImpl.parse(XmiReaderImpl.java:233)
... 7 more
Caused by: org.netbeans.lib.jmi.util.DebugException: Cannot set a multi-value to a non-multivalued reference:namespace
at org.netbeans.lib.jmi.xmi.XmiElement$Instance.setReferenceValues(XmiElement.java:699)
at org.netbeans.lib.jmi.xmi.XmiElement$Instance.resolveAttributeValue(XmiElement.java:772)
at org.netbeans.lib.jmi.xmi.XmiElement$Instance. (XmiElement.java:496)
at org.netbeans.lib.jmi.xmi.XmiContext.resolveInstanceOrReference(XmiContext.java:688)
at org.netbeans.lib.jmi.xmi.XmiElement$ObjectValues.startSubElement(XmiElement.java:1460)
at org.netbeans.lib.jmi.xmi.XmiSAXReader.startElement(XmiSAXReader.java:219)
... 22 more
-------
Full exception : org.argouml.persistence.XmiFormatException: org.argouml.model.XmiException: XMI parsing error at line: 18: Cannot set a multi-value to a non-multivalued reference:namespace
at org.argouml.persistence.ModelMemberFilePersister.readModels(ModelMemberFilePersister.java:298)
at org.argouml.persistence.XmiFilePersister.doLoad(XmiFilePersister.java:261)
at org.argouml.ui.ProjectBrowser.loadProject(ProjectBrowser.java:1597)
at org.argouml.ui.LoadSwingWorker.construct(LoadSwingWorker.java:89)
at org.argouml.ui.SwingWorker.doConstruct(SwingWorker.java:153)
at org.argouml.ui.SwingWorker$2.run(SwingWorker.java:281)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.argouml.model.XmiException: XMI parsing error at line: 18: Cannot set a multi-value to a non-multivalued reference:namespace
at org.argouml.model.mdr.XmiReaderImpl.parse(XmiReaderImpl.java:307)
at org.argouml.persistence.ModelMemberFilePersister.readModels(ModelMemberFilePersister.java:273)
... 6 more
Caused by: org.netbeans.lib.jmi.util.DebugException: Cannot set a multi-value to a non-multivalued reference:namespace
at org.netbeans.lib.jmi.xmi.XmiSAXReader.startElement(XmiSAXReader.java:232)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1359)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2747)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
at org.netbeans.lib.jmi.xmi.XmiSAXReader.read(XmiSAXReader.java:136)
at org.netbeans.lib.jmi.xmi.XmiSAXReader.read(XmiSAXReader.java:98)
at org.netbeans.lib.jmi.xmi.SAXReader.read(SAXReader.java:56)
at org.argouml.model.mdr.XmiReaderImpl.parse(XmiReaderImpl.java:233)
... 7 more
Caused by: org.netbeans.lib.jmi.util.DebugException: Cannot set a multi-value to a non-multivalued reference:namespace
at org.netbeans.lib.jmi.xmi.XmiElement$Instance.setReferenceValues(XmiElement.java:699)
at org.netbeans.lib.jmi.xmi.XmiElement$Instance.resolveAttributeValue(XmiElement.java:772)
at org.netbeans.lib.jmi.xmi.XmiElement$Instance. (XmiElement.java:496)
at org.netbeans.lib.jmi.xmi.XmiContext.resolveInstanceOrReference(XmiContext.java:688)
at org.netbeans.lib.jmi.xmi.XmiElement$ObjectValues.startSubElement(XmiElement.java:1460)
at org.netbeans.lib.jmi.xmi.XmiSAXReader.startElement(XmiSAXReader.java:219)
... 22 more
the original project was created on argo v0.28.1, and (as I remember) have only use case diagrams.
and yes, I'll report at the specified argo website either.. :)
But anyone know anything about this exception?
© Stack Overflow or respective owner