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

AbstractSharedSessionContract doesn't restore ExceptionConverter after de-serialization

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.2.8
    • Fix Version/s: 5.2.9
    • Component/s: hibernate-core
    • Labels:
      None
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Suitable for new contributors:
      Yes, likely
    • Last commented by a user?:
      true

      Description

      We are using hibernate jpa in combination with spring webflow and when the hibernate session
      gets de-serialized we get nullpointers due to the exceptionconverter being null.

      The problem seems to be situated in org.hibernate.internal.SessionImpl readObject method which doesn't restore the exceptionConverter field.

      Possibly this is a bug due to the way jpa and hibernate are integrated. (non standard)
      However just looking at the source code seems like the transient fields should be restored in the readObject method
      Alternatively the session shouldn't be serializable but I think that will break much more since third parties probably rely on this feature...

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: