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 "Deepal Jayasinghe (JIRA)" <ji...@apache.org> on 2007/11/12 17:31:50 UTC

[jira] Resolved: (AXIS2-3203) When I use SMTP as for the communication in the server side it never send the fault

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

Deepal Jayasinghe resolved AXIS2-3203.
--------------------------------------

    Resolution: Fixed

Juts deploy the smtpfault.mar and engage that for the server side.



> When I use SMTP as for the communication in the server side it never send the fault 
> ------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3203
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3203
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>            Reporter: Deepal Jayasinghe
>            Assignee: Deepal Jayasinghe
>            Priority: Blocker
>
> When I use SMTP transport as the server side . It will never send the fault to the client , the problem happen due to following code segment in the MailWorker
> public void run() {
>         AxisEngine engine = new AxisEngine(configContext);
>         // create and initialize a message context
>         try {
>             engine.receive(messageContext);
>         } catch (Exception e) {
>             try {
>                 if (messageContext != null&&!messageContext.isServerSide()) {
>                     MessageContext faultContext =
>                             MessageContextBuilder.createFaultMessageContext(messageContext, e);
>                     engine.sendFault(faultContext);
>                 }
>             } catch (Exception e1) {
>                 // Ignore errors that would possibly happen this catch
>             }
>         }
>     }
> And the funny thing is no matter what the side , when we start SimpleMailListern then the messageContext.isServerSide() is always true.
> However when we start SimpleMaillListern in the client side and when it find a fault then it should not send the fault back to the server. So to maintain that , we need to have a parameter in the axis2.xml and MailWorker has to look for that. So if the value if server then it will send the response else it wont.

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