15

我在 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。有没有人见过这样的事情?

4

1 回答 1

2

我想我遇到过一次并通过为查询返回的对象类型实现 hashCode 和 Equals 方法来修复它。

于 2012-05-11T20:57:29.817 回答