[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-3239) MarkerObject should be serializable when using with swf
pintail (JIRA)
noreply at atlassian.com
Mon Aug 31 09:22:16 EDT 2009
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=33872#action_33872 ]
pintail commented on HHH-3239:
------------------------------
I encountered the same problem having that exception in my logs.
I placed a breakpoint when the NotSerializableException was thrown.
I saw in my log another exception, which led me to this post: https://forum.hibernate.org/viewtopic.php?p=2407563
In one of the comments they mentioned to try to make the private default constructor to package protected. I also had a private default constructor.
According to the documentation: http://docs.jboss.org/hibernate/stable/core/reference/en/html_single/#persistent-classes-pojo-constructor it is _recommended_ to make the default constructor at least package protected. It seems actually _needed_ instead of _recommende_.
This solved the issue for me.
> MarkerObject should be serializable when using with swf
> -------------------------------------------------------
>
> Key: HHH-3239
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3239
> Project: Hibernate Core
> Issue Type: Bug
> Components: core
> Affects Versions: 3.2.6
> Environment: Hibernate 3.2.6 and Spring Webflow 2.0
> Reporter: Goran Blankendal
>
> You get a java.io.NotSerializableException: org.hibernate.util.MarkerObject
> when using hibernate in a persistence context in SWF 2
> See http://forum.springframework.org/showthread.php?t=51738 and http://forum.hibernate.org/viewtopic.php?t=985226
> The MarkerObject should be serializable.
--
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