Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] ClassCastException retrieving model
[Teneo] ClassCastException retrieving model [message #605054] Wed, 25 April 2007 16:38
Alain Picard is currently offline Alain PicardFriend
Messages: 258
Registered: July 2009
Senior Member
I am getting acquainted with Teneo and going through the library editor
example (after successfully doing the Tutorial1 part). I have been able
to start the wizard on an empty database and to create a library with a
book and author.

When I restart back from scratch, it attempts to load the content of the
db and fails with the following:
java.lang.ClassCastException: org.eclipse.example.library.BookCategory
cannot be cast to org.eclipse.example.library.BookCategory
at org.eclipse.example.library.impl.BookImpl.eSet( :309)
at ropertyHandler.set(
org.hibernate.tuple.entity.AbstractEntityTuplizer.setPropert yValues(
org.hibernate.persister.entity.AbstractEntityPersister.setPr opertyValues(
org.hibernate.loader.Loader.initializeEntitiesAndCollections (

This gives me the idea that I might be dealing with a classloader
problem, since my Hibernate jars are in a different bundle. I have it's
buddy policy set to registered and all of the library projects have
Eclipse-RegisterBuddy: Shared_JARs (the bundle containing Hibernate).

Does anyone has seen this before and have any clue how to fix it?

Previous Topic:Validation - constraintProvider - package
Next Topic:Unable to Get Libary.Editor/TENEO working
Goto Forum:

Current Time: Wed Nov 30 05:09:50 GMT 2022

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

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

Back to the top