-->
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: 3.2.0.ga to 3.6.1.Final Upgrade BLOB problem
PostPosted: Wed Mar 23, 2011 3:12 am 
Newbie

Joined: Thu Sep 16, 2010 1:21 am
Posts: 8
Hibernate Version: 3.6.1
Weblogic : 9.2
Database : Oracle 10.2.0.4.0

Hibernate Mapping
<property name="data" type="java.sql.Blob" column="DATA" />

We need to store an object in the database and for this we are using blob. The database insert for the table containing blob started failing once we upgraded the hibernate jar from 3.2.0.ga to 3.6.1. All other inserts are working fine only the table with the blob is having problems. Also there has been no change in environment or code except for upgrading to this new jar.

Have pasted below the exception we are getting with the new jar..

java.sql.SQLException: setBlob, Exception = $Proxy68
at weblogic.jdbc.wrapper.JDBCWrapperImpl.invocationExceptionHandler(JDBCWrapperImpl.java:141)
at weblogic.jdbc.wrapper.PreparedStatement.setBlob(PreparedStatement.java:365)
at org.hibernate.type.descriptor.sql.BlobTypeDescriptor$1.doBind(BlobTypeDescriptor.java:65)
at org.hibernate.type.descriptor.sql.BasicBinder.bind(BasicBinder.java:89)
at org.hibernate.type.AbstractStandardBasicType.nullSafeSet(AbstractStandardBasicType.java:282)
at org.hibernate.type.AbstractStandardBasicType.nullSafeSet(AbstractStandardBasicType.java:277)
at org.hibernate.type.AbstractSingleColumnStandardBasicType.nullSafeSet(AbstractSingleColumnStandardBasicType.java:85)
at org.hibernate.persister.entity.AbstractEntityPersister.dehydrate(AbstractEntityPersister.java:2166)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2412)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2856)
at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:79)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:273)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:265)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:184)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:51)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1216)
at com.obopay.core.persistence.hibernate.HibernateHandler.insert(HibernateHandler.java:144)
at com.obopay.core.persistence.helper.PersistenceHelper.insertDAO(PersistenceHelper.java:34)
at com.obopay.core.fiadmin.data.access.manager.makerchecker.MCServiceDAOManager.createEventDetail(MCServiceDAOManager.java:84)


Please let me know if there is a work around or solution for this. We need the BLOB and removing it is not an option. This is a blocker for us as we cannot upgrade to the new jar until this is resolved.


Top
 Profile  
 
 Post subject: Re: 3.2.0.ga to 3.6.1.Final Upgrade BLOB problem
PostPosted: Tue Mar 29, 2011 9:14 am 
Newbie

Joined: Thu Sep 16, 2010 1:21 am
Posts: 8
Realized that this has been fixed in 3.6.2. Upgrading to this version resolved this.


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.