有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

在Mysql启动期间构建排序规则映射时,java无法将BigInteger强制转换为Long

尝试运行需要在本地安装的大型遗留应用程序时出错

[2021-04-02 10:13:46,227] [WARN ] (BasicResourcePool$AcquireTask) com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@7d6275e6 -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (30). Last acquisition attempt exception:

java.sql.SQLException: java.lang.ClassCastException: java.math.BigInteger cannot be cast to java.lang.Long

我已经用调试器运行了整个过程,问题就出现了(我想),因为SHOW COLLATIONS表中的ID是bigint,然后Mysql连接器库出于某种原因试图将其转换为Long,并得到强制转换异常

有人知道如何解决这个问题吗


共 (0) 个答案