Uploaded image for project: 'Hibernate ORM'
  1. HHH-9901

PropertyAccessException: could not set a field value by reflection setter of... when using AttributeConverter for enum

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Out of Date
    • Affects Version/s: 4.3.10, 4.3.11
    • Fix Version/s: None
    • Component/s: None
    • Environment:
      JDK 1.8.0_45, Hibernate 4.3.10
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true
    • Sprint:

      Description

      I was using Hibernate 4.3.5 when I ran into an issue with AtttributeConverter#convertToEntityAttribute(Integer dbData) where dbData was null for Enum datatype. I am not sure why it was null because in database table the all records had not null data. I found issue HHH-8697 Closed which seems similar, so I updated to version 4.3.10 and tested again and now I am getting,... PropertyAccessException: could not set a field value by reflection setter of... when using AttributeConverter for another enum, and this time I checked the dbData parameter was not null. Please see attached exception.

        Attachments

          Issue links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: