java.time.LocalDateTime cannot be cast to java.sql.Timestamp
Posted by: Vishnu Prabhakaran
Date: October 01, 2021 01:48PM

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

Options: ReplyQuote


Subject
Written By
Posted
java.time.LocalDateTime cannot be cast to java.sql.Timestamp
October 01, 2021 01:48PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.