My Oracle Support Banner

Upgrade To 8.0 Causes "SQLException: java.lang.ClassCastException: java.math.BigInteger incompatible with java.lang.Long" (Doc ID 2741020.1)

Last updated on JANUARY 26, 2021

Applies to:

MySQL Connectors - Version 5.1 and later
Information in this document applies to any platform.

Goal

After upgrading the database from MySQL 5.7 to 8.0, the below error was received when connecting the application to the database with Connector/J:

 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.