Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Classcast exception when Second Level Caching enabled
Classcast exception when Second Level Caching enabled [message #619116] Fri, 30 May 2008 23:16
Sundeep Prakash is currently offline Sundeep PrakashFriend
Messages: 14
Registered: July 2009
Junior Member
Hello Martin,
Is second-level caching not supported by Teneo, or am I doing something
wrong? I'm using Teneo 0.7.5, and when I add the property
teneo.mapping.default_cache_strategy=READ_WRITE, my otherwise correctly
working program (doing a very simple query) immediately gets a
ClassCastException. What am I doing wrong?

Thanks in advance,

Sundeep

Relevant Log:

69718 [main] DEBUG
org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler -
Set value org.hibernate.collection.PersistentList for target
com.tibco.matrix.models.administrationmodel.impl.AdminCluste rImpl field
serviceConfigurations
69734 [main] DEBUG org.hibernate.engine.TwoPhaseLoad - adding entity to
second-level cache: [AdminCluster#1]
...
Caused by: java.lang.ClassCastException:
com.tibco.matrix.models.administrationmodel.impl.EnterpriseI mpl
at org.hibernate.type.AbstractType.disassemble(AbstractType.jav a:54)
at org.hibernate.type.TypeFactory.disassemble(TypeFactory.java: 451)
at org.hibernate.cache.entry.CacheEntry.<init>(CacheEntry.java:46)
at
org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseL oad.java:141)
at
org.hibernate.loader.Loader.initializeEntitiesAndCollections (Loader.java:854)
at org.hibernate.loader.Loader.doQuery(Loader.java:729)
at
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyColle ctions(Loader.java:236)
at org.hibernate.loader.Loader.loadEntity(Loader.java:1860)
at
org.hibernate.loader.entity.AbstractEntityLoader.load(Abstra ctEntityLoader.java:48)
at
org.hibernate.loader.entity.AbstractEntityLoader.load(Abstra ctEntityLoader.java:42)
at
org.hibernate.persister.entity.AbstractEntityPersister.load( AbstractEntityPersister.java:3044)
at
org.hibernate.event.def.DefaultLoadEventListener.loadFromDat asource(DefaultLoadEventListener.java:395)
at
org.hibernate.event.def.DefaultLoadEventListener.doLoad(Defa ultLoadEventListener.java:375)
at
org.hibernate.event.def.DefaultLoadEventListener.load(Defaul tLoadEventListener.java:139)
at
org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad (DefaultLoadEventListener.java:179)
at
org.hibernate.event.def.DefaultLoadEventListener.onLoad(Defa ultLoadEventListener.java:103)
at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:878 )
at org.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java :846)
at org.hibernate.type.EntityType.resolveIdentifier(EntityType.j ava:557)
at org.hibernate.type.EntityType.resolve(EntityType.java:379)
at
org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseL oad.java:116)
at
org.hibernate.loader.Loader.initializeEntitiesAndCollections (Loader.java:854)
at org.hibernate.loader.Loader.doQuery(Loader.java:729)
at
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyColle ctions(Loader.java:236)
at org.hibernate.loader.Loader.doList(Loader.java:2220)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java :2104)
at org.hibernate.loader.Loader.list(Loader.java:2099)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:3 78)
at
org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslat orImpl.java:338)
at
org.hibernate.engine.query.HQLQueryPlan.performList(HQLQuery Plan.java:172)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
Previous Topic:[Teneo] ClassCastException from hibernate trying to persist a new EMap entry with containement=true.
Next Topic:Are CDO Transactions transparent?
Goto Forum:
  


Current Time: Mon Jun 01 21:03:17 GMT 2020

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

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

Back to the top