我们在成功解雇后获得此异常(quartz 1.5.2):
M: 2014-01-08 07:31:14,737 [QuartzScheduler_Worker-9] ERROR org.quartz.core.ErrorLogger - An error occured while marking executed job complete. job= 'DEFAULT.MIL002_APPLINK_HTTP_SMS_20140108070013'
org.quartz.JobPersistenceException: Couldn't close jdbc connection. Already closed. [See nested exception: java.sql.SQLException: Already closed.]
at org.quartz.impl.jdbcjobstore.JobStoreSupport.closeConnection(JobStoreSupport.java:2299)
at org.quartz.impl.jdbcjobstore.JobStoreTX.triggeredJobComplete(JobStoreTX.java:1337)
at org.quartz.core.QuartzScheduler.notifyJobStoreJobComplete(QuartzScheduler.java:1490)
at org.quartz.core.JobRunShell.run(JobRunShell.java:270)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
* Nested Exception (Underlying Cause) ---------------
java.sql.SQLException: Already closed.
at org.apache.commons.dbcp.PoolableConnection.close(PoolableConnection.java:77)
at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.close(PoolingDataSource.java:180)
at org.quartz.impl.jdbcjobstore.JobStoreSupport.closeConnection(JobStoreSupport.java:2297)
at org.quartz.impl.jdbcjobstore.JobStoreTX.triggeredJobComplete(JobStoreTX.java:1337)
at org.quartz.core.QuartzScheduler.notifyJobStoreJobComplete(QuartzScheduler.java:1490)
at org.quartz.core.JobRunShell.run(JobRunShell.java:270)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
我们将org.quartz.impl.jdbcjobstore.PostgreSQLDelegate与SimpleThreadPool一起使用。 该类处理DB:org.quartz.impl.jdbcjobstore.JobStoreTX
有什么想法吗?
答案 0 :(得分:0)
当您从数据库服务器强制关闭连接时,我已经看到此错误。它可以是批处理作业或计划的作业,可以运行并盲目关闭由SpagoBi建立的数据库连接。