-->
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.  [ 2 posts ] 
Author Message
 Post subject: Clobs may not be accessed after serialization
PostPosted: Fri Aug 04, 2006 1:30 am 
Newbie

Joined: Thu Dec 08, 2005 7:30 am
Posts: 7
Hi,

Hibernate version:3.1.1

I have a table with a column type Clob. I have a view on that table which also has that clob column. When i try to insert a record into that view i get the following exception.

Mapping for that column:

<property name="siteMenu" type="java.sql.Clob">
<column name="SITE_MENU" />
</property>

Stack Trace:

06/08/03 17:21:04 java.lang.IllegalStateException: Clobs may not be accessed after serialization

06/08/03 17:21:04 at org.hibernate.lob.SerializableClob.getWrappedClob(SerializableClob.java:49)

06/08/03 17:21:04 at org.hibernate.type.ClobType.set(ClobType.java:39)

06/08/03 17:21:04 at org.hibernate.type.ClobType.nullSafeSet(ClobType.java:118)

06/08/03 17:21:04 at org.hibernate.persister.entity.AbstractEntityPersister.dehydrate(AbstractEntityPersister.java:1825

)

06/08/03 17:21:04 at org.hibernate.persister.entity.AbstractEntityPersister.dehydrate(AbstractEntityPersister.java:1802

)

06/08/03 17:21:04 at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2058)

06/08/03 17:21:04 at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2426)

06/08/03 17:21:04 at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:51)

06/08/03 17:21:04 at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:243)

06/08/03 17:21:04 at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:227)

06/08/03 17:21:04 at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140)

06/08/03 17:21:04 at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListe

ner.java:296)

06/08/03 17:21:04 at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)

06/08/03 17:21:04 at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:908)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 04, 2006 2:25 am 
Newbie

Joined: Thu Dec 08, 2005 7:30 am
Posts: 7
Guys!!!!!

I really stuck with this problem!!! Can anyone please help to get rid of this..... your help will be highly appreciated!!!!!


Regards,
Jagadeesha


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

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.