[Informa-developer] FW: informa serialization exception
Status: Beta
Brought to you by:
niko_schmuck
From: Marco M. <mmi...@wa...> - 2005-05-23 08:19:45
|
Hello all, Following a suggestion from Mohd. Amin, I have written a Quartz Job To update rss feeds automatically using Quartz. In doing that, I am receiving a huge exception when trying to load channels, Particularly when trying to get values from column locstring. Unfortunately I forgot at home my channels.hbm.xml, but it looks like troubles happen as long as I declare a mapping for column locstring. I found same entry in this blog (dated last year), http://www.cheblogs.com/roller/page/princeamin/20040711?catname=Java and I was wondering If anyone knows anything about it, because this problem is a real showstopper for me.. If I use the column 'site' to create a ChannelBuilder, I am not receiving feeds at all Anyone can help? I have attached the job that I am using (I am using Spring together with Quartz, I am getting Hibernate session from spring..... anyway error happens While Hibernate is trying to retrieve channels for the problem mentioned above..) Thanx in advance and regards Marco -----Original Message----- From: Marco Mistroni [mailto:mmi...@gm...] Sent: 22 May 2005 15:59 To: mmi...@wa... Subject: informa serialization exception 14:58:39,921 INFO [STDOUT] parameter passed is:[Ljava.lang.Object;@12e7234 14:58:39,984 ERROR [HibernateStockDAOImpl] Exception in updating HibernateEntry org.springframework.orm.hibernate.HibernateSystemException: could not deserializ e; nested exception is net.sf.hibernate.type.SerializationException: could not d eserialize net.sf.hibernate.type.SerializationException: could not deserialize at net.sf.hibernate.util.SerializationHelper.deserialize(SerializationHe lper.java:197) at net.sf.hibernate.util.SerializationHelper.deserialize(SerializationHe lper.java:220) at net.sf.hibernate.type.SerializableType.fromBytes(SerializableType.jav a: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:606) at net.sf.hibernate.loader.Loader.loadFromResultSet(Loader.java:547) at net.sf.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:506) at net.sf.hibernate.loader.Loader.getRow(Loader.java:421) at net.sf.hibernate.loader.Loader.doQuery(Loader.java:204) at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections (Loader.java:128) at net.sf.hibernate.loader.Loader.list(Loader.java:918) at net.sf.hibernate.hql.QueryTranslator.list(QueryTranslator.java:983) at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1473) at net.sf.hibernate.impl.QueryImpl.list(QueryImpl.java:45) at org.springframework.orm.hibernate.HibernateTemplate$22.doInHibernate( HibernateTemplate.java:740) at org.springframework.orm.hibernate.HibernateTemplate.execute(Hibernate Template.java:312) at org.springframework.orm.hibernate.HibernateTemplate.findByNamedQuery( HibernateTemplate.java:726) at org.springframework.orm.hibernate.HibernateTemplate.findByNamedQuery( HibernateTemplate.java:718) at com.myapp.hibernate.HibernateStockDAOImpl.query(HibernateStockDAOImpl .java:129) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti on(AopUtils.java:310) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJo inpoint(ReflectiveMethodInvocation.java:155) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( ReflectiveMethodInvocation.java:122) at org.springframework.transaction.interceptor.TransactionInterceptor.in voke(TransactionInterceptor.java:57) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( ReflectiveMethodInvocation.java:144) at com.myapp.aop.StockAroundAdvice.invoke(StockAroundAdvice.java:55) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( ReflectiveMethodInvocation.java:144) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami cAopProxy.java:174) at $Proxy40.query(Unknown Source) at com.myapp.common.StockPersistenceManagerImpl.query(StockPersistenceMa nagerImpl.java:58) at com.myapp.scheduler.InformaJob.executeInternal(InformaJob.java:73) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJob Bean.java:66) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j ava:516) 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.deserialize(SerializationHe lper.java:189) ... 39 more 14:58:40,000 INFO [STDOUT] Exception in retrieving channels... 14:58:40,000 INFO [STDOUT] com.myapp.exceptions.PersistenceException: java.lang .Exception: org.springframework.orm.hibernate.HibernateSystemException: could no t deserialize; nested exception is net.sf.hibernate.type.SerializationException: could not deserialize 14:58:40,000 INFO [STDOUT] at com.myapp.hibernate.HibernateStockDAOImpl.que ry(HibernateStockDAOImpl.java:139) 14:58:40,000 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0( Native Method) 14:58:40,000 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(N ativeMethodAccessorImpl.java:39) 14:58:40,000 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invo ke(DelegatingMethodAccessorImpl.java:25) 14:58:40,000 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:3 24) 14:58:40,000 INFO [STDOUT] at org.springframework.aop.support.AopUtils.invo keJoinpointUsingReflection(AopUtils.java:310) 14:58:40,000 INFO [STDOUT] at org.springframework.aop.framework.ReflectiveM ethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:155) 14:58:40,000 INFO [STDOUT] at org.springframework.aop.framework.ReflectiveM ethodInvocation.proceed(ReflectiveMethodInvocation.java:122) 14:58:40,000 INFO [STDOUT] at org.springframework.transaction.interceptor.T ransactionInterceptor.invoke(TransactionInterceptor.java:57) 14:58:40,000 INFO [STDOUT] at org.springframework.aop.framework.ReflectiveM ethodInvocation.proceed(ReflectiveMethodInvocation.java:144) 14:58:40,000 INFO [STDOUT] at com.myapp.aop.StockAroundAdvice.invoke(StockA roundAdvice.java:55) 14:58:40,000 INFO [STDOUT] at org.springframework.aop.framework.ReflectiveM ethodInvocation.proceed(ReflectiveMethodInvocation.java:144) 14:58:40,000 INFO [STDOUT] at org.springframework.aop.framework.JdkDynamicA opProxy.invoke(JdkDynamicAopProxy.java:174) 14:58:40,000 INFO [STDOUT] at $Proxy40.query(Unknown Source) 14:58:40,000 INFO [STDOUT] at com.myapp.common.StockPersistenceManagerImpl. query(StockPersistenceManagerImpl.java:58) 14:58:40,000 INFO [STDOUT] at com.myapp.scheduler.InformaJob.executeInterna l(InformaJob.java:73) 14:58:40,000 INFO [STDOUT] at org.springframework.scheduling.quartz.QuartzJ obBean.execute(QuartzJobBean.java:66) 14:58:40,000 INFO [STDOUT] at org.quartz.core.JobRunShell.run(JobRunShell.j ava:191) 14:58:40,000 INFO [STDOUT] at org.quartz.simpl.SimpleThreadPool$WorkerThrea d.run(SimpleThreadPool.java:516) 14:58:40,000 INFO [STDOUT] Caused by: java.lang.Exception: org.springframework. orm.hibernate.HibernateSystemException: could not deserialize; nested exception is net.sf.hibernate.type.SerializationException: could not deserialize 14:58:40,000 INFO [STDOUT] ... 19 more 14:58:40,078 INFO [STDOUT] Caused by: org.springframework.orm.hibernate.Hiberna teSystemException: could not deserialize; nested exception is net.sf.hibernate.t ype.SerializationException: could not deserialize 14:58:40,078 INFO [STDOUT] at org.springframework.orm.hibernate.SessionFact oryUtils.convertHibernateAccessException(SessionFactoryUtils.java:627) 14:58:40,078 INFO [STDOUT] at org.springframework.orm.hibernate.HibernateAc cessor.convertHibernateAccessException(HibernateAccessor.java:234) 14:58:40,078 INFO [STDOUT] at org.springframework.orm.hibernate.HibernateTe mplate.execute(HibernateTemplate.java:317) 14:58:40,078 INFO [STDOUT] at org.springframework.orm.hibernate.HibernateTe mplate.findByNamedQuery(HibernateTemplate.java:726) 14:58:40,078 INFO [STDOUT] at org.springframework.orm.hibernate.HibernateTe mplate.findByNamedQuery(HibernateTemplate.java:718) 14:58:40,078 INFO [STDOUT] at com.myapp.hibernate.HibernateStockDAOImpl.que ry(HibernateStockDAOImpl.java:129) 14:58:40,078 INFO [STDOUT] ... 18 more 14:58:40,078 INFO [STDOUT] Caused by: net.sf.hibernate.type.SerializationExcept ion: could not deserialize 14:58:40,078 INFO [STDOUT] at net.sf.hibernate.util.SerializationHelper.des erialize(SerializationHelper.java:197) 14:58:40,078 INFO [STDOUT] at net.sf.hibernate.util.SerializationHelper.des erialize(SerializationHelper.java:220) 14:58:40,078 INFO [STDOUT] at net.sf.hibernate.type.SerializableType.fromBy tes(SerializableType.java:73) 14:58:40,078 INFO [STDOUT] at net.sf.hibernate.type.SerializableType.get(Se rializableType.java:38) 14:58:40,078 INFO [STDOUT] at net.sf.hibernate.type.NullableType.nullSafeGe t(NullableType.java:62) 14:58:40,078 INFO [STDOUT] at net.sf.hibernate.type.NullableType.nullSafeGe t(NullableType.java:53) 14:58:40,078 INFO [STDOUT] at net.sf.hibernate.type.AbstractType.hydrate(Ab stractType.java:66) 14:58:40,078 INFO [STDOUT] at net.sf.hibernate.loader.Loader.hydrate(Loader .java:606) 14:58:40,078 INFO [STDOUT] at net.sf.hibernate.loader.Loader.loadFromResult Set(Loader.java:547) 14:58:40,078 INFO [STDOUT] at net.sf.hibernate.loader.Loader.instanceNotYet Loaded(Loader.java:506) 14:58:40,078 INFO [STDOUT] at net.sf.hibernate.loader.Loader.getRow(Loader. java:421) 14:58:40,078 INFO [STDOUT] at net.sf.hibernate.loader.Loader.doQuery(Loader .java:204) 14:58:40,078 INFO [STDOUT] at net.sf.hibernate.loader.Loader.doQueryAndInit ializeNonLazyCollections(Loader.java:128) 14:58:40,078 INFO [STDOUT] at net.sf.hibernate.loader.Loader.list(Loader.ja va:918) 14:58:40,078 INFO [STDOUT] at net.sf.hibernate.hql.QueryTranslator.list(Que ryTranslator.java:983) 14:58:40,078 INFO [STDOUT] at net.sf.hibernate.impl.SessionImpl.find(Sessio nImpl.java:1473) 14:58:40,078 INFO [STDOUT] at net.sf.hibernate.impl.QueryImpl.list(QueryImp l.java:45) 14:58:40,078 INFO [STDOUT] at org.springframework.orm.hibernate.HibernateTe mplate$22.doInHibernate(HibernateTemplate.java:740) 14:58:40,078 INFO [STDOUT] at org.springframework.orm.hibernate.HibernateTe mplate.execute(HibernateTemplate.java:312) 14:58:40,078 INFO [STDOUT] ... 21 more 14:58:40,078 INFO [STDOUT] Caused by: java.io.StreamCorruptedException: invalid stream header 14:58:40,078 INFO [STDOUT] at java.io.ObjectInputStream.readStreamHeader(Ob jectInputStream.java:737) 14:58:40,078 INFO [STDOUT] at java.io.ObjectInputStream.<init>(ObjectInputS tream.java:253) 14:58:40,078 INFO [STDOUT] at net.sf.hibernate.util.SerializationHelper.des erialize(SerializationHelper.java:189) 14:58:40,078 INFO [STDOUT] ... 39 more |