Skip to main content



      Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMF Compare] ClassCastException GenericMatchEngine
[EMF Compare] ClassCastException GenericMatchEngine [message #113718] Mon, 03 March 2008 09:04 Go to next message
Eclipse UserFriend
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 11:07 Go to previous message
Eclipse UserFriend
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 11:07 Go to previous message
Eclipse UserFriend
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: Sat Jul 12 09:10:30 EDT 2025

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

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

Back to the top