Reputation: 2017
When I try to get CLOB data from ORACLE using JDBC, exception occurs:
Caused by: java.io.NotSerializableException: oracle.jdbc.driver.T4CConnection
Have you any idea how to solve this?
Upvotes: 1
Views: 1779
Reputation: 691635
Don't try to serialize a CLOB. Transform it to a String. A CLOB is an object that is connected to the database and allows reading data from it while the connection is open. Serializing it makes no sense, just as serializing a Socket makes no sense.
Upvotes: 2