Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [emft-dev] NPE when trying to do merge ignoring xmi ids

Hi Marcus,

As Ed mentionned, using the newsgroup is the prefered way to ask about problems in a component. For the issue itself, it indeed seems like a bug :/ Could you fill in a bugzilla about this, preferably with the models you compare or a minimal example since we've never faced this with our tests. Please also mention the exact version of the EMF Compare build you're using since a stack trace doesn't really help on a product that's growing steadily.

Laurent Goubet
Obeo

Ed Merks a écrit :
Marcus,

Please use the EMFT newsgroup for asking questions about compare. Either of the following two approaches work:

    news://new.eclipse.org/eclipse.technology.emft
    http://www.eclipse.org/newsportal/thread.php?group=eclipse.technology.emft

Please also prefix the posting with [Compare] since it's a newsgroup shared by a growing number of components.

(This looks like a bug to me...)


Marcus Engelhardt wrote:
Hi guys,

I try to merge two models with the default option values except the MatchOptions.OPTION_IGNORE_XMI_ID option set to true.

I always get the same NPE (see stacktrace below) regardless of whether I use the emf compare facility (ContentMergeViewer) or the pragrammatic way.

Stacktrace is:

java.lang.NullPointerException
	at org.eclipse.emf.compare.diff.merge.api.EMFCompareEObjectCopier.copyReferences(EMFCompareEObjectCopier.java:74)
	at org.eclipse.emf.compare.diff.merge.api.DefaultMerger.copy(DefaultMerger.java:132)
	at org.eclipse.emf.compare.diff.merge.internal.impl.ModelElementChangeLeftTargetMerger.undoInTarget(ModelElementChangeLeftTargetMerger.java:65)
	at org.eclipse.emf.compare.diff.merge.service.MergeService.doMerge(MergeService.java:172)
	at org.eclipse.emf.compare.diff.merge.service.MergeService.merge(MergeService.java:136)
	at org.eclipse.emf.compare.diff.merge.internal.impl.DiffGroupMerger.undoInTarget(DiffGroupMerger.java:48)
	at org.eclipse.emf.compare.diff.merge.service.MergeService.doMerge(MergeService.java:172)
	at org.eclipse.emf.compare.diff.merge.service.MergeService.merge(MergeService.java:136)
	at org.eclipse.emf.compare.diff.merge.internal.impl.DiffGroupMerger.undoInTarget(DiffGroupMerger.java:48)
	at org.eclipse.emf.compare.diff.merge.service.MergeService.doMerge(MergeService.java:172)
	at org.eclipse.emf.compare.diff.merge.service.MergeService.merge(MergeService.java:136)
	at org.eclipse.emf.compare.ui.ModelCompareInput.doCopy(ModelCompareInput.java:362)
	at org.eclipse.emf.compare.ui.ModelCompareInput.copy(ModelCompareInput.java:113)
	at org.eclipse.emf.compare.ui.viewer.content.ModelContentMergeViewer.copy(ModelContentMergeViewer.java:349)
	at org.eclipse.compare.contentmergeviewer.ContentMergeViewer$7.run(ContentMergeViewer.java:812)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
	at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:452)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1212)

Does anyone know what I am doing wrong or a solution for this?

Many thanks in advance,
Marcus
__________________________________________________________________
Deutschlands größte Online-Videothek schenkt Ihnen 12.000 Videos!*
http://entertainment.web.de/de/entertainment/maxdome/index.html

_______________________________________________
emft-dev mailing list
emft-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/emft-dev
------------------------------------------------------------------------

_______________________________________________
emft-dev mailing list
emft-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/emft-dev

begin:vcard
fn:Laurent Goubet
n:Goubet;Laurent
org:<a href="http://www.obeo.fr/";>Obeo</a>
email;internet:laurent.goubet@xxxxxxx
url:http://www.obeo.fr
version:2.1
end:vcard


Back to the top