'java.lang.ClassCastException: javax.sql.rowset.serial.SerialClob cannot be cast to oracle.sql.CLOB
Here, I am converting serialclob to clob
Clob requestClob = new javax.sql.rowset.serial.SerialClob(
Reqt.frameRequest().toCharArray());
Clob responseClob = new javax.sql.rowset.serial.SerialClob(
Resp.getXmlResponse().toCharArray());
Here, I'm inserting the Clob data and getting the error of classCast Exception during runtime
stmt.setClob(3, Reqt);
stmt.setClob(4, Resp);
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
