Mybatis:java.sql.SQLRecoverableException:Closed语句

时间:2015-06-05 09:34:59

标签: java oracle jdbc mybatis

当我使用Mybatis执行查询sql for oracle数据库时,它有时会抛出异常:

org.springframework.dao.RecoverableDataAccessException:
### Error querying database.  Cause: java.sql.SQLRecoverableException: Closed Statement
### The error may exist in com/mapper/TestMapper.xml
### The error may involve com.mapper.TestMapper.getList
### The error occurred while handling results
### SQL: SELECT *    FROM person_view

查询的xml配置:

<select id="getList" resultType="com.domain.TestBean" parameterType="map">  
select * from person_view where rownum < #{limit}
</select>

当查询时间&gt; 60s,它会抛出异常,但我在mybatis配置和连接池配置中找不到任何查询时间限制。任何想法,提前谢谢。

0 个答案:

没有答案