About

Jadira is the home for Sousan and Chris Pheby's open source projects. These are reusable open source Java modules that provide first class solutions using the most effective current JEE technologies.

Search
Tag Cloud
...
Login

Jadira Support > null column for joda persistentdatetime causes serialization exception.

Hi i have a DateTime map to a timestamp with nullable column definition. A null in the column would cause this error.

I am using hibernate 3.6.0.Final with usertype 1.5

org.springframework.orm.hibernate3.HibernateSystemException: deepCopy of null is not serializable; nested exception is org.hibernate.type.SerializationException: deepCopy of null is not serializable
Caused by: org.hibernate.type.SerializationException: deepCopy of null is not serializable
at org.jadira.usertype.dateandtime.shared.spi.AbstractUserType.disassemble(AbstractUserType.java:90)
at org.hibernate.type.CustomType.disassemble(CustomType.java:125)
at org.hibernate.type.TypeHelper.disassemble(TypeHelper.java:146)
at org.hibernate.cache.entry.CacheEntry.(CacheEntry.java:68)
at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:164)
at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:982)
at org.hibernate.loader.Loader.doQuery(Loader.java:857)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:274)
at org.hibernate.loader.Loader.doList(Loader.java:2533)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2276)
at org.hibernate.loader.Loader.list(Loader.java:2271)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:452)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:363)
at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1268)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)
at org.springframework.orm.hibernate3.HibernateTemplate$34.doInHibernate(HibernateTemplate.java:1015)
at org.springframework.orm.hibernate3.HibernateTemplate$34.doInHibernate(HibernateTemplate.java:1)
at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:406)
... 39 more

October 15, 2010 | Unregistered Commenterchun ping wang

Hi Chun,

Thanks for reporting the issue.

This is a known issue fixed in Release 1.6. The latest current release is 1.7 which fixes a couple of other bugs, so I suggest you use that.

Regards Chris

November 22, 2010 | Registered CommenterChris

thanks check out 1.7 and works.

December 23, 2010 | Unregistered Commenterchun