Could not roll back JDBC transaction途径

[异常]接口数量:DM02;错误代码:ERR_EAI_02_014; 错误叙述性说明:当将中间库异常Could not roll back JDBC transaction; nested exception isjava.sql.SQLException: 无法从套接字读取很多其它的数据; nested exception is org.springframework.transaction.TransactionSystemException:Could
not roll back JDBC transaction; nested exception isjava.sql.SQLException: 无法从套接字读取很多其它的数据: 堆栈信息:com.szp.eai.exception.SZPEAIException: 保存领用工作单到中间库时异常Could not roll back JDBC transaction; nested exception isjava.sql.SQLException: 无法从套接字读取很多其它的数据; nested exception
isorg.springframework.transaction.TransactionSystemException: Could not roll backJDBC transaction; nested exception is java.sql.SQLException: 无法从套接字读取很多其它的数据

这个接口异常是连不上数据库,原因是目标数据库是RAC,而此接口的配置仅仅是:

(DESCRIPTION =

(ADDRESS_LIST =

(ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.33.241)(PORT = 1521))    )

(CONNECT_DATA =

(SERVICE_NAME = orcl11)

))

应该改成:

(DESCRIPTION =

(ADDRESS_LIST =

(ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.33.241)(PORT = 1521))

(ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.33.239)(PORT = 1521))

(ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.33.240)(PORT = 1521))

)

(CONNECT_DATA =

(SERVICE_NAME = orcl11)

))

版权声明:本文博客原创文章,博客,未经同意,不得转载。

时间: 2024-11-05 23:23:48

Could not roll back JDBC transaction途径的相关文章

MySQL的8小时连接超时时间,导致系统过夜即崩溃,报错Could not roll back Hibernate transaction

2014年3月开始给单位开发<机关规范化管理网络平台>,10月底成功上线运行,但是存在一个bug: 部署环境: apache tomcat 6.0.41 + mysql5.5 + jbpm Bug重现方法: 部署好环境后,在无用户访问该系统的情况下,过一晚上,第二天再登录就会报出如下错误:Could not roll back Hibernate transaction; nested exception is org.hibernate.TransactionException: JDBC

JDBC Transaction Management Example---reference

In this post, we want to talk about JDBC Transactions and how we can manage the operations in a database. The most popular DBMS like MySQL and Oracle have by default the option autocommit enabled, it means immediately after any DML Operation saves th

JDBC - Transaction

Transaction: a bunch of operation in logic, the unit which consists the operation will works all or breaks down all. Every operation of MySQL server is a independent transaction in default situation. TPL(Transaction Processing Language): start transa

Spring事务管理接口PlatformTransactionManager的实现类DataSourceTransactionManager

package org.springframework.jdbc.datasource; import java.sql.Connection; import java.sql.SQLException; import javax.sql.DataSource; import org.apache.commons.logging.Log; import org.springframework.beans.factory.InitializingBean; import org.springfra

分布式事务系列(1.1)Spring事务管理器PlatformTransactionManager

1 系列目录 分布式事务系列(开篇)提出疑问和研究过程 分布式事务系列(1.1)Spring事务管理器PlatformTransactionManager源码分析 2 jdbc事务 2.1 例子 public void save(User user) throws SQLException{ Connection conn=jdbcDao.getConnection(); conn.setAutoCommit(false); try { PreparedStatement ps=conn.pre

Spring具体事务处理器的实现

1.Spring的事务处理中,通用的事务处理流程框架是由抽象事务管理器AbstractPlatformTransactionManager来提供的,而具体的底层事务处理实现,由PlatformTransactionManager的具体实现类来实现,如  DataSourceTransactionManager .JtaTransactionManager和  HibernateTransactionManager等.我们以Spring中最常用的DataSourceTransactionManag

.spring jdbctemplate源码跟踪

闲着没事,看看源码也是一种乐趣! java操作数据库的基本步骤都是类似的: 1. 建立数据库连接 2. 创建Connection 3. 创建statement或者preparedStateement 4. 执行sql,返回ResultSet 5. 关闭resultSet 5.关闭statement 6.关闭Connection Spring对数据库的操作在jdbc上面做了深层次的封装,使用spring的注入功能,可以把DataSource注册到JdbcTemplate之中. 1. 构造函数,三种

Spring的事物原理

在Spring中把非功能性的事物管理代码以切面的形式进行管理,只需要声明事物即可启用事物管理. 本质:最终执行的还是java.sql.Connection的setAutoCommit(),commit(),rollback()方法. 事物管理器接口:PlatformTransactionManager.java package org.springframework.transaction; public interface PlatformTransactionManager { Transa

spring Transaction Management --官方

原文链接:http://docs.spring.io/spring/docs/current/spring-framework-reference/html/transaction.html 12. Transaction Management 12.1 Introduction to Spring Framework transaction management Comprehensive transaction support is among the most compelling rea