Cannot change transaction read-only property in the middle of a transaction

吃可爱长大的小学妹 提交于 2019-12-01 21:17:06

I ran into this issue today. You might be missing one of the required dependencies of boneCP.

I was missing SLF4J library, and receiving the same message. Check whether you have the dependencies here: http://jolbox.com/index.html?page=http://jolbox.com/requirements.html

I ran into the same issue and was able to solve it by doing these two steps:

  • setting the isolation level by adding these statement: config.setDefaultTransactionIsolation("READ UNCOMMITTED");

  • commit every transaction before closing.

I am not sure which one solved the problem or if both are necessary.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!