File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes  javax.sql.rowset.serial.SerialBlob cannot be cast to oracle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark " javax.sql.rowset.serial.SerialBlob cannot be cast to oracle" Watch " javax.sql.rowset.serial.SerialBlob cannot be cast to oracle" New topic
Author

javax.sql.rowset.serial.SerialBlob cannot be cast to oracle

Manuel Leiria
Ranch Hand

Joined: Jul 13, 2007
Posts: 171
Hi there,

I'm facing this exception.
My code:


and the object rta will be inserted into another object.

The variable of interest in FileBlob hbm is defined as follows:


where the type blob is oracle.sql.BLOB

If I change the oracle.sql.BLOB to javax.sql.rowset.serial.SerialBlob in the hbm, I can insert but when I try to get the blob back I get a deserialize exception so this change is not an option.


but when I save the main Object (a cascade operation) I get the following exception:



Any light on the subject?

Thanks in advance,
mleiria


Manuel Leiria<br /> <br />--------------<br />Peace cannot be kept by force; it can only be achieved by understanding. <br /> Albert Einstein
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javax.sql.rowset.serial.SerialBlob cannot be cast to oracle
 
Similar Threads
stuck up in the problem
Issue with inserting a BLOB using IBatis DAO
jdbc functions not working for HSQLDB
c3p0, Tomcat and ComboPooledDataSource
BLOB throwing class cast exception