org.hibernate.TransactionException: JDBC rollback failed
来源:互联网 发布:鞋店软件 编辑:程序博客网 时间:2024/05/21 09:08
小第初学JAVA,最近写了个的项目,安装上去以后,个体老是报链接不上.最后上网查了一下,说是好像hibernate默认的链接池有问题.又根据网上搜索的答案,我采用了在hibernate.cfg 中加入
<property name="hibernate.connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property>
<property name="c3p0.acquire_increment">1</property>
<property name="c3p0.idle_test_period">100</property>
<property name="c3p0.max_size">5</property>
<property name="c3p0.max_statements">0</property>
<property name="c3p0.min_size">2</property>
<property name="c3p0.timeout">90</property>
<!-- <property name="c3p0.preferredTestQuery ">select 1 from user where id=1</property> -->
<property name="c3p0.idleConnectionTestPeriod ">18000</property>
<property name="c3p0.maxIdleTime">25000</property>
<property name="c3p0.testConnectionOnCheckout">true</property>
配置之后,再把时间调到明天,问题就解决了!!!
我初次写,有可能有很多问题,希望与大家一起分享,解决
- org.hibernate.TransactionException: JDBC rollback failed
- org.hibernate.TransactionException: JDBC rollback failed
- org.hibernate.TransactionException: JDBC rollback failed 处理
- 500 - org.hibernate.TransactionException: JDBC rollback failed
- org.hibernate.TransactionException: JDBC rollback failed错误解决方法
- Could not roll back Hibernate transaction; nested exception is org.hibernate.TransactionException: JDBC rollback failed
- org.hibernate.TransactionException: JDBC begin failed:处理方法
- org.hibernate.TransactionException: JDBC begin transaction failed:解决方法
- org.hibernate.TransactionException: commit failed
- Exception in thread "main" org.hibernate.TransactionException: commit failed
- SSH框架,Linux环境里项目问题解决: Could not roll back Hibernate transaction;TransactionException: JDBC rollback
- Hibernate中执行 错误org.hibernate.TransactionException
- Caused by: org.hibernate.TransactionException: unable to commit against JDBC connection
- org.hibernate.TransactionException: Transaction not successfully started
- org.hibernate.TransactionException: nested transactions not supported
- org.hibernate.TransactionException: Transaction not successfully started
- 出现org.hibernate.TransactionException: Transaction not successfully started的原因
- 出现org.hibernate.TransactionException: Transaction not successfully started
- atlbase.h error C2061解决
- VB.NET使用DataGridView分页显示
- WINCE下内核模式和用户模式有什么区别[转]
- mfc程序遇到的一些错误
- words from the economist
- org.hibernate.TransactionException: JDBC rollback failed
- JFreeChat 中文乱码、汉字乱码的解决方案
- DXperience重编译汉化的方法
- 项目经理十句箴言
- 堆和栈 (转贴)
- 按某一字段分组取最大(小)值所在行的数据
- Google OpenSocial中文开发API资源
- GCC内联汇编基础
- 尼科什·阿罗拉(Nikesh Arora)谷歌新任全球销售主管的个人资料