Null pointer during quartz1.5.0 shutdown(Jboss3.2.3)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Null pointer during quartz1.5.0 shutdown(Jboss3.2.3)

popianovka
Hi

I am getting Nullpointer exception while quartz1.5.0 shutdown, I am using Jboss3.2.3 and Windows XP.


2005-11-28 13:11:35,017 INFO  [work19_dev004_QuartzSchedulerThread in org.jboss.resource.connectionmanager.NoTxConnectionManager] Throwable from unregisterConnection
java.lang.NullPointerException
        at org.jboss.resource.connectionmanager.NoTxConnectionManager$NoTxConnectionEventListener.connectionClosed(NoTxConnectionManager.java:93)
        at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.closeHandle(BaseWrapperManagedConnection.java:296)
        at org.jboss.resource.adapter.jdbc.WrappedConnection.close(WrappedConnection.java:117)
        at org.quartz.impl.jdbcjobstore.JobStoreSupport.closeConnection(JobStoreSupport.java:2245)
        at org.quartz.impl.jdbcjobstore.JobStoreCMT.releaseAcquiredTrigger(JobStoreCMT.java:1191)
        at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:282)


Following are my quartz.properties

#==========================================================
# Configure Main Scheduler Properties
#==========================================================
org.quartz.scheduler.instanceName = Scheduler1
org.quartz.scheduler.instanceId = Instance_1
org.quartz.scheduler.rmi.export = false
org.quartz.scheduler.rmi.proxy = false
org.quartz.scheduler.xaTransacted =true
#==========================================================# Configure ThreadPool
#==========================================================
org.quartz.threadPool.class = org.quartz.simpl.SimpleThreadPool
org.quartz.threadPool.threadCount = 5
org.quartz.threadPool.threadPriority = 4
#==========================================================# Configure JobStore
#==========================================================
org.quartz.jobStore.class = org.quartz.impl.jdbcjobstore.JobStoreCMT
org.quartz.jobStore.driverDelegateClass = org.quartz.impl.jdbcjobstore.oracle.OracleDelegate
org.quartz.jobStore.useProperties = false
org.quartz.jobStore.dataSource = QuartzDS
org.quartz.jobStore.tablePrefix = QRTZ_
org.quartz.jobStore.nonManagedTXDataSource = QUARTZ_NO_TX
#==========================================================# Configure Datasources
#==========================================================
org.quartz.dataSource.QuartzDS.jndiURL = java:/jdbc/OracleDS
org.quartz.dataSource.QUARTZ_NO_TX.jndiURL = java:/jdbc/OracleDSReadOnly

[u][b]Following are my observations[/b][/u]

I have seen that while  Jboss3.2.3 shutdown following methods are called

package org.quartz.core
[b]QuartzScheduler.java[/b]
[b]public void shutdown(boolean waitForJobsToComplete)[/b]
{
       
        if(closed == true)
            return;
       
        getLog().info(
                "Scheduler " + resources.getUniqueIdentifier()
                        + " shutting down.");
        standby();

        closed = true;

        schedThread.halt();

        resources.getThreadPool().shutdown(waitForJobsToComplete);

        if (waitForJobsToComplete) {
            while (jobMgr.getNumJobsCurrentlyExecuting() > 0)
                try {
                    Thread.sleep(100);
                } catch (Exception ignore) {
                }
        }

[b]        resources.getJobStore().shutdown();[/b]
        notifySchedulerListenersShutdown();

        shutdownPlugins();

        SchedulerRepository.getInstance().remove(resources.getName());

        holdToPreventGC.clear();

        try {
            unBind();
        } catch (RemoteException re) {
        }

        getLog().info(
                "Scheduler " + resources.getUniqueIdentifier()
                        + " shutdown complete.");
    }


in the [b]JobStoreCMT.java[/b]

public void shutdown()
{

        super.shutdown();
       
        try {
            DBConnectionManager.getInstance().shutdown(getNonManagedTXDataSource());
        } catch (SQLException sqle) {
            getLog().warn("Database connection shutdown unsuccessful.", sqle);
        }
}

it delete both datasources thereafter  following methods is called by [b]QuartzSchedulerThread[/b][b]org.quartz.impl.jdbcjobstore.JobStoreCMT.releaseAcquiredTrigger[/b] is calling..

I would like to know that it is  a bug in Quartz1.5.0  or something i missed

---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=10062&messageID=21296#21296


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]