兼容性弹簧批/弹簧/冬眠

时间:2018-02-28 09:16:12

标签: spring hibernate spring-batch

我的应用程序中已经进化了版本(例如hibernate 3.2.6.ga>> 5.1.0.Final),从那时起,我在启动弹簧批处理作业时遇到错误:

Caused by: java.sql.SQLException: You can't operate on a closed Connection!!!
    at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:106)
    at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:65)
    at com.mchange.v2.c3p0.impl.NewProxyConnection.commit(NewProxyConnection.java:809)
    at org.hibernate.resource.jdbc.internal.AbstractLogicalConnectionImplementor.commit(AbstractLogicalConnectionImplementor.java:80)
    at org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLocalTransactionCoordinatorImpl$TransactionDriverControlImpl.commit(JdbcResourceLocalTransactionCoordinatorImpl.java:232)
    at org.hibernate.engine.transaction.internal.TransactionImpl.commit(TransactionImpl.java:65)
    at org.hibernate.jpa.internal.TransactionImpl.commit(TransactionImpl.java:61)
    ... 13 more
Caused by: java.lang.NullPointerException
    at com.mchange.v2.c3p0.impl.NewProxyConnection.commit(NewProxyConnection.java:803)
    ... 17 more

版本是:

  • hibernate 5.1.0.Final
  • spring 3.1.0.RELEASE
  • spring-batch 2.0.0.M3
  • c3p0 0.9.1.2

问题是春季批量版本吗?

0 个答案:

没有答案