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: 235
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(BookImpl.java :309)
at
org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler.set(EAttributePropertyHandler.java:191)
at
org.hibernate.tuple.entity.AbstractEntityTuplizer.setPropert yValues(AbstractEntityTuplizer.java:337)
at
org.hibernate.persister.entity.AbstractEntityPersister.setPr opertyValues(AbstractEntityPersister.java:3564)
at
org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseL oad.java:129)
at
org.hibernate.loader.Loader.initializeEntitiesAndCollections (Loader.java:854)
.....etc

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?

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


Current Time: Tue Jan 19 22:41:46 GMT 2021

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

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

Back to the top