I tried to run ESB Sample 57 [1] on ESB 4.8.1 and got an error as follows.
"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 went through following mail threads [2] [3] [4] which already
discussed about the same error before. I tried suggestions provided by
[2] and [3] but still getting the same error.
To my knowledge, the reason for this is the incompatibility between
the clustering mechanisms used in ESB 4.8.1 (HazelCast) and the sample
Axis2 server (Apache Tribes).
*Can we cluster axis2 server with Hazalcast or Is there any solution
for this issue?*
[2015-01-12 16:00:09,464] DEBUG - DynamicLoadbalanceEndpoint Couldn't
find the Cookie header to find the session
[2015-01-12 16:00:09,464] ERROR - Axis2LoadBalanceMembershipHandler A
LoadBalanceEventHandler has not been specified in the axis2.xml file
for the domain apache.axis2.application.domain
[2015-01-12 16:00:09,465] WARN - SynapseMessageReceiver Executing
fault handler due to exception encountered
[2015-01-12 16:00:09,466] WARN - FaultHandler ERROR_CODE : 0
[2015-01-12 16:00:09,466] WARN - FaultHandler ERROR_MESSAGE : A
LoadBalanceEventHandler has not been specified in the axis2.xml file
for the domain apache.axis2.application.domain
[2015-01-12 16:00:09,466] 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:411)
at
org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:183)
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:695)
[2015-01-12 16:00:09,467] 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
[2015-01-12 16:00:09,467] WARN - FaultHandler FaultHandler :
org.apache.synapse.mediators.MediatorFaultHandler@4d7d603e
[2015-01-12 16:00:09,467] WARN - MediatorFaultHandler Executing fault
handler mediator : errorHandler
[2015-01-12 16:00:09,467] DEBUG - SequenceMediator Start : Sequence
<errorHandler>
[1].
https://docs.wso2.com/display/ESB481/Sample+57%3A+Dynamic+Load+Balancing+between+Three+Nodes
[2].
http://wso2-oxygen-tank.10903.n7.nabble.com/Dev-Running-ESB-sample-57-td89484.html
[3].
http://wso2-oxygen-tank.10903.n7.nabble.com/Dev-WSO2-WSB-Sample-57-Dynamic-load-balancing-between-3-nodes-Missing-LoadBalanceEventHandler-td89942.html
[4]. http://mail.wso2.org/mailarchive/dev/2014-April/029411.html
--
Vijitha Ekanayake
Software Engineer*, *WSO2, Inc.; http://wso2.com/
Mobile : +94 777 24 73 39 | +94 718 74 44 08
lean.enterprise.middleware
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev