Quantcast
Channel: MySQL Forums - Connector/J, JDBC and Java
Viewing all articles
Browse latest Browse all 884

java.time.LocalDateTime cannot be cast to java.sql.Timestamp (no replies)

$
0
0
We have been running a Java application in glassfish 5 server using MySQL 5.7 as database. Recently our database team upgraded MySQL version to 8, after that the application is throwing an error java.time.LocalDateTime cannot be cast to java.sql.Timestamp”.

How can I fix this with minimal change in code ?
We have been using openjdk 1.8 version

Viewing all articles
Browse latest Browse all 884

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>