Forums: Open Discussion (Thread #23792)

【バッチFW】バッチ実行時間の設定 (2009-09-02 17:03 by terasoluna素人 #45673)

お世話になります。

バッチフレームワークを使用して、開発を行っているのですが、10分以上動作させると
----------------------------------------------------------------------
jp.terasoluna.fw.batch.core.CollectorException: org.springframework.dao.DataAccessResourceFailureException: SqlMapClient operation; SQL [];
--- The error occurred in definition/Realization_sqlMap.xml.
--- The error occurred while applying a result map.
--- Check the realization.getAccountMarginAll-AutoResultMap.
--- The error happened while setting a property on the result object.
--- Cause: java.sql.SQLException: [0]:Client's query exceeded in the execution time limitation.; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred in definition/Realization_sqlMap.xml.
--- The error occurred while applying a result map.
--- Check the realization.getAccountMarginAll-AutoResultMap.
--- The error happened while setting a property on the result object.
--- Cause: java.sql.SQLException: [0]:Client's query exceeded in the execution time limitation.
at jp.terasoluna.fw.batch.core.JobManager.processCollect(JobManager.java:198)
at jp.terasoluna.fw.batch.core.JobManager.work(JobManager.java:152)
at jp.terasoluna.fw.batch.springsupport.init.JobExecutor.execute(JobExecutor.java:382)
at jp.terasoluna.fw.batch.springsupport.init.JobStarter.execute(JobStarter.java:137)
at jp.terasoluna.fw.batch.springsupport.init.JobStarter.main(JobStarter.java:106)
Caused by: org.springframework.dao.DataAccessResourceFailureException: SqlMapClient operation; SQL [];
--- The error occurred in definition/Realization_sqlMap.xml.
--- The error occurred while applying a result map.
--- Check the realization.getAccountMarginAll-AutoResultMap.
--- The error happened while setting a property on the result object.
--- Cause: java.sql.SQLException: [0]:Client's query exceeded in the execution time limitation.; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred in definition/Realization_sqlMap.xml.
--- The error occurred while applying a result map.
--- Check the realization.getAccountMarginAll-AutoResultMap.
--- The error happened while setting a property on the result object.
--- Cause: java.sql.SQLException: [0]:Client's query exceeded in the execution time limitation.
at org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.translate(SQLStateSQLExceptionTranslator.java:113)
at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.translate(SQLErrorCodeSQLExceptionTranslator.java:276)
at org.springframework.orm.ibatis.SqlMapClientTemplate.execute(SqlMapClientTemplate.java:196)
at org.springframework.orm.ibatis.SqlMapClientTemplate.queryWithRowHandler(SqlMapClientTemplate.java:300)
at jp.terasoluna.fw.batch.ibatissupport.IBatisDbCollectorImpl.doCollect(IBatisDbCollectorImpl.java:66)
at jp.terasoluna.fw.batch.core.AbstractCollector.collect(AbstractCollector.java:69)
at jp.terasoluna.fw.batch.core.JobManager.processCollect(JobManager.java:191)


----------------------------------------------------------------------

が発生してしまいます。

どこかの設定ファイルで制御を行っていると思うのですが、何処で制御をしているのかわかりません。
誰かご教授お願いできないでしょうか。

また、テンプレートファイルは【PartitionSingleTransactionBean.xml】を使用しています。

Reply to #45673×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: 【バッチFW】バッチ実行時間の設定 (2009-09-04 20:48 by sugimotoku #45707)

上記例外を改善できるかどうかわかりませんが、Realization_sqlMap.xmlに
定義されているコレクタ用のSQL定義のselectタグに以下のように
「timeout="0"」を追加してみては如何でしょうか?
----
<select id="xxxx" timeout="0">
SELECT ・・・
</select
----

また、DBMSやJDBCドライバ等でステートメントのタイムアウト値の設定が
行われていないかご確認頂ければと思います。

Reply to #45673

Reply to #45707×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login