|
Re: EMF Compare Start problem [message #622544 is a reply to message #622535] |
Mon, 03 May 2010 08:32 |
|
This is a multi-part message in MIME format.
--------------060606000902010201050701
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Hi Bogie,
The "System.out.println(ModelUtils.serialize(match)" line is only there
to give console feedback on what was matched ... and there are clearly
better ways to do so.
As for the actual error ; there are references from one (or both) of
your model(s) to an object that isn't contained in any model ... do you
create EObjects anywhere in your code (to reference them from other
objects, to add them to the model, ...)? I do not understand where the
"mailto:" part comes from in the error message you get, my best bet
would be that you have an EObject which "toString" returns
"mailto:<reference>", and this EObject would be the culprit :
"'mailto:....' is not contained in a resource".
If nothing of this rings a bell, could you attach your sample models and
the code you're running?
Laurent Goubet
Obeo
Bogie wrote:
> Hi,
>
> I'm new to EMF Compare and I tried to execute the example standalone
> application ( i run it in eclipse), by comparing 2 uml files (i register
> the additional packages). Unfortunately I get an exception:
>
> org.eclipse.emf.ecore.resource.Resource$IOWrappedException: The object
> mailto:'org.eclipse.uml2.uml.internal.impl.ClassImpl@117f31e (name:
> Class3, visibility: <unset>) (isLeaf: false, isAbstract: false)
> (isActive: false)' is not contained in a resource.
>
> When I run it in debug mode, I can see that the exception happens at:
> System.out.println(ModelUtils.serialize(match));
> When I compare the same uml files non programmatically, I get a normal
> result with a number of differences.
> I can't understand what's wrong for days. Can anyone help me please?
>
--------------060606000902010201050701
Content-Type: text/x-vcard; charset=utf-8;
name="laurent_goubet.vcf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="laurent_goubet.vcf"
YmVnaW46dmNhcmQNCmZuOkxhdXJlbnQgR291YmV0DQpuOkdvdWJldDtMYXVy ZW50DQpvcmc6
PGEgaHJlZj0iaHR0cDovL3d3dy5vYmVvLmZyIj5PYmVvPC9hPg0KZW1haWw7 aW50ZXJuZXQ6
bGF1cmVudC5nb3ViZXRAb2Jlby5mcg0KdXJsOmh0dHA6Ly93d3cub2Jlby5m cg0KdmVyc2lv
bjoyLjENCmVuZDp2Y2FyZA0KDQo=
--------------060606000902010201050701--
|
|
|
Powered by
FUDForum. Page generated in 0.03700 seconds