环境 - LINUX RHEL,SQL Server 2008 R2,Tomcat 6
我们有日常工作,它将使用REST调用从外部系统检索数据并将其填入应用程序数据库。工作即将每天运行5至6小时。但是这项工作没有完全运行,并且在任何时候通过抛出以下异常终止它。
2014-08-21 02:58:29,557 [quartzScheduler_Worker-7] ERROR util.JDBCExceptionReporter
- I/O Error: Connection reset
2014-08-21 02:58:29,558 [quartzScheduler_Worker-7] ERROR util.JDBCExceptionReporter
- Invalid state, the Connection object is closed.
2014-08-21 02:58:29,559 [quartzScheduler_Worker-7] INFO core.JobRunShell
- Job ALM.cyborg.tracking.ALMAutoSyncJob threw a JobExecutionException:
org.quartz.JobExecutionException: Hibernate operation: could not inspect JDBC
autocommit mode;
uncategorized SQLException for SQL [???];
SQL state [HY010];
error code [0];
Invalid state, the Connection object is closed.;
nested exception is java.sql.SQLException:
Invalid state, the Connection object is closed.
[See nested exception:
org.springframework.jdbc.UncategorizedSQLException: Hibernate operation:
could not inspect JDBC autocommit mode; uncategorized SQLException
for SQL [???];
SQL state [HY010];
error code [0];
Invalid state, the Connection object is closed.;
nested exception is java.sql.SQLException: Invalid state,
the Connection object is closed.]
但数据库连接没有问题。抛出此异常时,应用程序运行良好。我们已在应用程序datasource.groovy
中很好地配置了DBCP属性。
可能是什么原因?有些日子工作运行3到4个小时,有些日子运行一个小时,它会在任何时间终止。