The document is correct, the Oracle JDBC driver is a problem.
There are 2 possible solutions:
First, use getObject:
oracle.sql.TIMESTAMP ts = (oracle.sql.TIMESTAMP) res.getObject("last_update"); agent.setLastUpdate(new Date(ts.dateValue().getTime()));
The second is to add the VM argument to your application:
-Doracle.jdbc.J2EE13Compliant=true
This will cause the driver to return oracle.sql.TIMESTAMP instead of oracle.sql.TIMESTAMP .
source share