- This topic has 10 replies, 6 voices, and was last updated 18 years, 10 months ago by lhale.
-
AuthorPosts
-
karotinMemberUsing ME4 and trying to see how the XMI import works. So, I’ve got myself a UML repo, select “Import XMI…”, select an XMI (XML) file I exported from Rose, click Ok and nothing happens. Can’t seem to find any info on what if anything is missing in my setup.
Is this feature ready and enabled in 4.0?
Regards,
Karoly
Riyad KallaMemberKaroly,
Can you check your log file <workspace dir>\.metadata\.log for exceptions that might help us figure out why this isn’t importing correctly?
karotinMemberHere is part of the error stack that might be relevant here:
!ENTRY com.genuitec.eclipse.wizards 1 0 2005-08-30 14:52:55.182
!MESSAGE Installed snippet library: d:\_workapps\myeclipse40\eclipse\plugins\com.genuitec.eclipse.wizards_3.9.310\snippets\struts_tiles_snippets.xml!ENTRY com.genuitec.eclipse.core 1 0 2005-08-30 14:54:35.870
!MESSAGE Unable to locate .myeclipse.properties file!ENTRY org.eclipse.ui 4 4 2005-08-30 15:08:43.262
!MESSAGE Unable to find Action Set: com.genuitec.myeclipse.action.umltools!ENTRY org.eclipse.jdt.ui 4 0 2005-08-30 15:21:32.12
!MESSAGE Error in JDT Core during reconcile
!STACK 1
Java Model Exception: Java Model Status [test does not exist]
at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException(JavaElement.java:468)
at org.eclipse.jdt.internal.core.JavaModelManager.getPerProjectInfoCheckExistence(JavaModelManager.java:1223The Java Model Exception trace continues with more detail, but I think the relevant part is the one about the myeclipse.properties file. Maybe there was something wrong with the installation? I don’t recall anything going wrong, plus I have been able to play with the Hibernate features successfully, so to me the installation looks good.
Riyad KallaMemberWould you able to send this file to us at support@genuitec.com ATTN Riyad so we can attach it to a bug and use it to figure out what is going on? If not this file, can you create a smaller file that exhibits the same behavior?
P.G.TaboadaMemberI tried to load the andromda example xmi files – did not work. not even a log entry…
KarthikeyanMemberHi
I have the same problem. I imported XMI from Enterprise Architect. Nothing seems to happen. I found out from the log that ClassCastException is thrown…..the exact exception trace is
!ENTRY com.genuitec.eclipse.uml 4 0 2005-09-14 15:03:19.374
!MESSAGE Parsing error while trying to parse inputsource file:/C:/Shared Folder/SecureLogin.xmi
!STACK 0
java.lang.ClassCastException
at ru.novosoft.uml.behavior.collaborations.MMessageImpl.reflectiveSetValue(MMessageImpl.java:988)
at ru.novosoft.uml.xmi.XMIReader.performLinking(XMIReader.java:127)
at org.argouml.model.uml.NsumlXmiReader.parseSourceStream(NsumlXmiReader.java:109)
at org.argouml.model.uml.NsumlXmiReader.parseToModel(NsumlXmiReader.java:208)
at org.argouml.model.uml.XmiReader.parseToModel(XmiReader.java:67)
at org.argouml.persistence.XMIParser.readModels(XMIParser.java:120)
at com.genuitec.eclipse.uml.action.UMLImportXMI.basicRun(UMLImportXMI.java:86)
at com.genuitec.eclipse.uml.action.UMLImportXMI.access$0(UMLImportXMI.java:81)
at com.genuitec.eclipse.uml.action.UMLImportXMI$2.run(UMLImportXMI.java:67)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)!ENTRY com.genuitec.eclipse.uml 4 0 2005-09-14 15:03:27.466
!MESSAGE Parsing error while trying to parse inputsource file:/C:/Shared Folder/SecureLogin.xmi
!STACK 0
java.lang.ClassCastException
at ru.novosoft.uml.behavior.collaborations.MMessageImpl.reflectiveSetValue(MMessageImpl.java:988)
at ru.novosoft.uml.xmi.XMIReader.performLinking(XMIReader.java:127)
at org.argouml.model.uml.NsumlXmiReader.parseSourceStream(NsumlXmiReader.java:109)
at org.argouml.model.uml.NsumlXmiReader.parseToModel(NsumlXmiReader.java:208)
at org.argouml.model.uml.XmiReader.parseToModel(XmiReader.java:67)
at org.argouml.persistence.XMIParser.readModels(XMIParser.java:120)
at com.genuitec.eclipse.uml.action.UMLImportXMI.basicRun(UMLImportXMI.java:86)
at com.genuitec.eclipse.uml.action.UMLImportXMI.access$0(UMLImportXMI.java:81)
at com.genuitec.eclipse.uml.action.UMLImportXMI$2.run(UMLImportXMI.java:67)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)!ENTRY com.genuitec.eclipse.uml 4 0 2005-09-14 15:04:13.11
!MESSAGE Parsing error while trying to parse inputsource file:/C:/Shared Folder/SecureLogin.xmi
!STACK 0
java.lang.ClassCastException
at ru.novosoft.uml.behavior.collaborations.MMessageImpl.reflectiveSetValue(MMessageImpl.java:988)
at ru.novosoft.uml.xmi.XMIReader.performLinking(XMIReader.java:127)
at org.argouml.model.uml.NsumlXmiReader.parseSourceStream(NsumlXmiReader.java:109)
at org.argouml.model.uml.NsumlXmiReader.parseToModel(NsumlXmiReader.java:208)
at org.argouml.model.uml.XmiReader.parseToModel(XmiReader.java:67)
at org.argouml.persistence.XMIParser.readModels(XMIParser.java:120)
at com.genuitec.eclipse.uml.action.UMLImportXMI.basicRun(UMLImportXMI.java:86)
at com.genuitec.eclipse.uml.action.UMLImportXMI.access$0(UMLImportXMI.java:81)
at com.genuitec.eclipse.uml.action.UMLImportXMI$2.run(UMLImportXMI.java:67)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)Can you please help me in importing the XMI file from the other tool.
Thanks
Karthik
Riyad KallaMemberThis message has not been recovered.
KarthikeyanMemberSo it is a yet-to-be-fully-tested feature of the ME4?
lhaleParticipantI too have the same exact Enterprise Architect import problem – ME4.1 M2 is exxceptioning with a parsing error. I specifically instructed EA to produce an UML 1.3 XMI 1.0 export file. What is happening is that EA is NOT creating the appropriate class descriptions for my class diagram (it does when choosing UML 1.3 XMI 1.1), so perhaps all or part of the problem with ME importing an EA export file is the lack of enough class description information.
So, it appears that ME should get off the dime and support > UMI 1.0, which probably doesn’t have enough descriptive capabilities in the first place, and in doing so it will work with many other UML modeling tools.
Kapil KapreMemberlhale,
Thank you for the feedback. I will send it along to the dev team. Please note that supporting higher XMI versions does not guarantee UML tool interoperability. Frequently commercial tool companies add custom metadata to the XMI (usually to overcome restrictions/deficiancies) rendering it unusable in other tools.
lhaleParticipantActually, the classes did get imported into EA; it just was hard to find. Of course, it didn’t work 100%, so here’s a list for the dev team :
a) ALL diagrams (use cases, clases, package and object diagrams) got imported into EA under a default package folder
b) The is-a generalization between my classes were intact (a good thing)
c) In EA, You have to selectively drag & drop the classes you want into a new class diagram (nothing ME can do about that, but it practically means that you have to recreate your original diagrams and not miss any abstractions)
d) The method paramters (and their types) were dropped (a bad thing)The EA importing choice I chose was “Import package from XMI…” .
One parting question :
How do you encapsulated your classes in a class diagram into a package named something other than default ? (Please respond in whatever forum thread is appropriate – Thanks) -
AuthorPosts