java.lang.ClassCastException: oracle.sql.TIMESTAMP cannot be cast to java.sql.Timestamp

后端 未结 7 1239
梦谈多话
梦谈多话 2020-12-29 04:39

I am working on an application that streams ResultSet over a network. I ended up using a CachedRowSetImpl class. But when I connect to an Oracle DB, I get an error like this

7条回答
  •  醉话见心
    2020-12-29 05:01

    Add this this line to the JVM setting. It will work.

    -Doracle.jdbc.J2EE13Compliant=true
    

提交回复
热议问题