Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

Manuel Leiria
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic