MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
karotin
Post subject: Import XMI?  PostPosted: Sep 01, 2005 - 09:10 PM



Joined: Aug 30, 2005
Posts: 3

Using 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
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Sep 02, 2005 - 12:12 AM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

Karoly,
Can you check your log file <workspace dir>\.metadata\.log for exceptions that might help us figure out why this isn't importing correctly?

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
karotin
Post subject:   PostPosted: Sep 02, 2005 - 03:44 PM



Joined: Aug 30, 2005
Posts: 3

Here 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:1223

The 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.
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Sep 02, 2005 - 03:52 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

Would you able to send this file to us at support@myeclipseide.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?

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
papick.taboada
Post subject:   PostPosted: Sep 06, 2005 - 01:10 PM
Veteran Member
Veteran Member


Joined: Jun 24, 2004
Posts: 29

I tried to load the andromda example xmi files - did not work. not even a log entry...
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
hawk24
Post subject:   PostPosted: Sep 14, 2005 - 03:38 PM
Veteran Member
Veteran Member


Joined: Sep 14, 2005
Posts: 2

Hi

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
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Sep 14, 2005 - 06:49 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

Guys we are aware of the XMI import issue, keep in mind we only support XMI 1.0 format, but in addition to that, we are aware of a bug when importing certain XMI files and are hhoping to get it fixed by our next maintenence release. Sorry for the inconvenience.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
hawk24
Post subject:   PostPosted: Sep 15, 2005 - 05:05 PM
Veteran Member
Veteran Member


Joined: Sep 14, 2005
Posts: 2

So it is a yet-to-be-fully-tested feature of the ME4?
 
 View user's profile Send private message  
Reply with quote Back to top
lhale
Post subject:   PostPosted: Jan 02, 2006 - 10:43 PM
Veteran Member
Veteran Member


Joined: Dec 28, 2004
Posts: 52

I 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.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-kapil
Post subject:   PostPosted: Jan 03, 2006 - 02:44 PM
Moderator
Moderator


Joined: Dec 13, 2004
Posts: 340

lhale,
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.

_________________
Kapil
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
lhale
Post subject:   PostPosted: Jan 03, 2006 - 03:09 PM
Veteran Member
Veteran Member


Joined: Dec 28, 2004
Posts: 52

Actually, 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)
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits