org.springframework.orm.hibernate.HibernateSystemException

could not deserialize; nested exception is net.sf.hibernate.type.SerializationException: could not deserialize net.sf.hibernate.type.SerializationException: could not deserialize

Samebug tips3

Update Tomcat container adapters to 1.0.0.CR8 or further. If that doesn't work, "0D0A3C21" in ASCII is "<!", first characters in a HTML file, so, check if you're not reading a file of a different type or if there's an issue with your deserialization.

If you're using Liferay, check the steps in the last message on how to fix it: https://goo.gl/feXWKU

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web24

  • via Hibernate JIRA by vetrivel.c, 9 months ago
    could not deserialize; nested exception is net.sf.hibernate.type.SerializationException: could not deserialize net.sf.hibernate.type.SerializationException: could not deserialize
  • via Atlassian JIRA by Javier Aguilar [Atlassian], 1 year ago
    could not delete: com.atlassian.confluence.pages.attachments.ImageDetailsDto#39355622; nested exception is net.sf.hibernate.HibernateException: could not delete: com.atlassian.confluence.pages.attachments.ImageDetailsDto#39355622
  • via Atlassian JIRA by Immanuel Siagian [Atlassian], 1 year ago
    could not insert: [com.atlassian.confluence.core.BodyContent#6488280]; nested exception is net.sf.hibernate.HibernateException: could not insert: [com.atlassian.confluence.core.BodyContent#6488280]
  • Stack trace

    • org.springframework.orm.hibernate.HibernateSystemException: could not deserialize; nested exception is net.sf.hibernate.type.SerializationException: could not deserialize net.sf.hibernate.type.SerializationException: could not deserialize at net.sf.hibernate.util.SerializationHelper.deserialize(SerializationHelper.java:211) at net.sf.hibernate.util.SerializationHelper.deserialize(SerializationHelper.java:234) at net.sf.hibernate.type.SerializableType.fromBytes(SerializableType.java:73) at net.sf.hibernate.type.SerializableType.get(SerializableType.java:38) at net.sf.hibernate.type.NullableType.nullSafeGet(NullableType.java:62) at net.sf.hibernate.type.NullableType.nullSafeGet(NullableType.java:53) at net.sf.hibernate.type.AbstractType.hydrate(AbstractType.java:66) at net.sf.hibernate.loader.Loader.hydrate(Loader.java:686) at net.sf.hibernate.loader.Loader.loadFromResultSet(Loader.java:627) at net.sf.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:586) at net.sf.hibernate.loader.Loader.getRow(Loader.java:501) at net.sf.hibernate.loader.Loader.getRowFromResultSet(Loader.java:213) at net.sf.hibernate.loader.Loader.doQuery(Loader.java:281) at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:133) at net.sf.hibernate.loader.Loader.doList(Loader.java:1033) at net.sf.hibernate.loader.Loader.list(Loader.java:1024) at net.sf.hibernate.hql.QueryTranslator.list(QueryTranslator.java:854) at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1553) at net.sf.hibernate.impl.QueryImpl.list(QueryImpl.java:39) at org.springframework.orm.hibernate.HibernateTemplate$17.doInHibernate(HibernateTemplate.java:331) at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:150) at org.springframework.orm.hibernate.HibernateTemplate.executeFind(HibernateTemplate.java:170) at org.springframework.orm.hibernate.HibernateTemplate.find(HibernateTemplate.java:328) at bean.product_impl.view_data(product_impl.java:58) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.springframework.aop.framework.AopProxyUtils.invokeJoinpointUsingReflection(AopProxyUtils.java:59) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:149) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:118) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:191) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:138) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:148) at $Proxy1.view_data(Unknown Source) at org.springframework.samples.imagedb.standalone.StandaloneImageTool.main(StandaloneImageTool.java:119) Caused by: java.io.StreamCorruptedException: invalid stream header at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:737) at java.io.ObjectInputStream.<init>(ObjectInputStream.java:253) at net.sf.hibernate.util.SerializationHelper$CustomObjectInputStream.<init>(SerializationHelper.java:246) at net.sf.hibernate.util.SerializationHelper.deserialize(SerializationHelper.java:203) ... 35 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 month ago
    Once, 2 months ago
    Unknown user
    Once, 7 months ago
    Unknown user
    Once, 8 months ago
    6 times, 10 months ago
    48 more bugmates