History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QUARTZ-35
Type: Bug Bug
Status: Closed Closed
Resolution: Won't Fix
Priority: Major Major
Assignee: James House
Reporter: James House
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Quartz Scheduler

Noisy stack-trace during shutdown

Created: 28/Jun/04 08:59 PM   Updated: 24/Dec/07 01:29 AM
Component/s: Job Stores
Affects Version/s: 1.4.1
Fix Version/s: 1.6.1

Flags: Patch


 Description  « Hide
Jun 28, 2004 4:03:46 PM org.quartz.impl.jdbcjobstore.JobStoreSupport$ClusterManager manage
SEVERE: ClusterManager: Error managing cluster: Failed to obtain DB connection from data source 'myDS': java.lang.IllegalStateException: Pool not open
org.quartz.JobPersistenceException: Failed to obtain DB connection from data source 'myDS': java.lang.IllegalStateException: Pool not open [See nested exception: java.lang.IllegalStateException: Pool not open]
at org.quartz.impl.jdbcjobstore.JobStoreSupport.getConnection(JobStoreSupport.java:547)
at org.quartz.impl.jdbcjobstore.JobStoreTX.doCheckin(JobStoreTX.java:1325)
at org.quartz.impl.jdbcjobstore.JobStoreSupport$ClusterManager.manage(JobStoreSupport.java:2213)
at org.quartz.impl.jdbcjobstore.JobStoreSupport$ClusterManager.run(JobStoreSupport.java:2244)
* Nested Exception (Underlying Cause) ---------------
java.lang.IllegalStateException: Pool not open
at org.apache.commons.pool.BaseObjectPool.assertOpen(BaseObjectPool.java:123)
at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:767)
at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:140)
at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:518)
at org.quartz.utils.PoolingConnectionProvider.getConnection(PoolingConnectionProvider.java:180)
at org.quartz.utils.DBConnectionManager.getConnection(DBConnectionManager.java:119)
at org.quartz.impl.jdbcjobstore.JobStoreSupport.getConnection(JobStoreSupport.java:526)
at org.quartz.impl.jdbcjobstore.JobStoreTX.doCheckin(JobStoreTX.java:1325)
at org.quartz.impl.jdbcjobstore.JobStoreSupport$ClusterManager.manage(JobStoreSupport.java:2213)
at org.quartz.impl.jdbcjobstore.JobStoreSupport$ClusterManager.run(JobStoreSupport.java:2244)
Jun 28, 2004 4:03:46 PM org.quartz.core.QuartzScheduler unBind
INFO: Scheduler un-bound from RMI registry.
Jun 28, 2004 4:03:46 PM org.quartz.core.QuartzScheduler shutdown
INFO: Scheduler FintechOperatingSystemDev_$_DEVCH01 shutdown complete.

 All   Comments   Change History      Sort Order:
James House - [28/Jun/04 11:19 PM ]

Kevin Tapperson - [19/May/05 10:17 AM ]
The following org.quartz.impl.jdbcjobstore.JobStoreSupport.shutdown() method resolves this problem:

/**
     * <p>
     * Called by the QuartzScheduler to inform the <code>JobStore</code> that
     * it should free up all of it's resources because the scheduler is
     * shutting down.
     * </p>
     */
    public void shutdown() {
        if (clusterManagementThread != null) {
            clusterManagementThread.shutdown();

// wait for the clusterManagementThread to finish before
            // shutting down the DB connection pool
            while (clusterManagementThread.isAlive()) {
                try {
                    clusterManagementThread.join();
                } catch (InterruptedException ignore) {
                }
            }
        }

if (misfireHandler != null) misfireHandler.shutdown();
        
try {
            DBConnectionManager.getInstance().shutdown(getDataSource());
        } catch (SQLException sqle) {
            getLog().warn("Database connection shutdown unsuccessful.", sqle);
        }
    }

Henri Yandell - [02/Apr/07 07:53 PM ]
Some of the noise has been fixed with other changes, so we're marking this wontfix as per http://forums.opensymphony.com/thread.jspa?threadID=74635