Hi Imesh,

That " "wso2.loadbalancer"" system property use
by org.wso2.carbon.transport.nhttp component's
PassThroughNHttpGetProcessor , As
I understood it skips tenant loading if  "wso2.loadbalancer" property set
to true

Thanks,
Melan


On Thu, Jan 23, 2014 at 5:52 PM, Imesh Gunaratne <[email protected]> wrote:

> Hi Melan,
>
> What does the above system property do, could you please explain it
> further?
>
> Thanks
> Imesh
>
>
> On Wed, Jan 22, 2014 at 6:16 AM, Melan Nimesh <[email protected]> wrote:
>
>> Hi,
>>
>> I was able to get rid of above "Tenant bar.org does not exist" error by
>> defining "*wso2.loadbalancer*" system property to true
>>
>> Thanks,
>> Melan
>>
>>
>> On Wed, Jan 22, 2014 at 12:31 PM, Kishanthan Thangarajah <
>> [email protected]> wrote:
>>
>>> Is this at LB side? If so, why it is trying to create tenant
>>> configuration context? That is where we need to dig I think.
>>>
>>> On Tue, Jan 21, 2014 at 5:37 PM, Melan Nimesh <[email protected]>
>>> wrote:
>>> > Hi Devs,
>>> >
>>> > I debugged through the code of TenantAwareLoadBalanceEndpoint and
>>> > ResponseInterceptor classes and seems cluster_id property not setting
>>> to and
>>> > getting from an identical synapse-messagecontext object instance,
>>> >
>>> > and when I created  a tenant using curl cmd, it displays following
>>>  success
>>> > message on the log
>>> >
>>> > TID: [0] [LB] [2014-01-21 11:43:37,054]  INFO
>>> >
>>> {org.apache.stratos.messaging.message.processor.tenant.TenantCreatedMessageProcessor}
>>> > -  Tenant created: [tenant-id] 1 [tenant-domain] bar.org
>>> >
>>> > however when trying to access to a deployed web service (eg. use tryit
>>> tool
>>> > for echo service/ getting WSDL of ), it fails with following message
>>> >
>>> > TID: [0] [LB] [2014-01-21 11:47:58,376] ERROR
>>> > {org.apache.axis2.transport.base.threads.NativeWorkerPool} -  Uncaught
>>> > exception
>>> > java.lang.RuntimeException: Cannot create tenant ConfigurationContext
>>> for
>>> > tenant bar.org
>>> > at
>>> >
>>> org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.getTenantConfigurationContext(TenantAxisUtils.java:137)
>>> > at
>>> >
>>> org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.getTenantAxisConfiguration(TenantAxisUtils.java:104)
>>> > at
>>> >
>>> org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.getAxisService(TenantAxisUtils.java:195)
>>> > at
>>> >
>>> org.wso2.carbon.transport.nhttp.api.PassThroughNHttpGetProcessor.process(PassThroughNHttpGetProcessor.java:292)
>>> > at
>>> >
>>> org.apache.synapse.transport.passthru.ServerWorker.run(ServerWorker.java:155)
>>> > at
>>> >
>>> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
>>> > at
>>> >
>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>>> > at
>>> >
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>>> > at java.lang.Thread.run(Thread.java:662)
>>> > Caused by: java.lang.Exception: Tenant bar.org does not exist
>>> > at
>>> >
>>> org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.createTenantConfigurationContext(TenantAxisUtils.java:281)
>>> > at
>>> >
>>> org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.getTenantConfigurationContext(TenantAxisUtils.java:135)
>>> > ... 8 more
>>> >
>>> > am I missed something? do I need to do any additional configurations?
>>> >
>>> > Thanks,
>>> > Melan
>>> >
>>> >
>>> >
>>> > On Tue, Jan 21, 2014 at 12:36 PM, Melan Nimesh <[email protected]>
>>> wrote:
>>> >>
>>> >> Hi Nirmal,
>>> >>
>>> >> Yes, in LB logs, I noticed that exception only, however when
>>> accessing to
>>> >> multiple-tenant cartridge instances "Active application instances not
>>> found"
>>> >> on browser intermediately.
>>> >>
>>> >> Thank,
>>> >> Melan
>>> >>
>>> >>
>>> >> On Tue, Jan 21, 2014 at 12:12 PM, Nirmal Fernando <
>>> [email protected]>
>>> >> wrote:
>>> >>>
>>> >>> Hi Melan,
>>> >>>
>>> >>> Cluster_id seems to be not set in the message context. Is this the
>>> only
>>> >>> exception you see?
>>> >>>
>>> >>>
>>> >>> On Tue, Jan 21, 2014 at 11:45 AM, Udara Liyanage <[email protected]>
>>> wrote:
>>> >>>>
>>> >>>> When a response is received at LB, it tries to decrement the
>>> request in
>>> >>>> flight count. There seems to be something wrong at that place.
>>> >>>>
>>> >>>> Touched, not typed. Erroneous words are a feature, not a typo.
>>> >>>>
>>> >>>> On Jan 20, 2014 3:00 PM, "Melan Nimesh" <[email protected]>
>>> wrote:
>>> >>>>>
>>> >>>>> Hi Devs,
>>> >>>>>
>>> >>>>> I was able to setup LB to access multiple-tenant cartridge
>>> instances,
>>> >>>>> however I am continuously getting following [1] error message on
>>> LB side,
>>> >>>>> and [2] on Autoscaler side as well
>>> >>>>>
>>> >>>>> any idea?
>>> >>>>>
>>> >>>>> [1]
>>> >>>>> TID: [0] [LB] [2014-01-20 09:06:47,399]  INFO
>>> >>>>> {org.apache.synapse.core.axis2.TimeoutHandler} -  This engine will
>>> expire
>>> >>>>> all callbacks after : 86400 seconds, irrespective of the timeout
>>> action,
>>> >>>>> after the specified or optional timeout
>>> >>>>> TID: [0] [LB] [2014-01-20 09:06:47,902] ERROR
>>> >>>>> {org.apache.stratos.load.balancer.mediators.ResponseInterceptor} -
>>>  Could
>>> >>>>> not decrement in-flight request count
>>> >>>>> java.lang.RuntimeException: Cluster id not found in message context
>>> >>>>> at
>>> >>>>>
>>> org.apache.stratos.load.balancer.mediators.ResponseInterceptor.mediate(ResponseInterceptor.java:41)
>>> >>>>> at
>>> >>>>>
>>> org.apache.synapse.mediators.ext.ClassMediator.mediate(ClassMediator.java:78)
>>> >>>>> 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.OutMediator.mediate(OutMediator.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.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:486)
>>> >>>>> at
>>> >>>>>
>>> org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:170)
>>> >>>>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
>>> >>>>> at
>>> >>>>>
>>> org.apache.synapse.transport.passthru.ClientWorker.run(ClientWorker.java:225)
>>> >>>>> at
>>> >>>>>
>>> org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
>>> >>>>> at
>>> >>>>>
>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>>> >>>>> at
>>> >>>>>
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>>> >>>>> at java.lang.Thread.run(Thread.java:662)
>>> >>>>>
>>> >>>>> [2] TID: [0] [Autoscaler] [2014-01-20 09:22:09,318] ERROR
>>> >>>>>
>>> {org.apache.stratos.messaging.message.receiver.health.stat.HealthStatEventMessageDelegator}
>>> >>>>> -  Error occurred while extracting message
>>> >>>>>
>>> {org.apache.stratos.messaging.message.receiver.health.stat.HealthStatEventMessageDelegator}
>>> >>>>>
>>> >>>>> Thanks,
>>> >>>>> Melan
>>> >>>>>
>>> >>>>>
>>> >>>>> --
>>> >>>>> Melan Nimesh
>>> >>>
>>> >>>
>>> >>>
>>> >>>
>>> >>> --
>>> >>> Best Regards,
>>> >>> Nirmal
>>> >>>
>>> >>> Nirmal Fernando.
>>> >>> PPMC Member & Committer of Apache Stratos,
>>> >>> Senior Software Engineer, WSO2 Inc.
>>> >>>
>>> >>> Blog: http://nirmalfdo.blogspot.com/
>>> >>
>>> >>
>>> >>
>>> >>
>>> >> --
>>> >> Melan Nimesh
>>> >
>>> >
>>> >
>>> >
>>> > --
>>> > Melan Nimesh Jayasingha
>>> > Software Engineer;
>>> > WSO2 Inc.
>>> > PGP: 0x7B42450A
>>>
>>
>>
>>
>> --
>> Melan Nimesh Jayasingha
>> Software Engineer;
>> WSO2 Inc.
>> PGP: 0x7B42450A
>>
>
>


-- 
Melan Nimesh Jayasingha
Software Engineer;
WSO2 Inc.
PGP: 0x7B42450A

Reply via email to