Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » EMF Compare into plug-in eclipse(Problems when adding emf compare jars into classpath of a plug(in)
EMF Compare into plug-in eclipse [message #638276] Wed, 10 November 2010 11:52 Go to next message
Elizabeta  is currently offline Elizabeta
Messages: 3
Registered: November 2010
Junior Member
Dear All,

I have a problem when adding emf compare libraries into the runtime path for plug-in that I created myself.
More precisely, I have this error:

java.lang.NullPointerException
at org.eclipse.emf.compare.match.service.MatchService.getBestMa tchEngine(MatchService.java:449)
at org.eclipse.emf.compare.match.service.MatchService.doMatch(M atchService.java:154)
at change.comparison.CompareChange.compare(CompareChange.j ava:173)
at change.Set.processSelection(Set.java:48)
at change_plugin.views.SampleView.setgam(SampleView.java:573)
at change_plugin.views.SampleView$5.widgetSelected(SampleView.j ava:299)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:228)
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.ja va:3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2382)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:21 98)
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(Work bench.java:488)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.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(EclipseS tarter.java:382)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:45)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:599)
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)


When setting these libraries into a simple java project everything is OK.

Thaks in advance for your help.

Cordially,
Elizabeta

[Updated on: Wed, 10 November 2010 11:53]

Report message to a moderator

Re: EMF Compare into plug-in eclipse [message #639355 is a reply to message #638276] Tue, 16 November 2010 03:36 Go to previous messageGo to next message
Laurent Goubet is currently offline Laurent Goubet
Messages: 1625
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------050703040706050307030501
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Hi Elizabeta,

Please use the EMF newsgroup for questions regarding EMF Compare,
prefixing your post subjects with [Compare].

That said, I see no possible way for this NullPointerException to be
thrown, save for very convoluted means... As it would mean that Eclipse
is indeed running, yet the EMF Compare plugin wouldn't be started.

The only thing I can think of is that you've added the EMF Compare jar
in a plugin's class path ... and try to use it as is. This mean of
adding dependencies to a plugin is only reserved for non-plugin
dependencies, not plugin ones.

You have to use the standard "plugin" way of adding dependencies if you
wish to depend on compare : double click your plugin's MANIFEST.MF file
and, in the manifest editor, select the "dependencies" tab at the
bottom, then "Add" a dependency to "org.eclipse.emf.compare".

Laurent Goubet
Obeo

On 10/11/2010 17:52, Elizabeta wrote:
> Dear All,
>
> I have a problem when adding emf compare libraries into the runtime path
> for plug-in that I created myself. More precisely, I have this error:
>
> java.lang.NullPointerException
> at org.eclipse.emf.compare.match.service.MatchService.getBestMa
> tchEngine(MatchService.java:449)
> at org.eclipse.emf.compare.match.service.MatchService.doMatch(M
> atchService.java:154)
> at hchange.comparison.CompareChange.compare(CompareSechChange.j ava:173)
> at change.Set.processSelection(Setgam.java:48)
> at change_plugin.views.SampleView.setgam(SampleView.java:573)
> at change_plugin.views.SampleView$5.widgetSelected(SampleView.j ava:299)
> at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe
> ner.java:228)
> 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.ja va:3823)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3422)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2382)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:21 98)
> 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(Work
> bench.java:488)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at org.eclipse.ui.internal.ide.application.IDEApplication.start
> (IDEApplication.java:113)
> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips
> eAppHandle.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(EclipseS
> tarter.java:382)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS
> tarter.java:179)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
> ssorImpl.java:45)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
> thodAccessorImpl.java:37)
> at java.lang.reflect.Method.invoke(Method.java:599)
> 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)
>
>
> When setting these libraries into a simple java project everything is OK.
> Thaks in advance for your help.
>
> Cordially,
> Elizabeta


--------------050703040706050307030501
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=
--------------050703040706050307030501--
Re: EMF Compare into plug-in eclipse [message #639613 is a reply to message #639355] Wed, 17 November 2010 03:18 Go to previous message
Elizabeta  is currently offline Elizabeta
Messages: 3
Registered: November 2010
Junior Member
Thank you very much for the quick reply. The next time I will post the message correctly.

Yes, actually I use EMF Compare in a standalone java library which is part of my plug-in eclipse and then I add the jar in the plug-in classpath. I will try to follow your advice, and let you know as soon as possible if it is ok.

Cordially,
Elizabeta
Previous Topic:EEF and a transactional editing domain.
Next Topic:[TEXO] EMF databinding
Goto Forum:
  


Current Time: Thu Aug 28 05:29:47 EDT 2014

Powered by FUDForum. Page generated in 0.01738 seconds