What are the required C3P0 settings for hibernate in order to avoid Deadlocks

后端 未结 6 1418
梦毁少年i
梦毁少年i 2020-12-07 11:36

I use Hibernate together with MySQL 5.1.30.

I have the next libraries:

  • c3p0-0.0.1.2.jar
  • mysql-connector-java-5.0.3
6条回答
  •  情歌与酒
    2020-12-07 12:03

    That's a pretty old version of Connector/J. To make sure you're not battling a known and fixed bug, I'd start by getting the newest one (5.0.8):

    http://dev.mysql.com/downloads/connector/j/5.0.html

    That EOFException from MysqlIO is a bit suspicious. Under normal/non-buggy usage, you shouldn't ever get errors from that layer.

提交回复
热议问题