Hi, I'm getting the same error. In the sample documentation, it is mentioned : "*Make sure that the "applicationDomain" of the membershipHandler is the same as the domain name specified in the axis2.xml files of the Axis2 servers*". Therefore using different agents is the problem. Thank You!
On Mon, Apr 7, 2014 at 12:04 PM, Gayashan Amarasinghe <[email protected]>wrote: > Hi all, > > I was running ESB Sample 57 [1] on ESB 4.8.0 and got the stack trace > below. I referred two mailing threads [2] [3] which discussed about the > same error before. Even after configuring the domain as suggested i still > get the error "ERROR_EXCEPTION : org.apache.synapse.SynapseException: A > LoadBalanceEventHandler has not been specified in the axis2.xml file for > the domain apache.axis2.application.domain". > > I was able to run the sample on the ESB 4.7.0 with the > "org.apache.axis2.clustering.tribes.TribesClusteringAgent" enabled. But was > unable to run the sample on ESB 4.8.0 with the > "org.wso2.carbon.core.clustering.hazelcast.HazelcastClusteringAgent". As i > understood from [3] this is due to the fact that axis2Server uses > TribesClusteringAgent while the ESB 4.8.0 uses the HazelcastClusteringAgent. > > Is there any workaround/fix for this issue? > > Stack trace on ESB 4.8.0 > > > [2014-04-07 11:46:23,149] DEBUG - SynapseMessageReceiver Synapse received > a new message for message mediation... > [2014-04-07 11:46:23,150] DEBUG - SynapseMessageReceiver Received To: > /services/LBService1 > [2014-04-07 11:46:23,150] DEBUG - SynapseMessageReceiver SOAPAction: > urn:sampleOperation > [2014-04-07 11:46:23,150] DEBUG - SynapseMessageReceiver WSA-Action: > urn:sampleOperation > [2014-04-07 11:46:23,150] DEBUG - Axis2SynapseEnvironment Injecting > MessageContext > [2014-04-07 11:46:23,150] DEBUG - Axis2SynapseEnvironment Using Main > Sequence for injected message > [2014-04-07 11:46:23,151] DEBUG - SequenceMediator Start : Sequence <main> > [2014-04-07 11:46:23,151] DEBUG - SequenceMediator Setting the onError > handler : errorHandler for the sequence : main > [2014-04-07 11:46:23,151] DEBUG - SequenceMediator Sequence > <SequenceMediator> :: mediate() > [2014-04-07 11:46:23,151] DEBUG - SequenceMediator Mediation started from > mediator position : 0 > [2014-04-07 11:46:23,151] DEBUG - InMediator Start : In mediator > [2014-04-07 11:46:23,151] DEBUG - InMediator Current message is incoming - > executing child mediators > [2014-04-07 11:46:23,151] DEBUG - InMediator Sequence <InMediator> :: > mediate() > [2014-04-07 11:46:23,152] DEBUG - InMediator Mediation started from > mediator position : 0 > [2014-04-07 11:46:23,152] DEBUG - SendMediator Start : Send mediator > [2014-04-07 11:46:23,152] DEBUG - DynamicLoadbalanceEndpoint Couldn't find > the Cookie header to find the session > [2014-04-07 11:46:23,152] ERROR - Axis2LoadBalanceMembershipHandler A > LoadBalanceEventHandler has not been specified in the axis2.xml file for > the domain apache.axis2.application.domain > [2014-04-07 11:46:23,152] WARN - SynapseMessageReceiver Executing fault > handler due to exception encountered > [2014-04-07 11:46:23,152] WARN - FaultHandler ERROR_CODE : 0 > [2014-04-07 11:46:23,152] WARN - FaultHandler ERROR_MESSAGE : A > LoadBalanceEventHandler has not been specified in the axis2.xml file for > the domain apache.axis2.application.domain > [2014-04-07 11:46:23,153] WARN - FaultHandler ERROR_DETAIL : > org.apache.synapse.SynapseException: A LoadBalanceEventHandler has not been > specified in the axis2.xml file for the domain > apache.axis2.application.domain > at > org.apache.synapse.core.axis2.Axis2LoadBalanceMembershipHandler.setConfigurationContext(Axis2LoadBalanceMembershipHandler.java:77) > at > org.apache.synapse.endpoints.DynamicLoadbalanceEndpoint.send(DynamicLoadbalanceEndpoint.java:115) > at > org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:97) > at > org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77) > at > org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47) > at > org.apache.synapse.mediators.filters.InMediator.mediate(InMediator.java:61) > at > org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:77) > at > org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:47) > at > org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:131) > at > org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:228) > at > org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:83) > at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) > at > org.apache.synapse.transport.passthru.ServerWorker.processEntityEnclosingRequest(ServerWorker.java:404) > at > org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:184) > at > org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172) > at > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) > at java.lang.Thread.run(Thread.java:662) > > [2014-04-07 11:46:23,153] WARN - FaultHandler ERROR_EXCEPTION : > org.apache.synapse.SynapseException: A LoadBalanceEventHandler has not been > specified in the axis2.xml file for the domain > apache.axis2.application.domain > [2014-04-07 11:46:23,153] WARN - FaultHandler FaultHandler : > org.apache.synapse.mediators.MediatorFaultHandler@5017d906 > [2014-04-07 11:46:23,153] WARN - MediatorFaultHandler Executing fault > handler mediator : errorHandler > [2014-04-07 11:46:23,153] DEBUG - SequenceMediator Start : Sequence > <errorHandler> > [2014-04-07 11:46:23,153] DEBUG - SequenceMediator Sequence > <SequenceMediator> :: mediate() > [2014-04-07 11:46:23,153] DEBUG - SequenceMediator Mediation started from > mediator position : 0 > [2014-04-07 11:46:23,161] DEBUG - FaultMediator Start : Fault mediator > [2014-04-07 11:46:23,161] DEBUG - FaultMediator Creating a SOAP 1.1 fault > [2014-04-07 11:46:23,164] DEBUG - FaultMediator End : Fault mediator > [2014-04-07 11:46:23,164] DEBUG - SendMediator Start : Send mediator > [2014-04-07 11:46:23,164] DEBUG - SendMediator Sending response message > using implicit message properties.. > Sending To: http://www.w3.org/2005/08/addressing/anonymous > SOAPAction: urn:sampleOperation > [2014-04-07 11:46:23,169] DEBUG - SendMediator End : Send mediator > [2014-04-07 11:46:23,170] DEBUG - SequenceMediator End : Sequence > <errorHandler> > > > [1] > > https://docs.wso2.org/display/ESB481/Sample+57%3A+Dynamic+load+balancing+between+3+nodes > [2] [Dev] WSO2 WSB Sample 57: Dynamic load balancing between 3 nodes - > Missing LoadBalanceEventHandler - > http://wso2-oxygen-tank.10903.n7.nabble.com/Dev-WSO2-WSB-Sample-57-Dynamic-load-balancing-between-3-nodes-Missing-LoadBalanceEventHandler-td89942.html > [3] [Dev] Running ESB sample 57 - > http://wso2-oxygen-tank.10903.n7.nabble.com/Dev-Running-ESB-sample-57-td89484.html > > > > Thanks. > -Gayashan > > -- > > Gayashan Amarasinghe > Software Engineer, WSO2 Inc. > Mobile: +94718314517 > Blog: gayashan-a.blogspot.com > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > >
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
