Online Accounting Could not be created for this transaction 错误的一个解决办法

创建完Transaction, 要Create Accounting的时候碰到这样一个错误消息:


Online Accounting Could not be created for this transaction 
Please inform your system administrator that the Create 
Accounting Program has encountered an internal error. 

the application accounting definition China Receivable owned by Oracle is not valid . Please validate the application accounting definition or update the application accounting definition contained in the sub ledger accounting method standard accrual 


这时运行Validate Accounting Derivation Definition Request就能解决.

"Could not open JDBC Connection for transaction"是一个常见的错误,通常是由于数据库连接池中的连接已经关闭或无法创建新连接导致的。以下是可能导致此错误的一些原因和解决方法: 1. 数据库连接池中的连接已经关闭:检查数据库连接池的配置,确保连接池中的连接没有被过早关闭。可以尝试增加连接池的大小或减少连接的最大空闲时间。 2. 数据库连接池中的连接已经用尽:检查数据库连接池的配置,确保连接池中有足够的连接可用。可以尝试增加连接池的大小或减少连接的最大空闲时间。 3. 数据库服务器宕机或网络故障:检查数据库服务器是否正常运行,并确保网络连接正常。 4. 数据库连接参数错误:检查数据库连接参数是否正确,例如数据库URL、用户名和密码等。 5. 数据库驱动版本不兼容:检查数据库驱动版本是否与数据库服务器兼容。 以下是一个可能的解决方案: ```java import javax.sql.DataSource; import org.springframework.jdbc.datasource.DataSourceUtils; import org.springframework.transaction.annotation.Transactional; @Transactional public class MyService { private DataSource dataSource; public void setDataSource(DataSource dataSource) { this.dataSource = dataSource; } public void doSomething() { Connection conn = DataSourceUtils.getConnection(dataSource); try { // do something with the connection } finally { DataSourceUtils.releaseConnection(conn, dataSource); } } } ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值