Book a Demo

Author Topic: Error importing from emx file  (Read 4936 times)

tmamdouh

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Error importing from emx file
« on: January 27, 2010, 12:53:01 am »
I have a UML project on IBM RSA which is linked to the source code on RSA also. When i import emx files to EA, the generated class diagrams are empty although the sequence diagrams are imported successfully.
In the import log file i got the error:
Error: Unknown Package Connector Source or Target

I tried to import the source code first to EA then imported the models but this did not work either.

Any help will be highly appreciated.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Error importing from emx file
« Reply #1 on: January 27, 2010, 01:18:10 am »
I can image that you would get such an error if there is a relationship that points towards an element which is not available (yet) in EA.
Try importing the files one by one beginning with the lowest one in the dependency hierarchy (the one that has no relations with other packages).
That procedure should give you a clue where it is going wrong.

Geert

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Error importing from emx file
« Reply #2 on: January 27, 2010, 10:42:23 am »
Try importing the set of files completely twice (and, if necessary, three times).

If Geert is right (which, I suspect, he is) then the normal method of solving tis type of interdependency issue is multiple loading.

The first time through bits are missing, but some bits get in.  The next time, the "holes" are usually filled in...

We've noticed that sometimes (in the past) a third load is necessary to get some of the more difficult interdependencies.

HTH,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

tmamdouh

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Error importing from emx file
« Reply #3 on: January 27, 2010, 07:49:18 pm »
Geert, thank you for the very fast response,
I tried importing my emx files one by one but it did not work, also this will be impossible and very time consuming because my project size is huge and i have hundreds of emx files.

Paolo, I created a new project, imported all the code again 3 times, then imported my emx files 3 times as well. I still get the same error. I noticed also that some classes in my interaction diagrams are not imported correctly. They appear to have no name  ::)

here is a sample of the log:
Add Classifier: rXXXXn
Add Classifier:
Add Classifier: oXXXXin.jsp
Resolving Classifiers
Resolving Owners
Resolving Attribute Types
Resolving Parameter Types
Error: Unknown Package Connector Source or Target

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Error importing from emx file
« Reply #4 on: January 27, 2010, 08:00:08 pm »
Could it be that you have "ghost" relationships in your source model?
With this a mean a relationship that only has one end defined (and not the other). Maybe because one of the ends got deleted, but the relationship was not?
That would explain EA's behavior.

Geert

tmamdouh

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Error importing from emx file
« Reply #5 on: January 29, 2010, 12:37:55 am »
I created two new model files in RSA, In the first model I added some classes from my code to make sure that there are no ghost relations, the relationships were created automatically by RSA. While for the other model i added some classes and relations from the palette , then imported both models to EA. The first model was empty in EA while the second worked just fine.
I explored the emx file of the first model and found that elements are saved as:
<element xmi:type="uml:Class" href="mmi:///#jsrctype%5Ename=ClassName%5Bjcu%5Ename=ClassName.java%5Bjpack%5Ename=com.domain%5Bjsrcroot%5Esrcfolder=JavaSource%5Bproject%5Eid=ProjectName%5D%5D%5D%5D$uml.Class"/>

Is this the problem, that EA does not find a project with this name or something? This is driving me crazy :o