java.lang.ClassCastException: oracle.sql.BLOB cannot be cast to oracle.sql.BLOB

后端 未结 4 747
清歌不尽
清歌不尽 2021-01-13 15:50

I have problem retrieving a blob object from oracle DB to java API with jdbc. The problem is when I execute a Collable statement with a function from the db which return me

4条回答
  •  没有蜡笔的小新
    2021-01-13 16:23

    I got this error while generating a jasper report.

    I replaced the class=oracle.jdbc.OracleBlob with class=java.sql.Blob in the jrxml file of that report. It worked for me.

提交回复
热议问题