[Teneo] ClassCastException retrieving model [message #605054] |
Wed, 25 April 2007 16:38 |
Alain Picard Messages: 266 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
|
|
|
Powered by
FUDForum. Page generated in 0.02975 seconds