[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1852?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=31270#action_31270 ]
Shawn Kerstetter commented on HHH-1852:
---------------------------------------
I want to chime in here and say that I had a very similar issue. It was reported in exactly the same way, however, my problem turned out to be in my code. I had a type mismatch in my HQL:
" and currentStatus in (:selectedStatusPrimaryKeys)"
Which I had to change to
"and currentStatus.primaryKey in (:selectedStatusPrimaryKeys)".
I am not sure why the issue manifested itself the way it did, but I am hoping that this note can save someone else the trouble that I had.
> @MappedSuperclass - PropertyAccessException
> -------------------------------------------
>
> Key: HHH-1852
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1852
> Project: Hibernate Core
> Issue Type: Bug
> Components: core
> Affects Versions: 3.2.0.cr2
> Environment: hibernate-3.2.0.cr2, hibernate-annotations-3.2.0.cr1, hibernate-entitymanager-3.2.0.cr1
> Reporter: David de Mingo
> Attachments: src.zip
>
>
> Caused by:
org.hibernate.PropertyAccessException: could not get a field value by reflection getter of org.endea.model.product.ProductAttribute.data
> at
org.hibernate.property.DirectPropertyAccessor$DirectGetter.get(DirectPropertyAccessor.java:35)
> at
org.hibernate.property.DirectPropertyAccessor$DirectGetter.getForInsert(DirectPropertyAccessor.java:40)
> at
org.hibernate.tuple.AbstractEntityTuplizer.getPropertyValuesToInsert (
AbstractEntityTuplizer.java:264)
> ...
> Caused by:
java.lang.IllegalArgumentException> at
sun.reflect.UnsafeFieldAccessorImpl.ensureObj (
UnsafeFieldAccessorImpl.java:37)
> at
sun.reflect.UnsafeObjectFieldAccessorImpl.get (
UnsafeObjectFieldAccessorImpl.java:18)
> at
java.lang.reflect.Field.get (
Field.java:357)
> at
org.hibernate.property.DirectPropertyAccessor$DirectGetter.get(DirectPropertyAccessor.java:32)
> ... 41 morer
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
hibernate-issues mailing list
hibernate-issues@(protected)
https://lists.jboss.org/mailman/listinfo/hibernate-issues