synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <>
Subject [jira] Created: (SYNAPSE-288) AbstractPollingTransportListener fails to cancel timer on destroy
Date Tue, 06 May 2008 17:46:56 GMT
AbstractPollingTransportListener fails to cancel timer on destroy

                 Key: SYNAPSE-288
             Project: Synapse
          Issue Type: Bug
          Components: Transports
    Affects Versions: NIGHTLY
            Reporter: Andreas Veithen
            Priority: Minor

After AbstractPollingTransportListener#destroy is called, the following exception is triggered:

Exception in thread "PollTimer" java.util.concurrent.RejectedExecutionException
	at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(
	at java.util.concurrent.ThreadPoolExecutor.reject(
	at java.util.concurrent.ThreadPoolExecutor.execute(
	at org.apache.synapse.transport.base.threads.NativeWorkerPool.execute(
	at org.apache.synapse.transport.base.AbstractPollingTransportListener$
	at java.util.TimerThread.mainLoop(

Obviously the timer still tries to schedule a new task after the worker pool has been shut
down. I suspect that the reason is that AbstractTransportListener#stop doesn't call stopListeningForService,
given that AbstractPollingTransportListener cancels the timers there.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message