Uploaded image for project: 'Click'
  1. Click
  2. CLK-144

HibernateForm does not working CGLib proxies

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: extras
    • Labels:
      None

      Description

      Reported by Caroline Briffa
      -------------------------------------

      We have found what looks like a bug in the HibernateForm. When setting the value object with an object loaded by hibernate in a previous session we were getting a NPE when the component was trying to acquire the class meta data from hibernate. Our class has lazy loaded sets and the CGLib was creating proxies for them. CGLib also changes the class signiture to class_name$$enchancedByCGLib$$hashcode. The meta info for the class was therefore not being loaded.

      We have modified the HibernateForm to use the substring before the $$ as the class name. The problem seems to be solved. A modified HibernateForm.java is attached for your info.

        Activity

        Hide
        medgar Malcolm Edgar added a comment -

        Fix checked into SVN. Will be available in release 1.1

        Show
        medgar Malcolm Edgar added a comment - Fix checked into SVN. Will be available in release 1.1

          People

          • Assignee:
            medgar Malcolm Edgar
            Reporter:
            medgar Malcolm Edgar
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development