You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Udayanga Wickramasinghe (JIRA)" <ji...@apache.org> on 2011/05/31 07:49:47 UTC

[jira] [Commented] (SYNAPSE-775) Segmentation Fault when Template Endpoint used in loadbalance failover scenario

    [ https://issues.apache.org/jira/browse/SYNAPSE-775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13041441#comment-13041441 ] 

Udayanga Wickramasinghe commented on SYNAPSE-775:
-------------------------------------------------

trace-->
[2011-05-30 12:36:10,805] DEBUG - AddressEndpoint Encountered an error sending to endpoint : annonymous, with error code : 101503, but not a retry disabled error
[2011-05-30 12:36:10,805] DEBUG - SALSessions Removing the session with the session Id c1
[2011-05-30 12:36:10,805] DEBUG - SALoadbalanceEndpoint Start : Session Affinity Load-balance Endpoint endpoint_af491d1c9579294d7ba0e0899e30f8f9eb5ff2054091bd56
[2011-05-30 12:36:10,805] DEBUG - SALSessions Retrieving the endpoint from the session id c1
[2011-05-30 12:36:10,805] DEBUG - SALSessions Session information cannot be found for session id c1
[2011-05-30 12:36:10,806] DEBUG - AlgorithmContext Setting the current EPR as : 1
Segmentation fault 

> Segmentation Fault when Template Endpoint used in loadbalance failover scenario
> -------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-775
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-775
>             Project: Synapse
>          Issue Type: Bug
>          Components: Core
>         Environment: jdk1.6
>            Reporter: Udayanga Wickramasinghe
>
> 1. create Endpoint Template
> 2. create loadbalance failover config
> 3. use tempalte endpoints to point to the template
> 4. run load balance scenario with all backends down
> ie:- sample config
> <definitions xmlns="http://ws.apache.org/ns/synapse">
>     <proxy name="LBProxy" transports="https http" startOnLoad="true">
>         <target faultSequence="errorHandler">
>             <inSequence>
>                 <send>
>                     <endpoint>
>                         <session type="simpleClientSession"/>
>                         <loadbalance algorithm="org.apache.synapse.endpoints.algorithms.RoundRobin">
>                             <endpoint name="templ_ep1" template="endpoint_template" uri="http://localhost:9001/services/LBService1">
> 				<parameter name="suspend_duration" value="50"/>
>                             </endpoint>
> 			    <endpoint name="templ_ep2" template="endpoint_template" uri="http://localhost:9002/services/LBService1">
> 				<parameter name="suspend_duration" value="20"/>
>                             </endpoint>
> 			    <endpoint name="templ_ep3" template="endpoint_template" uri="http://localhost:9003/services/LBService1">
> 				<parameter name="suspend_duration" value="200"/>
>                             </endpoint>
>                         </loadbalance>
>                     </endpoint>
>                 </send>
>                 <drop/>
>             </inSequence>
>             <outSequence>
>                 <send/>
>             </outSequence>
>         </target>
>         <publishWSDL uri="file:repository/samples/resources/proxy/sample_proxy_2.wsdl"/>
>     </proxy>
>     <sequence name="errorHandler">
>         <makefault>
>             <code value="tns:Receiver" xmlns:tns="http://www.w3.org/2003/05/soap-envelope"/>
>             <reason value="COULDN'T SEND THE MESSAGE TO THE SERVER."/>
>         </makefault>
>         <send/>
>     </sequence>
> 	
>     <template name="endpoint_template">
> 	    <parameter name="suspend_duration"/>
> 	    <endpoint name="$name">
> 		<address uri="$uri">
> 		    <enableAddressing/>
>                     <suspendDurationOnFailure>$suspend_duration</suspendDurationOnFailure>
> 		</address>
> 	    </endpoint>
>     </template>
> </definitions>

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

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