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 "Roshan Punnoose (JIRA)" <ji...@apache.org> on 2006/09/27 18:17:50 UTC

[jira] Created: (AXIS2-1248) Callback connect error

Callback connect error
----------------------

                 Key: AXIS2-1248
                 URL: http://issues.apache.org/jira/browse/AXIS2-1248
             Project: Apache Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: core
         Environment: Axis 2 nightly, Java 1.4
            Reporter: Roshan Punnoose


Hi,

 

If I use the ServiceClient to connect to my web service, but the web service endpoint is not up, I should get a COnnectionException and my callback should complete. However, because the TransportNonBlockingInvocationWorker does not update the callback to complete, it will just log the message during its thread (which is underneath). Any ideas?

 

 

public void run() {

            try {

                while (!done) {

                    sender.invoke(msgctx);

                    done = true;

                }

            } catch (Exception e) {

                log.info(e.getMessage());

            }

        }

    }

}


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Resolved: (AXIS2-1248) Callback connect error

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

Deepal Jayasinghe resolved AXIS2-1248.
--------------------------------------

    Resolution: Fixed

issues is fixed now , and the code look like;

 try {
                sender.invoke(msgctx);
            } catch (Exception e) {
                log.info(msgctx.getLogIDString()+" "+e.getMessage());
                if (msgctx.getProperty(MessageContext.DISABLE_ASYNC_CALLBACK_ON_TRANSPORT_ERROR) == null)
                {
                    AxisOperation axisOperation = msgctx.getAxisOperation();
                    if (axisOperation != null)
                    {
                        MessageReceiver msgReceiver = axisOperation.getMessageReceiver();
                        if ((msgReceiver != null) && (msgReceiver instanceof CallbackReceiver))
                        {
                            Callback callback = ((CallbackReceiver)msgReceiver).lookupCallback(msgctx.getMessageID());
                            if (callback != null)
                            {
                                callback.onError(e);
                            }
                        }
                    }
                }
            }

> Callback connect error
> ----------------------
>
>                 Key: AXIS2-1248
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1248
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>         Environment: Axis 2 nightly, Java 1.4
>            Reporter: Roshan Punnoose
>         Assigned To: Deepal Jayasinghe
>
> Hi,
>  
> If I use the ServiceClient to connect to my web service, but the web service endpoint is not up, I should get a COnnectionException and my callback should complete. However, because the TransportNonBlockingInvocationWorker does not update the callback to complete, it will just log the message during its thread (which is underneath). Any ideas?
>  
>  
> public void run() {
>             try {
>                 while (!done) {
>                     sender.invoke(msgctx);
>                     done = true;
>                 }
>             } catch (Exception e) {
>                 log.info(e.getMessage());
>             }
>         }
>     }
> }

-- 
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-1248) Callback connect error

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

Davanum Srinivas updated AXIS2-1248:
------------------------------------

    Assignee: Deepal Jayasinghe

> Callback connect error
> ----------------------
>
>                 Key: AXIS2-1248
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1248
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>         Environment: Axis 2 nightly, Java 1.4
>            Reporter: Roshan Punnoose
>         Assigned To: Deepal Jayasinghe
>
> Hi,
>  
> If I use the ServiceClient to connect to my web service, but the web service endpoint is not up, I should get a COnnectionException and my callback should complete. However, because the TransportNonBlockingInvocationWorker does not update the callback to complete, it will just log the message during its thread (which is underneath). Any ideas?
>  
>  
> public void run() {
>             try {
>                 while (!done) {
>                     sender.invoke(msgctx);
>                     done = true;
>                 }
>             } catch (Exception e) {
>                 log.info(e.getMessage());
>             }
>         }
>     }
> }

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