升级到Spring 3.1.0和Java 17后出现了数值溢出错误。

huangapple go评论56阅读模式
英文:

Numeric overflow error after upgrading to Spring 3.1.0 & Java 17

问题

由于: java.sql.SQLException: 数值溢出
    在 oracle.jdbc.driver.NumberCommonAccessor.throwOverflow(NumberCommonAccessor.java:4161)
    在 oracle.jdbc.driver.NumberCommonAccessor.getInt(NumberCommonAccessor.java:131)
    在 oracle.jdbc.driver.GeneratedStatement.getInt(GeneratedStatement.java:171)
    在 oracle.jdbc.driver.GeneratedScrollableResultSet.getInt(GeneratedScrollableResultSet.java:269)
    在 com.zaxxer.hikari.pool.HikariProxyResultSet.getInt(HikariProxyResultSet.java)
    在 org.hibernate.type.descriptor.jdbc.IntegerJdbcType$2.doExtract(IntegerJdbcType.java:88)
    在 org.hibernate.type.descriptor.jdbc.BasicExtractor.extract(BasicExtractor.java:44)
    在 org.hibernate.sql.results.jdbc.internal.JdbcValuesResultSetImpl.readCurrentRowValues(JdbcValuesResultSetImpl.java:267)
    ... 157 个常见帧省略
请提出一些解决方案
英文:
Caused by: java.sql.SQLException: Numeric Overflow
	at oracle.jdbc.driver.NumberCommonAccessor.throwOverflow(NumberCommonAccessor.java:4161)
	at oracle.jdbc.driver.NumberCommonAccessor.getInt(NumberCommonAccessor.java:131)
	at oracle.jdbc.driver.GeneratedStatement.getInt(GeneratedStatement.java:171)
	at oracle.jdbc.driver.GeneratedScrollableResultSet.getInt(GeneratedScrollableResultSet.java:269)
	at com.zaxxer.hikari.pool.HikariProxyResultSet.getInt(HikariProxyResultSet.java)
	at org.hibernate.type.descriptor.jdbc.IntegerJdbcType$2.doExtract(IntegerJdbcType.java:88)
	at org.hibernate.type.descriptor.jdbc.BasicExtractor.extract(BasicExtractor.java:44)
	at org.hibernate.sql.results.jdbc.internal.JdbcValuesResultSetImpl.readCurrentRowValues(JdbcValuesResultSetImpl.java:267)
	... 157 common frames omitted

Please suggest some solution

答案1

得分: 0

我遇到了相同的问题,但在最近发布的Spring Boot 3.1.1升级后,问题得以解决。

英文:

I was getting the same issue but it worked after upgrading to Spring Boot 3.1.1 which was released recently.

huangapple
  • 本文由 发表于 2023年6月12日 19:53:40
  • 转载请务必保留本文链接:https://go.coder-hub.com/76456403.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定