Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMF Compare] error in standalone version
[EMF Compare] error in standalone version [message #507845] Thu, 14 January 2010 15:42
Eclipse UserFriend
Originally posted by: mugbi83.googlemail.com

Hi

So first at all, I hope my question was not asked a hundred times before
otherwise sorry for that.

We were using EMF Compare in a standalone version with ecore models.
Everything worked perfect. Now we would like to use MagicDraw exports too.
Loading the models with all factories works fine but problems occur when
using EMF compare with merging( Differencing does not seem to cause
problems).
Merging always ends up with this error message:
--------------------
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at
org.eclipse.emf.compare.diff.internal.merge.impl.ModelElemen tChangeLeftTargetMerger.applyInOrigin(ModelElementChangeLeft TargetMerger.java:48)
at
org.eclipse.emf.compare.diff.merge.service.MergeService.doMe rge(MergeService.java:168)
at
org.eclipse.emf.compare.diff.merge.service.MergeService.merg e(MergeService.java:130)
at
org.eclipse.emf.compare.diff.internal.merge.impl.DiffGroupMe rger.applyInOrigin(DiffGroupMerger.java:35)
at
org.eclipse.emf.compare.diff.merge.service.MergeService.doMe rge(MergeService.java:168)
at
org.eclipse.emf.compare.diff.merge.service.MergeService.merg e(MergeService.java:130)
at
org.eclipse.emf.compare.diff.internal.merge.impl.DiffGroupMe rger.applyInOrigin(DiffGroupMerger.java:35)
at
org.eclipse.emf.compare.diff.merge.service.MergeService.doMe rge(MergeService.java:168)

..... and so on...
--------------------
So since I though that it could be caused by missing factories etc..
Those functions are used to register packages etc.:

--------------------
protected static void registerResourceFactories() {
Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap( ).put(
UMLResource.FILE_EXTENSION, new UMLResourceFactoryImpl());
Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap( ).put(
"ecore", new EcoreResourceFactoryImpl());
Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap( ).put(
"ecore2xml", new EcoreResourceFactoryImpl());
}
--------------------
protected static void registerPathmaps(URI uri) {
URIConverter.URI_MAP.put(URI.createURI(UMLResource.LIBRARIES _PATHMAP),
uri.appendSegment("libraries").appendSegment(""));
URIConverter.URI_MAP.put(URI.createURI(UMLResource.METAMODEL S_PATHMAP),
uri.appendSegment("metamodels").appendSegment(""));
URIConverter.URI_MAP.put(URI.createURI(UMLResource.PROFILES_ PATHMAP),
uri.appendSegment("profiles").appendSegment(""));
final String UML2_200_NS_URI = "http://www.eclipse.org/uml2/2.0.0/UML";
EPackage.Registry.INSTANCE .put(UML2_200_NS_URI,
EPackage.Registry.INSTANCE
.get(UMLPackage.eINSTANCE.getNsURI()));
}
--------------------
When merging the files with the eclipse plugin everything seems to work
fine.
So somehow we ran out of ideas... Do you have some?
Thank you very much and sorry for the long post.

Best regards
Philipp
Previous Topic:[EMF Compare] array as eattribute value
Next Topic:[EMF Compare] array as eattribute value
Goto Forum:
  


Current Time: Sat Jun 19 07:27:16 GMT 2021

Powered by FUDForum. Page generated in 0.22637 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top