-->
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: BLOB issue with org.hibernate.lob.SerializableBlob.length
PostPosted: Sat Dec 03, 2011 2:53 pm 
Newbie

Joined: Sat Dec 03, 2011 2:38 pm
Posts: 3
Hi,

I am working on the spring project which intgrates with Hibernate through IOC. Recently, we came across weird issue. Here is the exception, Hope you could provide us with some solution.

java.sql.SQLRecoverableException: Closed Connection
at oracle.sql.BLOB.getDBAccess(BLOB.java:1087)
at oracle.sql.BLOB.length(BLOB.java:151)
at org.hibernate.lob.SerializableBlob.length(Serializ ableBlob.java:31)


Code:
byte[] bytes = ttFileInfo.getFileContent().getBytes(1, (int)blob.length());IOUtils.copy(ttFileInfo.getFileContent().getBinaryStream(), out);Exception is getting thrown when any method is called upon Blob object after it is received form Database. I can see all other contents like name of the file, size everything is rereived, except the binary stream,length or bytes[] data of BLOB.

I even tried the solution of session.refresh(entityobject), session.merge(entityobject) but no luck.

Expecting that any experts can provide me solution. Thanks in advance


Regards,
Asmath.


Top
 Profile  
 
 Post subject: Re: BLOB issue with org.hibernate.lob.SerializableBlob.length
PostPosted: Tue Dec 06, 2011 12:59 am 
Newbie

Joined: Sat Dec 03, 2011 2:38 pm
Posts: 3
I have resolved issue temporarily by increasing the session time out of the deployment in weblogic console.. Really weird to see the issues with Hibernate...I am sure that the issue gets repeated once again..


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.