-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: No tuplizer found for entity-mode [dom4j]
PostPosted: Fri Jul 14, 2006 11:10 am 
Regular
Regular

Joined: Fri Jan 20, 2006 9:38 am
Posts: 61
Location: Notts, UK
The title says it really. I have the following code:

Code:
   Session s = EJBUtil.getEntityMgr().getHibernateSession(com.fcl.greenfield.entity.Player.class).getSession(EntityMode.DOM4J);
   Query sq = s.createQuery("from Player");
   List l = sq.list();


And it's throwing the error on the list() line (76):

Code:
org.hibernate.HibernateException: No tuplizer found for entity-mode [dom4j]
        at org.hibernate.tuple.TuplizerLookup.getTuplizer(TuplizerLookup.java:221)
        at org.hibernate.tuple.EntityMetamodel.getTuplizer(EntityMetamodel.java:96)
        at org.hibernate.persister.entity.AbstractEntityPersister.getTuplizer(AbstractEntityPersister.java:2970)
        at org.hibernate.persister.entity.AbstractEntityPersister.instantiate(AbstractEntityPersister.java:3383)
        at org.hibernate.impl.SessionImpl.instantiate(SessionImpl.java:1268)
        at org.hibernate.impl.SessionImpl.instantiate(SessionImpl.java:1257)
        at org.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:1291)
        at org.hibernate.loader.Loader.getRow(Loader.java:1197)
        at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:569)
        at org.hibernate.loader.Loader.doQuery(Loader.java:689)
        at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
        at org.hibernate.loader.Loader.doList(Loader.java:2145)
        at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2029)
        at org.hibernate.loader.Loader.list(Loader.java:2024)
        at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:392)
        at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:333)
        at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
        at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1114)
        at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
        at com.fcl.servlet.DisplayQuery.doGet(DisplayQuery.java:76)


What's wrong?

Oh, I'm using EJB3 persistence annotated classes, not XML class definitions.

Do I have to add some special Hibernate annotation?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 17, 2006 3:34 am 
Regular
Regular

Joined: Fri Jan 20, 2006 9:38 am
Posts: 61
Location: Notts, UK
Any Hibernate developers have any comments?

Being able to retrieve objects as DOM documents seems like a fantastic feature. I just can't use it!


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 30, 2006 2:48 pm 
Newbie

Joined: Fri Jul 21, 2006 7:20 am
Posts: 15
I had the same issue, read this thread:

http://forum.hibernate.org/viewtopic.php?t=969080

It is just not possible to use EntityMode.DOM4J when you use Annotations (for that class). This is my conclusion after hours of searching.

[Update] It was a bug, I supplied a patch and it will work when this patch is applied.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 11, 2007 1:19 pm 
Regular
Regular

Joined: Fri Jan 20, 2006 9:38 am
Posts: 61
Location: Notts, UK
What was the patch?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.