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 "Ann Robinson (JIRA)" <ji...@apache.org> on 2007/02/13 22:54:06 UTC

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

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


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


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

Posted by "Nick Gallardo (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2170?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Resolution: Fixed

Updated WSDL has been committed.

Thanks Ann.

> 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, patch_update.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


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

Posted by "Ann Robinson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2170?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ann Robinson updated AXIS2-2170:
--------------------------------

    Attachment: patch_update.txt

The updated patch file only contains the file that did not get committed.   It was created for AXIS2 revision 507947.



> 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, patch_update.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


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

Posted by "Nick Gallardo (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2170?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nick Gallardo reassigned AXIS2-2170:
------------------------------------

    Assignee: Nick Gallardo

> 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


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

Posted by "Ann Robinson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2170?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ann Robinson reopened AXIS2-2170:
---------------------------------


One of the files was not committed.  An updated patch for the missing file will be provided.


> 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


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

Posted by "Ann Robinson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2170?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ann Robinson updated AXIS2-2170:
--------------------------------

    Attachment: patch.txt

The patch was created on AXIS2 revision 507085.

The patch includes an update to the message properties file, source updates to JAXWS, and test updates to the JAXWS parallel async test.

NOTE to committers:  The parallel async test case has been temporarily disabled in the top-level JAXWSTest.java file because of intermittent problems on Linux.  When you commit the patch, in order to run the test case on Windows, you will need to temporarily modify the modules/jaxws/test/org/apache/axis2/jaxws/framework/JAXWSTest.java
file and remove the comment on the line

    suite.addTestSuite(ParallelAsyncTests.class);



> 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
>         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


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

Posted by "Nick Gallardo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12473472 ] 

Nick Gallardo commented on AXIS2-2170:
--------------------------------------

Sorry Ann...  that was my fault.  

Thanks for the updated patch.

> 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, patch_update.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


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

Posted by "Nick Gallardo (JIRA)" <ji...@apache.org>.
     [ 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