[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-3309) Serialize/Deserialize problem in AbstractLazyInitializer with entitymode.MAP.

Steve Ebersole (JIRA) noreply at atlassian.com
Tue Jul 8 23:36:12 EDT 2008


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Ebersole updated HHH-3309:
--------------------------------

    Fix Version/s: 3.3.0.CR2
                   3.2.x
          Summary: Serialize/Deserialize problem in AbstractLazyInitializer with entitymode.MAP.   (was: AbstractLazyInitializer writeReplace not being executed on JDK6)

Actually the two non-pojo entity-modes currently do not use the writeReplace serialization hook.  I am not a fan of having that hierarchy being "mixed use" wrt Serialization scheme.

In the meantime, adding a protected no-arg ctor does in fact work around the issue, so lets use that for now.

> Serialize/Deserialize problem in AbstractLazyInitializer with entitymode.MAP. 
> ------------------------------------------------------------------------------
>
>                 Key: HHH-3309
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3309
>             Project: Hibernate3
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.2.6
>         Environment: Hibernate 3.2.6.ga, MySQL 5.0.45-community-nt, Spring MVC 2, Eclipse 3.3.1.1, JDK 1.6.0_03
>            Reporter: Lucas Baamonde
>            Assignee: Steve Ebersole
>             Fix For: 3.2.x, 3.3.0.CR2
>
>
> I am work with entitymode.MAP and Spring Web Flow. When SWF trying to serialize the Map Class, then you would get a java.io.InvalidClassException: no valid constructor. I created a no argument constructor 	AbstractLazyInitializer(), then i build hibernate with JDK 1.5 and this work fine for me in JDK 1.6.

-- 
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

        



More information about the hibernate-issues mailing list