You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Paul Anderson (JIRA)" <ji...@apache.org> on 2007/10/11 17:40:51 UTC

[jira] Created: (SYNAPSE-145) makefault does not change the http response code of the out message to http code 500 (it keeps 202)

makefault does not change the http response code of the out message to http code 500 (it keeps 202)
---------------------------------------------------------------------------------------------------

                 Key: SYNAPSE-145
                 URL: https://issues.apache.org/jira/browse/SYNAPSE-145
             Project: Synapse
          Issue Type: Bug
         Environment: JDK6 on RHEL3
            Reporter: Paul Anderson


<sequence name="myfault">
          <makefault>
            <code value="tns:Receiver" xmlns:tns="http://www.w3.org/2003/05/soap-envelope"/>
            <reason value="Authorization failed!"/>
          </makefault>
<send/>
</sequence>
I think this should return http code 500 with the SOAP fault, to be WS-I compliant. Can I set this http code manually?

Also, how do I say 'don't try to continue further message processing onwards, BUT do respond with the fault out message?
The <send/> returns the fault to the client, but first it tries to send the 'in' message onward, and it has no explicit destination so I get:
  2614 [HttpServerWorker-1] ERROR Axis2Sender (Axis2Sender.java:104) - Unexpected error during Sending message onwards
org.apache.axis2.AxisFault: Address information does not exist in the Endpoint Reference (EPR).The system cannot infer the transport mechanism.
        at org.apache.axis2.description.ClientUtils.inferOutTransport(ClientUtils.java:62)
        at org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.execute(DynamicAxisOperation.java:119)
        at org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(Axis2FlexibleMEPClient.java:233)
        at org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:50)
        at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:112)
        at org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:89)
        at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:49)
        at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:104)
        at org.apache.synapse.mediators.MediatorFaultHandler.onFault(MediatorFaultHandler.java:65)
        at org.apache.synapse.FaultHandler.handleFault(FaultHandler.java:62)
        at org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:76)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:144)
        at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:279)
        at org.apache.axis2.transport.nhttp.ServerWorker.processPost(ServerWorker.java:207)
        at org.apache.axis2.transport.nhttp.ServerWorker.run(ServerWorker.java:171)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
        at java.lang.Thread.run(Thread.java:619)


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


[jira] Closed: (SYNAPSE-145) makefault does not change the http response code of the out message to http code 500 (it keeps 202)

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

Paul Anderson closed SYNAPSE-145.
---------------------------------

    Resolution: Invalid

Configuring an immediate RESPONSE fixes both problems - Synapse responds immediately without trying to send message onward, and the http code returned with the fault is 500.

<sequence name="myfault">
          <makefault>
            <code value="tns:Receiver" xmlns:tns="http://www.w3.org/2003/05/soap-envelope"/>
            <reason value="Authorization failed!"/>
          </makefault>
          <log level="full"/>
          <property name="RESPONSE" value="true" />
          <send/>
</sequence>


> makefault does not change the http response code of the out message to http code 500 (it keeps 202)
> ---------------------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-145
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-145
>             Project: Synapse
>          Issue Type: Bug
>         Environment: JDK6 on RHEL3
>            Reporter: Paul Anderson
>            Priority: Minor
>
> <sequence name="myfault">
>           <makefault>
>             <code value="tns:Receiver" xmlns:tns="http://www.w3.org/2003/05/soap-envelope"/>
>             <reason value="Authorization failed!"/>
>           </makefault>
> <send/>
> </sequence>
> I think this should return http code 500 with the SOAP fault, to be WS-I compliant. Can I set this http code manually?
> Also, how do I say 'don't try to continue further message processing onwards, BUT do respond with the fault out message?
> The <send/> returns the fault to the client, but first it tries to send the 'in' message onward, and it has no explicit destination so I get:
>   2614 [HttpServerWorker-1] ERROR Axis2Sender (Axis2Sender.java:104) - Unexpected error during Sending message onwards
> org.apache.axis2.AxisFault: Address information does not exist in the Endpoint Reference (EPR).The system cannot infer the transport mechanism.
>         at org.apache.axis2.description.ClientUtils.inferOutTransport(ClientUtils.java:62)
>         at org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.execute(DynamicAxisOperation.java:119)
>         at org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(Axis2FlexibleMEPClient.java:233)
>         at org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:50)
>         at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:112)
>         at org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:89)
>         at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:49)
>         at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:104)
>         at org.apache.synapse.mediators.MediatorFaultHandler.onFault(MediatorFaultHandler.java:65)
>         at org.apache.synapse.FaultHandler.handleFault(FaultHandler.java:62)
>         at org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:76)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:144)
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:279)
>         at org.apache.axis2.transport.nhttp.ServerWorker.processPost(ServerWorker.java:207)
>         at org.apache.axis2.transport.nhttp.ServerWorker.run(ServerWorker.java:171)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
>         at java.lang.Thread.run(Thread.java:619)

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


[jira] Updated: (SYNAPSE-145) makefault does not change the http response code of the out message to http code 500 (it keeps 202)

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

Paul Anderson updated SYNAPSE-145:
----------------------------------

    Priority: Minor  (was: Major)

> makefault does not change the http response code of the out message to http code 500 (it keeps 202)
> ---------------------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-145
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-145
>             Project: Synapse
>          Issue Type: Bug
>         Environment: JDK6 on RHEL3
>            Reporter: Paul Anderson
>            Priority: Minor
>
> <sequence name="myfault">
>           <makefault>
>             <code value="tns:Receiver" xmlns:tns="http://www.w3.org/2003/05/soap-envelope"/>
>             <reason value="Authorization failed!"/>
>           </makefault>
> <send/>
> </sequence>
> I think this should return http code 500 with the SOAP fault, to be WS-I compliant. Can I set this http code manually?
> Also, how do I say 'don't try to continue further message processing onwards, BUT do respond with the fault out message?
> The <send/> returns the fault to the client, but first it tries to send the 'in' message onward, and it has no explicit destination so I get:
>   2614 [HttpServerWorker-1] ERROR Axis2Sender (Axis2Sender.java:104) - Unexpected error during Sending message onwards
> org.apache.axis2.AxisFault: Address information does not exist in the Endpoint Reference (EPR).The system cannot infer the transport mechanism.
>         at org.apache.axis2.description.ClientUtils.inferOutTransport(ClientUtils.java:62)
>         at org.apache.synapse.core.axis2.DynamicAxisOperation$DynamicOperationClient.execute(DynamicAxisOperation.java:119)
>         at org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(Axis2FlexibleMEPClient.java:233)
>         at org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:50)
>         at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:112)
>         at org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:89)
>         at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:49)
>         at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:104)
>         at org.apache.synapse.mediators.MediatorFaultHandler.onFault(MediatorFaultHandler.java:65)
>         at org.apache.synapse.FaultHandler.handleFault(FaultHandler.java:62)
>         at org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:76)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:144)
>         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:279)
>         at org.apache.axis2.transport.nhttp.ServerWorker.processPost(ServerWorker.java:207)
>         at org.apache.axis2.transport.nhttp.ServerWorker.run(ServerWorker.java:171)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
>         at java.lang.Thread.run(Thread.java:619)

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