Bug #110285 | When using a CachedRowSet with a DATETIME field an exception is thrown | ||
---|---|---|---|
Submitted: | 6 Mar 2023 21:33 | Modified: | 14 Jun 2024 12:42 |
Reporter: | Moses Lecce | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | Connector / J | Severity: | S2 (Serious) |
Version: | 8.0.32 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[6 Mar 2023 21:33]
Moses Lecce
[6 Mar 2023 21:35]
Moses Lecce
Added current version of Connector / J (though this issue began in 8.0.23)
[30 Apr 2024 13:16]
MySQL Verification Team
Hello Moses Lecce, Thank you for the bug report. Please upgrade to latest version and report us back if issue persist even in latest version along with test case. Thank you. Regards, Ashwini Patil
[3 May 2024 19:17]
Moses Lecce
Have updated Connector/J to com.mysql:mysql-connector-j:8.4.0 and am still experiencing the exception. Exception in thread "main" java.lang.ClassCastException: class java.time.LocalDateTime cannot be cast to class java.sql.Timestamp (java.time.LocalDateTime is in module java.base of loader 'bootstrap'; java.sql.Timestamp is in module java.sql of loader 'platform') at java.sql.rowset/com.sun.rowset.CachedRowSetImpl.getDate(CachedRowSetImpl.java:2156) at java.sql.rowset/com.sun.rowset.CachedRowSetImpl.getDate(CachedRowSetImpl.java:2697)
[14 Jun 2024 12:42]
MySQL Verification Team
Hello Moses Lecce, Thank you for the feedback. I tried to reproduce your issue on windows 11 with Connector/J 8.4.0 but I'm not seeing any issues at my end. Also, see Bug #107215 which is fixed in Connector/J 8.2.0 and later versions. Regards, Ashwini Patil