Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMF Compare] ClassCastException GenericMatchEngine
[EMF Compare] ClassCastException GenericMatchEngine [message #113718] Mon, 03 March 2008 14:04 Go to next message
Cyril Faucher is currently offline Cyril FaucherFriend
Messages: 63
Registered: July 2009
Member
Hi,

When I run a code using EMF Compare out of Eclipse, I have:
org.eclipse.emf.compare.match.engine.GenericMatchEngine cannot be cast
to org.eclipse.emf.compare.match.api.IMatchEngine

It seems the problem comes from to the class:
org.eclipse.emf.compare.match.service.EngineDescriptor
at the line
engine = (IMatchEngine)element.createExecutableExtension("engineClass ")

Any idea?

Best regards,
Cyril.

--
Cyril Faucher
IRISA-INRIA - Rennes, France
[Breathe life into your metamodels www.kermeta.org]
Re: [EMF Compare] ClassCastException GenericMatchEngine [message #113744 is a reply to message #113718] Mon, 03 March 2008 16:07 Go to previous message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1893
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------040908070602040903020402
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Cyril,

Strikes me as odd to say the least, as GenericMatchEngine implements
IMatchEngine. The only trigger of such exception I can think of is the
ClassLoader :(.

Could you give some more information as how you're using EMF Compare? is
it from a jar or an RCP application? Are you using it in an OSGI
environment?

The line of code you're pointing shouldn't be called outside of eclipse,
which is the reason I'm wondering what your use case is.

Laurent Goubet
Obeo

Cyril Faucher a
Re: [EMF Compare] ClassCastException GenericMatchEngine [message #615598 is a reply to message #113718] Mon, 03 March 2008 16:07 Go to previous message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1893
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------040908070602040903020402
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Cyril,

Strikes me as odd to say the least, as GenericMatchEngine implements
IMatchEngine. The only trigger of such exception I can think of is the
ClassLoader :(.

Could you give some more information as how you're using EMF Compare? is
it from a jar or an RCP application? Are you using it in an OSGI
environment?

The line of code you're pointing shouldn't be called outside of eclipse,
which is the reason I'm wondering what your use case is.

Laurent Goubet
Obeo

Cyril Faucher a
Previous Topic:[EMF Compare] ClassCastException GenericMatchEngine
Next Topic:[TENEO] [JDO] library tutorial - connection getting closed
Goto Forum:
  


Current Time: Tue Jun 22 12:16:26 GMT 2021

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

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

Back to the top