org.hibernate.type.SerializationException: could not deserialize

openxava | yaizasantana | 11 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Editor para valores mĂșltiples

    openxava | 11 months ago | yaizasantana
    org.hibernate.type.SerializationException: could not deserialize
  2. 0

    org.hibernate.type.SerializationException Caused by: java.io.StreamCorruptedException: invalid stream header: 41435449

    Stack Overflow | 9 months ago | oreandro
    org.hibernate.type.SerializationException: could not deserialize 17:23:00,679 INFO [stdout] (default task-15) at org.hibernate.internal.util.SerializationHelper.doDeserialize(SerializationHelper.java:243) 17:23:00,679 INFO [stdout] (default task-15) at org.hibernate.internal.util.SerializationHelper.deserialize(SerializationHelper.java:287) 17:23:00,679 INFO [stdout] (default task-15) at org.hibernate.type.descriptor.java.SerializableTypeDescriptor.fromBytes(SerializableTypeDescriptor.java:138) 17:23:00,679 INFO [stdout] (default task-15) at org.hibernate.type.descriptor.java.SerializableTypeDescriptor.wrap(SerializableTypeDescriptor.java:113) 17:23:00,679 INFO [stdout] (default task-15) at org.hibernate.type.descriptor.java.SerializableTypeDescriptor.wrap(SerializableTypeDescriptor.java:27) 17:23:00,679 INFO [stdout] (default task-15) at org.hibernate.type.descriptor.sql.VarbinaryTypeDescriptor$2.doExtract(VarbinaryTypeDescriptor.java:60) 17:23:00,679 INFO [stdout] (default task-15) at org.hibernate.type.descriptor.sql.BasicExtractor.extract(BasicExtractor.java:47) 17:23:00,679 INFO [stdout] (default task-15) at org.hibernate.type.AbstractStandardBasicType.nullSafeGet(AbstractStandardBasicType.java:235) 17:23:00,679 INFO [stdout] (default task-15) at org.hibernate.type.AbstractStandardBasicType.nullSafeGet(AbstractStandardBasicType.java:231) 17:23:00,679 INFO [stdout] (default task-15) at org.hibernate.type.AbstractStandardBasicType.nullSafeGet(AbstractStandardBasicType.java:222) 17:23:00,679 INFO [stdout] (default task-15) at org.hibernate.type.AbstractStandardBasicType.hydrate(AbstractStandardBasicType.java:296) 17:23:00,679 INFO [stdout] (default task-15) at org.hibernate.persister.entity.AbstractEntityPersister.hydrate(AbstractEntityPersister.java:2762) 17:23:00,679 INFO [stdout] (default task-15) at org.hibernate.loader.plan.exec.process.internal.EntityReferenceInitializerImpl.loadFromResultSet(EntityReferenceInitializerImpl.java:307) 17:23:00,679 INFO [stdout] (default task-15) at org.hibernate.loader.plan.exec.process.internal.EntityReferenceInitializerImpl.hydrateEntityState(EntityReferenceInitializerImpl.java:235) 17:23:00,680 INFO [stdout] (default task-15) at org.hibernate.loader.plan.exec.process.internal.AbstractRowReader.readRow(AbstractRowReader.java:103) 17:23:00,680 INFO [stdout] (default task-15) at org.hibernate.loader.plan.exec.internal.EntityLoadQueryDetails$EntityLoaderRowReader.readRow(EntityLoadQueryDetails.java:238) 17:23:00,680 INFO [stdout] (default task-15) at org.hibernate.loader.plan.exec.process.internal.ResultSetProcessorImpl.extractResults(ResultSetProcessorImpl.java:112) 17:23:00,680 INFO [stdout] (default task-15) at org.hibernate.loader.plan.exec.internal.AbstractLoadPlanBasedLoader.executeLoad(AbstractLoadPlanBasedLoader.java:122) 17:23:00,680 INFO [stdout] (default task-15) at org.hibernate.loader.plan.exec.internal.AbstractLoadPlanBasedLoader.executeLoad(AbstractLoadPlanBasedLoader.java:86) 17:23:00,680 INFO [stdout] (default task-15) at org.hibernate.loader.entity.plan.AbstractLoadPlanBasedEntityLoader.load(AbstractLoadPlanBasedEntityLoader.java:167) 17:23:00,680 INFO [stdout] (default task-15) at org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:3991) 17:23:00,680 INFO [stdout] (default task-15) at org.hibernate.event.internal.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:508) 17:23:00,680 INFO [stdout] (default task-15) at org.hibernate.event.internal.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:478) 17:23:00,680 INFO [stdout] (default task-15) at org.hibernate.event.internal.DefaultLoadEventListener.load(DefaultLoadEventListener.java:219) 17:23:00,680 INFO [stdout] (default task-15) at org.hibernate.event.internal.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:262) 17:23:00,680 INFO [stdout] (default task-15) at org.hibernate.event.internal.DefaultLoadEventListener.doOnLoad(DefaultLoadEventListener.java:121) 17:23:00,680 INFO [stdout] (default task-15) at org.hibernate.event.internal.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:89) 17:23:00,680 INFO [stdout] (default task-15) at org.hibernate.internal.SessionImpl.fireLoad(SessionImpl.java:1142) 17:23:00,680 INFO [stdout] (default task-15) at org.hibernate.internal.SessionImpl.access$2600(SessionImpl.java:167) 17:23:00,680 INFO [stdout] (default task-15) at org.hibernate.internal.SessionImpl$IdentifierLoadAccessImpl.doGetReference(SessionImpl.java:2712) 17:23:00,680 INFO [stdout] (default task-15) at org.hibernate.internal.SessionImpl$IdentifierLoadAccessImpl.getReference(SessionImpl.java:2691) 17:23:00,680 INFO [stdout] (default task-15) at org.hibernate.internal.SessionImpl.load(SessionImpl.java:968) 17:23:00,680 INFO [stdout] (default task-15) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 17:23:00,680 INFO [stdout] (default task-15) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 17:23:00,680 INFO [stdout] (default task-15) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 17:23:00,680 INFO [stdout] (default task-15) at java.lang.reflect.Method.invoke(Method.java:498) 17:23:00,680 INFO [stdout] (default task-15) at org.springframework.orm.hibernate5.HibernateTemplate$CloseSuppressingInvocationHandler.invoke(HibernateTemplate.java:1242) 17:23:00,680 INFO [stdout] (default task-15) at com.sun.proxy.$Proxy213.load(Unknown Source) 17:23:00,680 INFO [stdout] (default task-15) at my.mydao.MyDAO$3.doInHibernate(HbAccountDAO.java:119) 17:23:00,680 INFO [stdout] (default task-15) at my.mydao.MyDAO$3.doInHibernate(HbAccountDAO.java:116) 17:23:00,680 INFO [stdout] (default task-15) at org.springframework.orm.hibernate5.HibernateTemplate.doExecute(HibernateTemplate.java:341) 17:23:00,680 INFO [stdout] (default task-15) ... 138 more 17:23:00,680 INFO [stdout] (default task-15) Caused by: java.io.StreamCorruptedException: invalid stream header: 41435449 17:23:00,680 INFO [stdout] (default task-15) at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:808) 17:23:00,680 INFO [stdout] (default task-15) at java.io.ObjectInputStream.(ObjectInputStream.java:301) 17:23:00,680 INFO [stdout] (default task-15) at org.hibernate.internal.util.SerializationHelper$CustomObjectInputStream.(SerializationHelper.java:309) 17:23:00,680 INFO [stdout] (default task-15) at org.hibernate.internal.util.SerializationHelper$CustomObjectInputStream.(SerializationHelper.java:299) 17:23:00,680 INFO [stdout] (default task-15) at org.hibernate.internal.util.SerializationHelper.doDeserialize(SerializationHelper.java:218) 17:23:00,680 INFO [stdout] (default task-15) ... 178 more 17:23:00,681 INFO [stdout] (default task-15) could not deserialize; nested exception is org.hibernate.type.SerializationException: could not deserialize 17:23:00,681 INFO [stdout] (default task-15) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) 17:23:00,681 INFO [stdout] (default task-15) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208) 17:23:00,681 INFO [stdout] (default task-15) at com.sun.proxy.$Proxy183.getAccount(Unknown Source) 17:23:00,682 INFO [stdout] (default task-15) at org.apache.cxf.jaxrs.utils.JAXRSUtils.runContainerRequestFilters(JAXRSUtils.java:1644) 17:23:00,682 INFO [stdout] (default task-15) at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:201) 17:23:00,682 INFO [stdout] (default task-15) at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:77) 17:23:00,682 INFO [stdout] (default task-15) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308) 17:23:00,682 INFO [stdout] (default task-15) at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) 17:23:00,682 INFO [stdout] (default task-15) at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:254) 17:23:00,682 INFO [stdout] (default task-15) at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:234) 17:23:00,682 INFO [stdout] (default task-15) at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:208) 17:23:00,682 INFO [stdout] (default task-15) at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160) 17:23:00,682 INFO [stdout] (default task-15) at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:180) 17:23:00,682 INFO [stdout] (default task-15) at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:298) 17:23:00,682 INFO [stdout] (default task-15) at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:222) 17:23:00,682 INFO [stdout] (default task-15) at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) 17:23:00,682 INFO [stdout] (default task-15) at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:273) 17:23:00,682 INFO [stdout] (default task-15) at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85) 17:23:00,682 INFO [stdout] (default task-15) at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129) 17:23:00,682 INFO [stdout] (default task-15) at org.springframework.orm.hibernate5.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:151) 17:23:00,682 INFO [stdout] (default task-15) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) 17:23:00,682 INFO [stdout] (default task-15) at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) 17:23:00,682 INFO [stdout] (default task-15) at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) 17:23:00,682 INFO [stdout] (default task-15) at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) 17:23:00,682 INFO [stdout] (default task-15) at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) 17:23:00,682 INFO [stdout] (default task-15) at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) 17:23:00,682 INFO [stdout] (default task-15) at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) 17:23:00,682 INFO [stdout] (default task-15) at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) 17:23:00,682 INFO [stdout] (default task-15) at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) 17:23:00,682 INFO [stdout] (default task-15) at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) 17:23:00,682 INFO [stdout] (default task-15) at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) 17:23:00,682 INFO [stdout] (default task-15) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:317) 17:23:00,682 INFO [stdout] (default task-15) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127) 17:23:00,682 INFO [stdout] (default task-15) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91) 17:23:00,682 INFO [stdout] (default task-15) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) 17:23:00,682 INFO [stdout] (default task-15) at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:115) 17:23:00,682 INFO [stdout] (default task-15) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331) 17:23:00,682 INFO [stdout] (default task-15) at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:137) 1 17:23:00,683 INFO [stdout] (default task-15) at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) 17:23:00,683 INFO [stdout] (default task-15) at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) 17:23:00,683 INFO [stdout] (default task-15) at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84) 17:23:00,683 INFO [stdout] (default task-15) at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62) 17:23:00,683 INFO [stdout] (default task-15) at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) 17:23:00,683 INFO [stdout] (default task-15) at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78) 17:23:00,683 INFO [stdout] (default task-15) at io.undertow.server.Connectors.executeRootHandler(Connectors.java:202) 17:23:00,683 INFO [stdout] (default task-15) at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:792) 17:23:00,683 INFO [stdout] (default task-15) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 17:23:00,683 INFO [stdout] (default task-15) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 17:23:00,683 INFO [stdout] (default task-15) at java.lang.Thread.run(Thread.java:745) 17:23:00,683 INFO [stdout] (default task-15) Caused by: org.springframework.orm.hibernate5.HibernateSystemException: could not deserialize; nested exception is org.hibernate.type.SerializationException: could not deserialize

    Root Cause Analysis

    1. org.hibernate.type.SerializationException

      could not deserialize

      at org.hibernate.internal.util.SerializationHelper.doDeserialize()
    2. Hibernate
      AbstractEntityPersister.hydrate
      1. org.hibernate.internal.util.SerializationHelper.doDeserialize(SerializationHelper.java:262)
      2. org.hibernate.internal.util.SerializationHelper.deserialize(SerializationHelper.java:306)
      3. org.hibernate.type.descriptor.java.SerializableTypeDescriptor.fromBytes(SerializableTypeDescriptor.java:155)
      4. org.hibernate.type.descriptor.java.SerializableTypeDescriptor.wrap(SerializableTypeDescriptor.java:130)
      5. org.hibernate.type.descriptor.java.SerializableTypeDescriptor.wrap(SerializableTypeDescriptor.java:44)
      6. org.hibernate.type.descriptor.sql.VarbinaryTypeDescriptor$2.doExtract(VarbinaryTypeDescriptor.java:70)
      7. org.hibernate.type.descriptor.sql.BasicExtractor.extract(BasicExtractor.java:64)
      8. org.hibernate.type.AbstractStandardBasicType.nullSafeGet(AbstractStandardBasicType.java:267)
      9. org.hibernate.type.AbstractStandardBasicType.nullSafeGet(AbstractStandardBasicType.java:263)
      10. org.hibernate.type.AbstractStandardBasicType.nullSafeGet(AbstractStandardBasicType.java:253)
      11. org.hibernate.type.AbstractStandardBasicType.hydrate(AbstractStandardBasicType.java:338)
      12. org.hibernate.persister.entity.AbstractEntityPersister.hydrate(AbstractEntityPersister.java:2969)
      12 frames
    3. org.hibernate.loader
      AbstractLoadPlanBasedEntityLoader.load
      1. org.hibernate.loader.plan.exec.process.internal.EntityReferenceInitializerImpl.loadFromResultSet(EntityReferenceInitializerImpl.java:324)
      2. org.hibernate.loader.plan.exec.process.internal.EntityReferenceInitializerImpl.hydrateEntityState(EntityReferenceInitializerImpl.java:251)
      3. org.hibernate.loader.plan.exec.process.internal.AbstractRowReader.readRow(AbstractRowReader.java:107)
      4. org.hibernate.loader.plan.exec.internal.EntityLoadQueryDetails$EntityLoaderRowReader.readRow(EntityLoadQueryDetails.java:256)
      5. org.hibernate.loader.plan.exec.process.internal.ResultSetProcessorImpl.extractResults(ResultSetProcessorImpl.java:129)
      6. org.hibernate.loader.plan.exec.internal.AbstractLoadPlanBasedLoader.executeLoad(AbstractLoadPlanBasedLoader.java:138)
      7. org.hibernate.loader.plan.exec.internal.AbstractLoadPlanBasedLoader.executeLoad(AbstractLoadPlanBasedLoader.java:102)
      8. org.hibernate.loader.entity.plan.AbstractLoadPlanBasedEntityLoader.load(AbstractLoadPlanBasedEntityLoader.java:186)
      8 frames
    4. Hibernate
      SessionImpl.get
      1. org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:4126)
      2. org.hibernate.event.internal.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:503)
      3. org.hibernate.event.internal.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:468)
      4. org.hibernate.event.internal.DefaultLoadEventListener.load(DefaultLoadEventListener.java:213)
      5. org.hibernate.event.internal.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:275)
      6. org.hibernate.event.internal.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:151)
      7. org.hibernate.internal.SessionImpl.fireLoad(SessionImpl.java:1106)
      8. org.hibernate.internal.SessionImpl.access$2000(SessionImpl.java:176)
      9. org.hibernate.internal.SessionImpl$IdentifierLoadAccessImpl.load(SessionImpl.java:2587)
      10. org.hibernate.internal.SessionImpl.get(SessionImpl.java:991)
      10 frames
    5. org.hibernate.jpa
      AbstractEntityManagerImpl.find
      1. org.hibernate.jpa.spi.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:1110)
      1 frame