-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Postgresql binary type & hibernate
PostPosted: Wed Oct 19, 2005 7:41 am 
Newbie

Joined: Wed Oct 19, 2005 7:29 am
Posts: 5
HI, I am getting the following exception while loading the data:
(Full stack trace at the end)

net.sf.hibernate.type.SerializationException: could not deserialize
at net.sf.hibernate.util.SerializationHelper.deserialize(Ljava.io.InputStream;)Ljava.lang.Object;(SerializationHelper.java:211)
at net.sf.hibernate.util.SerializationHelper.deserialize([B)Ljava.lang.Object;(SerializationHelper.java:234)
at net.sf.hibernate.type.SerializableType.fromBytes([B)Ljava.lang.Object;(SerializableType.java:73)
...................


Caused by: java.io.StreamCorruptedException: invalid stream header
at java.io.ObjectInputStream.readStreamHeader()V(Unknown Source)
at java.io.ObjectInputStream.<init>(Ljava.io.InputStream;)V(Unknown Source)
at net.sf.hibernate.util.SerializationHelper$CustomObjectInputStream.<init>(Ljava.io.InputStream;)V(SerializationHelper.java:246)
at net.sf.hibernate.util.SerializationHelper.deserialize(Ljava.io.InputStream;)Ljava.lang.Object;(SerializationHelper.java:203)


Trivia:

Database: PostgreSQL 7.4
Relevant Mapping:
<class name="User" table="LB_USER">
......
<property name="contacts" column="CONTACTS" type="serializable" length="65535" />
..........
</class>

Database column type: bytea.

Any clues on whether the issue is with the mappings OR with hibernate layer would be great.

FULL STACK TRACE:
------------------------------------------------------------
Hibernate: select property0_.NAME as NAME, property0_.VALUE as VALUE from LB_PROPERTY property0_
Hibernate: select user0_.ID as ID, user0_.NAME as NAME, user0_.PASSWORD as PASSWORD, user0_.CAN_CREATE_PROJECT as CAN_CREA4_, user0_.CONTACTS as CONTACTS, user0_.FULLNAME as FULLNAME from LB_USER user0_ where (user0_.NAME=? )
2005-10-19 10:29:29,344 [Main Thread] ERROR com.luntsys.luntbuild.dao.HibernateDao - Error in isUserExist:
net.sf.hibernate.type.SerializationException: could not deserialize
at net.sf.hibernate.util.SerializationHelper.deserialize(Ljava.io.InputStream;)Ljava.lang.Object;(SerializationHelper.java:211)
at net.sf.hibernate.util.SerializationHelper.deserialize([B)Ljava.lang.Object;(SerializationHelper.java:234)
at net.sf.hibernate.type.SerializableType.fromBytes([B)Ljava.lang.Object;(SerializableType.java:73)
at net.sf.hibernate.type.SerializableType.get(Ljava.sql.ResultSet;Ljava.lang.String;)Ljava.lang.Object;(SerializableType.java:38)
at net.sf.hibernate.type.NullableType.nullSafeGet(Ljava.sql.ResultSet;Ljava.lang.String;)Ljava.lang.Object;(NullableType.java:62)
at net.sf.hibernate.type.NullableType.nullSafeGet(Ljava.sql.ResultSet;[Ljava.lang.String;Lnet.sf.hibernate.engine.SessionImplementor;Ljava.lang.Object;)Ljava.lang.Object;(NullableType.java:53)
at net.sf.hibernate.type.AbstractType.hydrate(Ljava.sql.ResultSet;[Ljava.lang.String;Lnet.sf.hibernate.engine.SessionImplementor;Ljava.lang.Object;)Ljava.lang.Object;(AbstractType.java:67)
at net.sf.hibernate.loader.Loader.hydrate(Ljava.sql.ResultSet;Ljava.io.Serializable;Ljava.lang.Object;Lnet.sf.hibernate.persister.Loadable;Lnet.sf.hibernate.engine.SessionImplementor;[[Ljava.lang.String;)[Ljava.lang.Object;(Loader.java:690)
at net.sf.hibernate.loader.Loader.loadFromResultSet(Ljava.sql.ResultSet;ILjava.lang.Object;Lnet.sf.hibernate.engine.Key;Ljava.lang.String;Lnet.sf.hibernate.LockMode;Lnet.sf.hibernate.persister.Loadable;Lnet.sf.hibernate.engine.SessionImplementor;)V(Loader.java:631)
at net.sf.hibernate.loader.Loader.instanceNotYetLoaded(Ljava.sql.ResultSet;ILnet.sf.hibernate.persister.Loadable;Ljava.lang.String;Lnet.sf.hibernate.engine.Key;Lnet.sf.hibernate.LockMode;Lnet.sf.hibernate.engine.Key;Ljava.lang.Object;Ljava.util.List;Lnet.sf.hibernate.engine.SessionImplementor;)Ljava.lang.Object;(Loader.java:590)
at net.sf.hibernate.loader.Loader.getRow(Ljava.sql.ResultSet;[Lnet.sf.hibernate.persister.Loadable;[Ljava.lang.String;[Lnet.sf.hibernate.engine.Key;Ljava.lang.Object;Lnet.sf.hibernate.engine.Key;[Lnet.sf.hibernate.LockMode;Ljava.util.List;Lnet.sf.hibernate.engine.SessionImplementor;)[Ljava.lang.Object;(Loader.java:505)
at net.sf.hibernate.loader.Loader.getRowFromResultSet(Ljava.sql.ResultSet;Lnet.sf.hibernate.engine.SessionImplementor;Lnet.sf.hibernate.engine.QueryParameters;Ljava.util.List;Ljava.lang.Object;Ljava.io.Serializable;[Lnet.sf.hibernate.engine.Key;Z)Ljava.lang.Object;(Loader.java:218)
at net.sf.hibernate.loader.Loader.doQuery(Lnet.sf.hibernate.engine.SessionImplementor;Lnet.sf.hibernate.engine.QueryParameters;Ljava.lang.Object;Ljava.io.Serializable;[Ljava.io.Serializable;Z)Ljava.util.List;(Loader.java:285)
at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Lnet.sf.hibernate.engine.SessionImplementor;Lnet.sf.hibernate.engine.QueryParameters;Ljava.lang.Object;Ljava.io.Serializable;[Ljava.io.Serializable;Z)Ljava.util.List;(Loader.java:138)
at net.sf.hibernate.loader.Loader.doList(Lnet.sf.hibernate.engine.SessionImplementor;Lnet.sf.hibernate.engine.QueryParameters;)Ljava.util.List;(Loader.java:1063)
at net.sf.hibernate.loader.Loader.list(Lnet.sf.hibernate.engine.SessionImplementor;Lnet.sf.hibernate.engine.QueryParameters;Ljava.util.Set;[Lnet.sf.hibernate.type.Type;)Ljava.util.List;(Loader.java:1054)
at net.sf.hibernate.hql.QueryTranslator.list(Lnet.sf.hibernate.engine.SessionImplementor;Lnet.sf.hibernate.engine.QueryParameters;)Ljava.util.List;(QueryTranslator.java:854)
at net.sf.hibernate.impl.SessionImpl.find(Ljava.lang.String;Lnet.sf.hibernate.engine.QueryParameters;)Ljava.util.List;(SessionImpl.java:1554)
at net.sf.hibernate.impl.QueryImpl.list()Ljava.util.List;(QueryImpl.java:49)
at com.luntsys.luntbuild.dao.HibernateDao.isUserExist(Ljava.lang.String;)Z(HibernateDao.java:843)
at jrockit.reflect.NativeMethodInvoker.invoke0(Ljava.lang.Object;ILjava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(Ljava.lang.Object;Ljava.lang.reflect.Method;[Ljava.lang.Object;)Ljava.lang.Object;(AopUtils.java:284)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint()Ljava.lang.Object;(ReflectiveMethodInvocation.java:155)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed()Ljava.lang.Object;(ReflectiveMethodInvocation.java:122)
at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(Lorg.aopalliance.intercept.MethodInvocation;)Ljava.lang.Object;(MethodSecurityInterceptor.java:80)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed()Ljava.lang.Object;(ReflectiveMethodInvocation.java:144)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(Lorg.aopalliance.intercept.MethodInvocation;)Ljava.lang.Object;(TransactionInterceptor.java:56)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed()Ljava.lang.Object;(ReflectiveMethodInvocation.java:144)
at org.springframework.orm.hibernate.HibernateInterceptor.invoke(Lorg.aopalliance.intercept.MethodInvocation;)Ljava.lang.Object;(HibernateInterceptor.java:163)
Caused by: java.io.StreamCorruptedException: invalid stream header
at java.io.ObjectInputStream.readStreamHeader()V(Unknown Source)
at java.io.ObjectInputStream.<init>(Ljava.io.InputStream;)V(Unknown Source)
at net.sf.hibernate.util.SerializationHelper$CustomObjectInputStream.<init>(Ljava.io.InputStream;)V(SerializationHelper.java:246)
at net.sf.hibernate.util.SerializationHelper.deserialize(Ljava.io.InputStream;)Ljava.lang.Object;(SerializationHelper.java:203)
at net.sf.hibernate.util.SerializationHelper.deserialize([B)Ljava.lang.Object;(SerializationHelper.java:234)
at net.sf.hibernate.type.SerializableType.fromBytes([B)Ljava.lang.Object;(SerializableType.java:73)
at net.sf.hibernate.type.SerializableType.get(Ljava.sql.ResultSet;Ljava.lang.String;)Ljava.lang.Object;(SerializableType.java:38)
at net.sf.hibernate.type.NullableType.nullSafeGet(Ljava.sql.ResultSet;Ljava.lang.String;)Ljava.lang.Object;(NullableType.java:62)
at net.sf.hibernate.type.NullableType.nullSafeGet(Ljava.sql.ResultSet;[Ljava.lang.String;Lnet.sf.hibernate.engine.SessionImplementor;Ljava.lang.Object;)Ljava.lang.Object;(NullableType.java:53)
at net.sf.hibernate.type.AbstractType.hydrate(Ljava.sql.ResultSet;[Ljava.lang.String;Lnet.sf.hibernate.engine.SessionImplementor;Ljava.lang.Object;)Ljava.lang.Object;(AbstractType.java:67)
at net.sf.hibernate.loader.Loader.hydrate(Ljava.sql.ResultSet;Ljava.io.Serializable;Ljava.lang.Object;Lnet.sf.hibernate.persister.Loadable;Lnet.sf.hibernate.engine.SessionImplementor;[[Ljava.lang.String;)[Ljava.lang.Object;(Loader.java:690)
at net.sf.hibernate.loader.Loader.loadFromResultSet(Ljava.sql.ResultSet;ILjava.lang.Object;Lnet.sf.hibernate.engine.Key;Ljava.lang.String;Lnet.sf.hibernate.LockMode;Lnet.sf.hibernate.persister.Loadable;Lnet.sf.hibernate.engine.SessionImplementor;)V(Loader.java:631)
at net.sf.hibernate.loader.Loader.instanceNotYetLoaded(Ljava.sql.ResultSet;ILnet.sf.hibernate.persister.Loadable;Ljava.lang.String;Lnet.sf.hibernate.engine.Key;Lnet.sf.hibernate.LockMode;Lnet.sf.hibernate.engine.Key;Ljava.lang.Object;Ljava.util.List;Lnet.sf.hibernate.engine.SessionImplementor;)Ljava.lang.Object;(Loader.java:590)
at net.sf.hibernate.loader.Loader.getRow(Ljava.sql.ResultSet;[Lnet.sf.hibernate.persister.Loadable;[Ljava.lang.String;[Lnet.sf.hibernate.engine.Key;Ljava.lang.Object;Lnet.sf.hibernate.engine.Key;[Lnet.sf.hibernate.LockMode;Ljava.util.List;Lnet.sf.hibernate.engine.SessionImplementor;)[Ljava.lang.Object;(Loader.java:505)
at net.sf.hibernate.loader.Loader.getRowFromResultSet(Ljava.sql.ResultSet;Lnet.sf.hibernate.engine.SessionImplementor;Lnet.sf.hibernate.engine.QueryParameters;Ljava.util.List;Ljava.lang.Object;Ljava.io.Serializable;[Lnet.sf.hibernate.engine.Key;Z)Ljava.lang.Object;(Loader.java:218)
at net.sf.hibernate.loader.Loader.doQuery(Lnet.sf.hibernate.engine.SessionImplementor;Lnet.sf.hibernate.engine.QueryParameters;Ljava.lang.Object;Ljava.io.Serializable;[Ljava.io.Serializable;Z)Ljava.util.List;(Loader.java:285)
at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Lnet.sf.hibernate.engine.SessionImplementor;Lnet.sf.hibernate.engine.QueryParameters;Ljava.lang.Object;Ljava.io.Serializable;[Ljava.io.Serializable;Z)Ljava.util.List;(Loader.java:138)
at net.sf.hibernate.loader.Loader.doList(Lnet.sf.hibernate.engine.SessionImplementor;Lnet.sf.hibernate.engine.QueryParameters;)Ljava.util.List;(Loader.java:1063)
at net.sf.hibernate.loader.Loader.list(Lnet.sf.hibernate.engine.SessionImplementor;Lnet.sf.hibernate.engine.QueryParameters;Ljava.util.Set;[Lnet.sf.hibernate.type.Type;)Ljava.util.List;(Loader.java:1054)
at net.sf.hibernate.hql.QueryTranslator.list(Lnet.sf.hibernate.engine.SessionImplementor;Lnet.sf.hibernate.engine.QueryParameters;)Ljava.util.List;(QueryTranslator.java:854)
at net.sf.hibernate.impl.SessionImpl.find(Ljava.lang.String;Lnet.sf.hibernate.engine.QueryParameters;)Ljava.util.List;(SessionImpl.java:1554)
at net.sf.hibernate.impl.QueryImpl.list()Ljava.util.List;(QueryImpl.java:49)
at com.luntsys.luntbuild.dao.HibernateDao.isUserExist(Ljava.lang.String;)Z(HibernateDao.java:843)
at jrockit.reflect.NativeMethodInvoker.invoke0(Ljava.lang.Object;ILjava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(Ljava.lang.Object;Ljava.lang.reflect.Method;[Ljava.lang.Object;)Ljava.lang.Object;(AopUtils.java:284)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint()Ljava.lang.Object;(ReflectiveMethodInvocation.java:155)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed()Ljava.lang.Object;(ReflectiveMethodInvocation.java:122)
at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(Lorg.aopalliance.intercept.MethodInvocation;)Ljava.lang.Object;(MethodSecurityInterceptor.java:80)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed()Ljava.lang.Object;(ReflectiveMethodInvocation.java:144)
2005-10-19 10:29:29,401 [Main Thread] ERROR com.luntsys.luntbuild.utility.Luntbuild - Exception catched in LuntbuildServlet.init()
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(Ljava.io.InputStream;)Ljava.lang.Object;(SerializationHelper.java:211)
at net.sf.hibernate.util.SerializationHelper.deserialize([B)Ljava.lang.Object;(SerializationHelper.java:234)
at net.sf.hibernate.type.SerializableType.fromBytes([B)Ljava.lang.Object;(SerializableType.java:73)
at net.sf.hibernate.type.SerializableType.get(Ljava.sql.ResultSet;Ljava.lang.String;)Ljava.lang.Object;(SerializableType.java:38)
at net.sf.hibernate.type.NullableType.nullSafeGet(Ljava.sql.ResultSet;Ljava.lang.String;)Ljava.lang.Object;(NullableType.java:62)
at net.sf.hibernate.type.NullableType.nullSafeGet(Ljava.sql.ResultSet;[Ljava.lang.String;Lnet.sf.hibernate.engine.SessionImplementor;Ljava.lang.Object;)Ljava.lang.Object;(NullableType.java:53)
at net.sf.hibernate.type.AbstractType.hydrate(Ljava.sql.ResultSet;[Ljava.lang.String;Lnet.sf.hibernate.engine.SessionImplementor;Ljava.lang.Object;)Ljava.lang.Object;(AbstractType.java:67)
at net.sf.hibernate.loader.Loader.hydrate(Ljava.sql.ResultSet;Ljava.io.Serializable;Ljava.lang.Object;Lnet.sf.hibernate.persister.Loadable;Lnet.sf.hibernate.engine.SessionImplementor;[[Ljava.lang.String;)[Ljava.lang.Object;(Loader.java:690)
at net.sf.hibernate.loader.Loader.loadFromResultSet(Ljava.sql.ResultSet;ILjava.lang.Object;Lnet.sf.hibernate.engine.Key;Ljava.lang.String;Lnet.sf.hibernate.LockMode;Lnet.sf.hibernate.persister.Loadable;Lnet.sf.hibernate.engine.SessionImplementor;)V(Loader.java:631)
at net.sf.hibernate.loader.Loader.instanceNotYetLoaded(Ljava.sql.ResultSet;ILnet.sf.hibernate.persister.Loadable;Ljava.lang.String;Lnet.sf.hibernate.engine.Key;Lnet.sf.hibernate.LockMode;Lnet.sf.hibernate.engine.Key;Ljava.lang.Object;Ljava.util.List;Lnet.sf.hibernate.engine.SessionImplementor;)Ljava.lang.Object;(Loader.java:590)
at net.sf.hibernate.loader.Loader.getRow(Ljava.sql.ResultSet;[Lnet.sf.hibernate.persister.Loadable;[Ljava.lang.String;[Lnet.sf.hibernate.engine.Key;Ljava.lang.Object;Lnet.sf.hibernate.engine.Key;[Lnet.sf.hibernate.LockMode;Ljava.util.List;Lnet.sf.hibernate.engine.SessionImplementor;)[Ljava.lang.Object;(Loader.java:505)
at net.sf.hibernate.loader.Loader.getRowFromResultSet(Ljava.sql.ResultSet;Lnet.sf.hibernate.engine.SessionImplementor;Lnet.sf.hibernate.engine.QueryParameters;Ljava.util.List;Ljava.lang.Object;Ljava.io.Serializable;[Lnet.sf.hibernate.engine.Key;Z)Ljava.lang.Object;(Loader.java:218)
at net.sf.hibernate.loader.Loader.doQuery(Lnet.sf.hibernate.engine.SessionImplementor;Lnet.sf.hibernate.engine.QueryParameters;Ljava.lang.Object;Ljava.io.Serializable;[Ljava.io.Serializable;Z)Ljava.util.List;(Loader.java:285)
at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Lnet.sf.hibernate.engine.SessionImplementor;Lnet.sf.hibernate.engine.QueryParameters;Ljava.lang.Object;Ljava.io.Serializable;[Ljava.io.Serializable;Z)Ljava.util.List;(Loader.java:138)
at net.sf.hibernate.loader.Loader.doList(Lnet.sf.hibernate.engine.SessionImplementor;Lnet.sf.hibernate.engine.QueryParameters;)Ljava.util.List;(Loader.java:1063)
at net.sf.hibernate.loader.Loader.list(Lnet.sf.hibernate.engine.SessionImplementor;Lnet.sf.hibernate.engine.QueryParameters;Ljava.util.Set;[Lnet.sf.hibernate.type.Type;)Ljava.util.List;(Loader.java:1054)
at net.sf.hibernate.hql.QueryTranslator.list(Lnet.sf.hibernate.engine.SessionImplementor;Lnet.sf.hibernate.engine.QueryParameters;)Ljava.util.List;(QueryTranslator.java:854)
at net.sf.hibernate.impl.SessionImpl.find(Ljava.lang.String;Lnet.sf.hibernate.engine.QueryParameters;)Ljava.util.List;(SessionImpl.java:1554)
at net.sf.hibernate.impl.QueryImpl.list()Ljava.util.List;(QueryImpl.java:49)
at com.luntsys.luntbuild.dao.HibernateDao.isUserExist(Ljava.lang.String;)Z(HibernateDao.java:843)
at jrockit.reflect.NativeMethodInvoker.invoke0(Ljava.lang.Object;ILjava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(Ljava.lang.Object;Ljava.lang.reflect.Method;[Ljava.lang.Object;)Ljava.lang.Object;(AopUtils.java:284)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint()Ljava.lang.Object;(ReflectiveMethodInvocation.java:155)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed()Ljava.lang.Object;(ReflectiveMethodInvocation.java:122)
at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(Lorg.aopalliance.intercept.MethodInvocation;)Ljava.lang.Object;(MethodSecurityInterceptor.java:80)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed()Ljava.lang.Object;(ReflectiveMethodInvocation.java:144)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(Lorg.aopalliance.intercept.MethodInvocation;)Ljava.lang.Object;(TransactionInterceptor.java:56)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed()Ljava.lang.Object;(ReflectiveMethodInvocation.java:144)
at org.springframework.orm.hibernate.HibernateInterceptor.invoke(Lorg.aopalliance.intercept.MethodInvocation;)Ljava.lang.Object;(HibernateInterceptor.java:163)
Caused by: java.io.StreamCorruptedException: invalid stream header
at java.io.ObjectInputStream.readStreamHeader()V(Unknown Source)
at java.io.ObjectInputStream.<init>(Ljava.io.InputStream;)V(Unknown Source)
at net.sf.hibernate.util.SerializationHelper$CustomObjectInputStream.<init>(Ljava.io.InputStream;)V(SerializationHelper.java:246)
at net.sf.hibernate.util.SerializationHelper.deserialize(Ljava.io.InputStream;)Ljava.lang.Object;(SerializationHelper.java:203)
at net.sf.hibernate.util.SerializationHelper.deserialize([B)Ljava.lang.Object;(SerializationHelper.java:234)
at net.sf.hibernate.type.SerializableType.fromBytes([B)Ljava.lang.Object;(SerializableType.java:73)
at net.sf.hibernate.type.SerializableType.get(Ljava.sql.ResultSet;Ljava.lang.String;)Ljava.lang.Object;(SerializableType.java:38)
at net.sf.hibernate.type.NullableType.nullSafeGet(Ljava.sql.ResultSet;Ljava.lang.String;)Ljava.lang.Object;(NullableType.java:62)
at net.sf.hibernate.type.NullableType.nullSafeGet(Ljava.sql.ResultSet;[Ljava.lang.String;Lnet.sf.hibernate.engine.SessionImplementor;Ljava.lang.Object;)Ljava.lang.Object;(NullableType.java:53)
at net.sf.hibernate.type.AbstractType.hydrate(Ljava.sql.ResultSet;[Ljava.lang.String;Lnet.sf.hibernate.engine.SessionImplementor;Ljava.lang.Object;)Ljava.lang.Object;(AbstractType.java:67)
at net.sf.hibernate.loader.Loader.hydrate(Ljava.sql.ResultSet;Ljava.io.Serializable;Ljava.lang.Object;Lnet.sf.hibernate.persister.Loadable;Lnet.sf.hibernate.engine.SessionImplementor;[[Ljava.lang.String;)[Ljava.lang.Object;(Loader.java:690)
at net.sf.hibernate.loader.Loader.loadFromResultSet(Ljava.sql.ResultSet;ILjava.lang.Object;Lnet.sf.hibernate.engine.Key;Ljava.lang.String;Lnet.sf.hibernate.LockMode;Lnet.sf.hibernate.persister.Loadable;Lnet.sf.hibernate.engine.SessionImplementor;)V(Loader.java:631)
at net.sf.hibernate.loader.Loader.instanceNotYetLoaded(Ljava.sql.ResultSet;ILnet.sf.hibernate.persister.Loadable;Ljava.lang.String;Lnet.sf.hibernate.engine.Key;Lnet.sf.hibernate.LockMode;Lnet.sf.hibernate.engine.Key;Ljava.lang.Object;Ljava.util.List;Lnet.sf.hibernate.engine.SessionImplementor;)Ljava.lang.Object;(Loader.java:590)
at net.sf.hibernate.loader.Loader.getRow(Ljava.sql.ResultSet;[Lnet.sf.hibernate.persister.Loadable;[Ljava.lang.String;[Lnet.sf.hibernate.engine.Key;Ljava.lang.Object;Lnet.sf.hibernate.engine.Key;[Lnet.sf.hibernate.LockMode;Ljava.util.List;Lnet.sf.hibernate.engine.SessionImplementor;)[Ljava.lang.Object;(Loader.java:505)
at net.sf.hibernate.loader.Loader.getRowFromResultSet(Ljava.sql.ResultSet;Lnet.sf.hibernate.engine.SessionImplementor;Lnet.sf.hibernate.engine.QueryParameters;Ljava.util.List;Ljava.lang.Object;Ljava.io.Serializable;[Lnet.sf.hibernate.engine.Key;Z)Ljava.lang.Object;(Loader.java:218)
at net.sf.hibernate.loader.Loader.doQuery(Lnet.sf.hibernate.engine.SessionImplementor;Lnet.sf.hibernate.engine.QueryParameters;Ljava.lang.Object;Ljava.io.Serializable;[Ljava.io.Serializable;Z)Ljava.util.List;(Loader.java:285)
at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Lnet.sf.hibernate.engine.SessionImplementor;Lnet.sf.hibernate.engine.QueryParameters;Ljava.lang.Object;Ljava.io.Serializable;[Ljava.io.Serializable;Z)Ljava.util.List;(Loader.java:138)
at net.sf.hibernate.loader.Loader.doList(Lnet.sf.hibernate.engine.SessionImplementor;Lnet.sf.hibernate.engine.QueryParameters;)Ljava.util.List;(Loader.java:1063)
at net.sf.hibernate.loader.Loader.list(Lnet.sf.hibernate.engine.SessionImplementor;Lnet.sf.hibernate.engine.QueryParameters;Ljava.util.Set;[Lnet.sf.hibernate.type.Type;)Ljava.util.List;(Loader.java:1054)
at net.sf.hibernate.hql.QueryTranslator.list(Lnet.sf.hibernate.engine.SessionImplementor;Lnet.sf.hibernate.engine.QueryParameters;)Ljava.util.List;(QueryTranslator.java:854)
at net.sf.hibernate.impl.SessionImpl.find(Ljava.lang.String;Lnet.sf.hibernate.engine.QueryParameters;)Ljava.util.List;(SessionImpl.java:1554)
at net.sf.hibernate.impl.QueryImpl.list()Ljava.util.List;(QueryImpl.java:49)
at com.luntsys.luntbuild.dao.HibernateDao.isUserExist(Ljava.lang.String;)Z(HibernateDao.java:843)
at jrockit.reflect.NativeMethodInvoker.invoke0(Ljava.lang.Object;ILjava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(Ljava.lang.Object;Ljava.lang.reflect.Method;[Ljava.lang.Object;)Ljava.lang.Object;(AopUtils.java:284)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint()Ljava.lang.Object;(ReflectiveMethodInvocation.java:155)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed()Ljava.lang.Object;(ReflectiveMethodInvocation.java:122)
at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(Lorg.aopalliance.intercept.MethodInvocation;)Ljava.lang.Object;(MethodSecurityInterceptor.java:80)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed()Ljava.lang.Object;(ReflectiveMethodInvocation.java:144)


--thanks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.