You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Nick Gallardo (JIRA)" <ji...@apache.org> on 2007/02/14 03:16:05 UTC

[jira] Resolved: (AXIS2-2170) Error in handling async response when executor service is shutdown

     [ https://issues.apache.org/jira/browse/AXIS2-2170?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nick Gallardo resolved AXIS2-2170.
----------------------------------

    Resolution: Fixed

Committed the fix in revision 507358.

> Error in handling async response when executor service is shutdown
> ------------------------------------------------------------------
>
>                 Key: AXIS2-2170
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2170
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: jaxws
>            Reporter: Ann Robinson
>         Assigned To: Nick Gallardo
>         Attachments: patch.txt
>
>
> When the ExecutorService associated with a service is shutdownNow(), the ExecutorService will attempt to stop all actively executing tasks, halt the processing of waiting tasks, and refuse to accept new tasks.  However, a client is not getting the appropriate notification that asynchronous requests/responses can not proceed.
> The solution needs to cover:
> (a) When the asynchronous response is received in the CallbackFuture, the Executor is normally given the task to execute.  If the Executor throws an exception, then the task needs to be cancelled.  Since the Executor won't process the response task, the callback handler doesn't get the response or an error.  But, cancelling the task will let the client check the Future object and will get a cancellation exception.
> (b) When the client submits a request with an asynchronous response and the ExecutorService is shutdown, then JAXWS needs to refuse the request and throw an exception back to the client.
>  

-- 
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org