-->
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: Hibernate 3.6 Blob error
PostPosted: Fri Oct 15, 2010 4:52 pm 
Newbie

Joined: Sat Jul 19, 2008 1:29 am
Posts: 13
Hello. After upgrading from Hobernate 3.5 to 3.6 I have an error:

org.hibernate.event.def.AbstractFlushingEventListener - Could not synchronize database state with session
org.hibernate.HibernateException: Unknown unwrap conversion requested: java.sql.Blob to org.hibernate.type.descriptor.BinaryStream

My code:

@Lob
@Basic(fetch = FetchType.LAZY)
@Column(nullable = false, updatable = false)
public Blob getData() {
return data;
}

I use PostgreSQL and jdbc4 driver.

Can anybody help me with this error?


Top
 Profile  
 
 Post subject: Re: Hibernate 3.6 Blob error
PostPosted: Mon Jan 14, 2013 11:24 am 
Newbie

Joined: Mon Jan 14, 2013 11:18 am
Posts: 1
I had the same problem, finally fixed it by replacing Blob to byte[] and use the type "binary" rather than "blob"

hope this help


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.