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 "Eurig Jones (JIRA)" <ji...@apache.org> on 2009/02/04 04:24:00 UTC

[jira] Created: (AXIS2-4232) AxisCallback.onComplete does not get called on a non-blocking call

AxisCallback.onComplete does not get called on a non-blocking call
------------------------------------------------------------------

                 Key: AXIS2-4232
                 URL: https://issues.apache.org/jira/browse/AXIS2-4232
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: kernel
    Affects Versions: 1.4.1
            Reporter: Eurig Jones
            Priority: Critical


Hi,

I'm executing ServiceClient.sendReceiveNonBlocking(org.apache.axiom.om.OMElement elem, AxisCallback callback) for an asynchronous request.

The documentation states that the onComplete() method in the passed AxisCallback instance  "is called at the end of the MEP no matter what happens, quite like a finally block." 

This is not the case. onComplete() does not get executed. If onComplete doesn't get called, what should I be relying upon to know that a call has finished execution?

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


[jira] Commented: (AXIS2-4232) AxisCallback.onComplete does not get called on a non-blocking call

Posted by "Lien Tran (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12702473#action_12702473 ] 

Lien Tran commented on AXIS2-4232:
----------------------------------

This was supposedly fixed in AXIS2-3265 but when I looked at the code, it was not fixed.

Here's what I think the fix should look like:

The finally block of the OutInAxisOperation.NonBlockingInvocationWorker#run method should be updated to call axisCallback.onComplete() to signal that the complete was done. 


            } finally {
                if (callback != null) {
                    callback.setComplete(true);
                } else {
                    axisCallback.onComplete();
                }
            }

> AxisCallback.onComplete does not get called on a non-blocking call
> ------------------------------------------------------------------
>
>                 Key: AXIS2-4232
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4232
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.4.1
>            Reporter: Eurig Jones
>            Priority: Critical
>
> Hi,
> I'm executing ServiceClient.sendReceiveNonBlocking(org.apache.axiom.om.OMElement elem, AxisCallback callback) for an asynchronous request.
> The documentation states that the onComplete() method in the passed AxisCallback instance  "is called at the end of the MEP no matter what happens, quite like a finally block." 
> This is not the case. onComplete() does not get executed. If onComplete doesn't get called, what should I be relying upon to know that a call has finished execution?

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


[jira] Commented: (AXIS2-4232) AxisCallback.onComplete does not get called on a non-blocking call

Posted by "Lien Tran (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12702477#action_12702477 ] 

Lien Tran commented on AXIS2-4232:
----------------------------------

Actually, it was fixed  but did not show up in 1.4.1

Revision 656721 - (view) (download) (annotate) - [select for diffs]
Modified Thu May 15 16:24:57 2008 UTC (11 months, 1 week ago) by barrettj 

> AxisCallback.onComplete does not get called on a non-blocking call
> ------------------------------------------------------------------
>
>                 Key: AXIS2-4232
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4232
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.4.1
>            Reporter: Eurig Jones
>            Priority: Critical
>
> Hi,
> I'm executing ServiceClient.sendReceiveNonBlocking(org.apache.axiom.om.OMElement elem, AxisCallback callback) for an asynchronous request.
> The documentation states that the onComplete() method in the passed AxisCallback instance  "is called at the end of the MEP no matter what happens, quite like a finally block." 
> This is not the case. onComplete() does not get executed. If onComplete doesn't get called, what should I be relying upon to know that a call has finished execution?

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