Spring : spring-framework-2.0-rc3
DB : Oracle 9i2
Hibernate : hibernate-3.2.0.ga
DataSource : c3p0-0.9.0.jar
I caught one Exception ;(
Caused by: java.sql.SQLException: 仅 READ_COMMITTED 和 SERIALIZABLE 是有效的事务处理级
at oracle.jdbc.driver.DatabaseError.throwSqlException (DatabaseError.java:125)
at oracle.jdbc.driver.DatabaseError.throwSqlException (DatabaseError.java:162)
There is some thing in Chinese which means "only READ_COMMITTED and SERIALIZABLE is available transaction level"
When I use the following configuration to describe my NameMatchTransactionAttributeSource instance, it cause one exception, I don't know whether it is an Oracle error that catched by Spring or some thing else (maybe datasource?), if it was an Oracle error, can I any body tell me why this configuration cause this error, THANK YOU VERY MUCH.
With the following configuration every thing is OK, this is what puzzled me very much ;(Code:<bean id="transactionAttributeSource" class="org.springframework.transaction.interceptor.NameMatchTransactionAttributeSource"> <property name="properties"> <props> <prop key="*"> PROPAGATION_REQUIRES_NEW,ISOLATION_REPEATABLE_READ </prop> </props> </property> </bean>
Code:<bean id="transactionAttributeSource" class="org.springframework.transaction.interceptor.NameMatchTransactionAttributeSource"> <property name="properties"> <props> <prop key="*"> PROPAGATION_REQUIRED,ISOLATION_READ_COMMITTED </prop> </props> </property> </bean>


Reply With Quote
