mysql - BatchingBatcher "JDBC driver did not retur

我在 tomcat 上运行一个 spring/hibernate java 应用程序,我在更新时看到这个时髦的错误: JDBC 驱动程序没有返回预期的行数

Caused by: java.lang.NullPointerException
        at org.hibernate.jdbc.BatchingBatcher.checkRowCounts(BatchingBatcher.java:90)
        at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:70)
        at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:268)
        at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:262)
        at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:179)

我最近将我的 mysql 连接器更新到版本 5.1.15。 有人见过这样的吗?

最佳答案

我想我曾经遇到过这个问题,并通过为查询返回的对象类型实现 hashCode 和 Equals 方法来修复它。

关于mysql - BatchingBatcher "JDBC driver did not return the expected number of row counts"上的奇怪 NPE,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5223312/

相关文章:

spring - 在 Spring 中使用 @PropertyResource 访问多个属性文件

json - 406 Spring MVC Json,根据请求 "accept"headers No

spring - 如何在 Spring 中通过 XML 定义 MySql 数据源 bean

spring - 在 Spring Boot 中从 FTP 发送和接收文件

java - 返回一个列表,我已经有一个rowmapper实现

java - 无法反序列化 Spring Session Scoped bean

java - 如何使用 Spring Data Pagination 在一页中获取所有结果

java - 如何访问 Thymeleaf 模板中的系统属性?

java - 通过 Spring Config 扫描 Spring Data 存储库?

java - 如何使用modelAttribute在ajax(jquery)中提交spring表单