my dog learned polymorphism*
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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