-->
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.  [ 3 posts ] 
Author Message
 Post subject: Unable to resolve property: _com
PostPosted: Tue Jun 30, 2009 10:20 am 
Newbie

Joined: Mon Jun 29, 2009 1:45 pm
Posts: 3
Hello,

i'm getting this exception when i try to merge a persisted object with my session:

Code:
org.hibernate.HibernateException: Unable to resolve property: _com
   at org.hibernate.tuple.entity.EntityMetamodel.getPropertyIndex(EntityMetamodel.java:487)
   at org.hibernate.tuple.entity.AbstractEntityTuplizer.getPropertyValue(AbstractEntityTuplizer.java:302)
   at org.hibernate.persister.entity.AbstractEntityPersister.getPropertyValue(AbstractEntityPersister.java:3600)
   at org.hibernate.event.def.DefaultMergeEventListener.mergeTransientEntity(DefaultMergeEventListener.java:322)
   at org.hibernate.event.def.DefaultMergeEventListener.entityIsTransient(DefaultMergeEventListener.java:282)
   at org.hibernate.event.def.DefaultMergeEventListener.entityIsDetached(DefaultMergeEventListener.java:397)
   at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:234)
   at org.hibernate.impl.SessionImpl.fireMerge(SessionImpl.java:715)
   at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:697)
   at org.hibernate.engine.CascadingAction$6.cascade(CascadingAction.java:268)
   at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:292)
   at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:240)
   at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:193)
   at org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java:320)
   at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java:266)
   at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:243)
   at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:193)
   at org.hibernate.engine.Cascade.cascade(Cascade.java:154)
   at org.hibernate.event.def.AbstractSaveEventListener.cascadeAfterSave(AbstractSaveEventListener.java:479)
   at org.hibernate.event.def.DefaultMergeEventListener.mergeTransientEntity(DefaultMergeEventListener.java:351)
   at org.hibernate.event.def.DefaultMergeEventListener.entityIsTransient(DefaultMergeEventListener.java:282)
   at org.hibernate.event.def.DefaultMergeEventListener.entityIsDetached(DefaultMergeEventListener.java:397)
   at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:234)
   at org.hibernate.impl.SessionImpl.fireMerge(SessionImpl.java:715)
   at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:697)
   at org.hibernate.engine.CascadingAction$6.cascade(CascadingAction.java:268)
   at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:292)
   at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:240)
   at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:193)
   at org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java:320)
   at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java:266)
   at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:243)
   at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:193)
   at org.hibernate.engine.Cascade.cascade(Cascade.java:154)
   at org.hibernate.event.def.DefaultMergeEventListener.cascadeOnMerge(DefaultMergeEventListener.java:563)
   at org.hibernate.event.def.DefaultMergeEventListener.entityIsPersistent(DefaultMergeEventListener.java:266)
   at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:240)
   at org.hibernate.event.def.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:84)
   at org.hibernate.impl.SessionImpl.fireMerge(SessionImpl.java:705)
   at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:689)
   at org.hibernate.impl.SessionImpl.merge(SessionImpl.java:693)


Hibernate 3.3.2.GA, vista, jdk 6, postgresql

i've checked my xml-mapping, well intellij did the job for me, there is no error.

Can anyone tell me how to trace this to the reason?

thanks,
chris


Top
 Profile  
 
 Post subject: Re: Unable to resolve property: _com
PostPosted: Sun Jul 18, 2010 2:41 pm 
Newbie

Joined: Fri Jul 14, 2006 7:32 am
Posts: 9
The original post is more than a year old and I don't know if the problem was solved then,
but today I'm trying to solve a very similar error and I'm running out of ideas.

Well, in my case the error message is:

org.hibernate.HibernateException: Unable to resolve property: _at

This exception occurs when hibernate tries to cascade a merge operation
to a many-to-many mapping.

I have checked it several times: none of my mapping files or entity classes
have a property called "_at"! This string doesn't even occur anywhere in my files
(checked with grep). Where does Hibernate get this string from?

What alerts me is: in my case the Java package names all start with "at" (the toplevel domain for austria).
In the original post, the exception tells about an unresolvable property "_com", which makes me wonder
if this also might be the start of a Java package name ("com.something").

I'm seeing this problem with hibernate 3.2.7.ga.

Any idea anyone?


Top
 Profile  
 
 Post subject: Re: Unable to resolve property: _com
PostPosted: Mon Nov 17, 2014 7:58 pm 
Newbie

Joined: Sat Apr 19, 2014 4:10 pm
Posts: 2
I am facing the _com version of the error and our packages begin with com.

Have no idea what to do with this one.

Please suggest.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.