Hi,

Issue was how tenant config context is retrieved in
MultiTenantMessagerReceiver. Was able to get a fix by using the
ThreadLocalCarbonContext. Will be fixed from carbon 4.0.3 onwards.

thanks,

On Tue, Oct 23, 2012 at 9:45 AM, Supun Malinga <[email protected]> wrote:

> Hi,
>
> I'll have a look into this.
>
> thanks,
>
>
> On Tue, Oct 23, 2012 at 9:13 AM, Jorge Infante Osorio <[email protected]>wrote:
>
>> Yes, this happen in AS 5.0.0 as you can see:
>>
>> http://stackoverflow.com/questions/13012608/issues-with-tenants-in-as-5-0-0
>>
>>
>> Saludos,
>> Ing. Jorge Infante Osorio.
>> CDAE.
>> Fac. 5.
>> UCI.
>> “En un mundo perfecto las pizzas serían una comida saludable, las laptops
>> se
>> cargarían desde una fuente de corriente inalámbrica y todos los JAR serían
>> bundles de OSGI ”
>>
>> De: [email protected] [mailto:[email protected]] En nombre de Amila
>> Maha Arachchi
>> Enviado el: lunes, 22 de octubre de 2012 23:30
>> Para: Charitha Kankanamge
>> CC: WSO2 Developers' List
>> Asunto: Re: [Dev] Exception thrown when login to tenant2 and try-it a
>> service of tenant1 - AS 5.0.1
>>
>> This exists in AS 5.0.0 also.
>> On Tue, Oct 23, 2012 at 8:54 AM, Amila Maha Arachchi <[email protected]>
>> wrote:
>> Hi Charitha,
>>
>> I think you meant 4.0.2 testing. But this is reproducible in AS 5.0.1
>> final
>> packs (carbon 4.0.2). Exception is little bit different. In the mail
>> thread
>> which you have mentioned it says "trying to set the tenant domain to
>> null".
>> But in this case it says "Trying to set the domain from b.com to a.com".
>> Although the exception is printed, request is served without any problem.
>> And, this is not seen when invoking the service via soap-ui.
>>
>> These are the steps to reproduce.
>> 1. Get a fressh pack, login as super tenant and create two tenants (a.com
>> and b.com).
>> 2. Login to a.com and deploy an aar service and try it. No exceptions
>> will
>> be seen.
>> 3. Keep the try it windom open in the browser, logout from a.com and
>> login
>> as b.com.
>> 4. Then go to the try-it window which is already open and invoke the
>> service.
>>
>> May be this is something related to try-it (I dont know whether this is
>> the
>> expected behaviour from try-it because the tenant is not logged in).
>>
>> Regards,
>> AmilaM.
>>
>> On Tue, Oct 23, 2012 at 7:00 AM, Charitha Kankanamge <[email protected]>
>> wrote:
>> Hi Amila,
>> We came across this issue in Carbon-4.0.1 testing. See ""Trying to set the
>> domain to null" error occurs for each service call by tenants" mail thread
>> @support-dev. However, Afkham was able to fix that.
>>
>> Regards
>> Charitha
>> On Mon, Oct 22, 2012 at 7:31 PM, Amila Maha Arachchi <[email protected]>
>> wrote:
>> FYI, this is not thrown when the service is invoked using soap ui.
>>
>> On Mon, Oct 22, 2012 at 7:26 PM, Amila Maha Arachchi <[email protected]>
>> wrote:
>> Hi devs,
>>
>> $Subject. But the request is successful. Following is the exception
>> thrown.
>>
>> [2012-10-22 19:23:08,549] ERROR
>> {org.wso2.carbon.context.internal.CarbonContextDataHolder} -  Trying to
>> set
>> the domain from b.com to a.com
>> java.lang.IllegalStateException: Trying to set the domain from b.com to
>> a.com
>>     at
>>
>> org.wso2.carbon.context.internal.CarbonContextDataHolder.setTenantDomain(Car
>> bonContextDataHolder.java:1715)
>>     at
>>
>> org.wso2.carbon.context.PrivilegedCarbonContext.setTenantDomain(PrivilegedCa
>> rbonContext.java:242)
>>     at
>>
>> org.wso2.carbon.core.multitenancy.MultitenantMessageReceiver.doSOAP(Multiten
>> antMessageReceiver.java:213)
>>     at
>>
>> org.wso2.carbon.core.multitenancy.MultitenantMessageReceiver.processRequest(
>> MultitenantMessageReceiver.java:182)
>>     at
>>
>> org.wso2.carbon.core.multitenancy.MultitenantMessageReceiver.receive(Multite
>> nantMessageReceiver.java:78)
>>     at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181)
>>     at
>>
>> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HT
>> TPTransportUtils.java:172)
>>     at
>> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
>>     at
>>
>> org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:227)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
>>     at
>>
>> org.eclipse.equinox.http.helper.FilterServletAdaptor$FilterChainImpl.doFilte
>> r(FilterServletAdaptor.java:56)
>>     at
>>
>> org.wso2.carbon.mashup.jsservices.custom.ui.CustomUIServletFilter.doFilter(C
>> ustomUIServletFilter.java:233)
>>     at
>>
>> org.eclipse.equinox.http.helper.FilterServletAdaptor.service(FilterServletAd
>> aptor.java:37)
>>     at
>>
>> org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(
>> ServletRegistration.java:90)
>>     at
>>
>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxySer
>> vlet.java:111)
>>     at
>>
>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.
>> java:67)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
>>     at
>>
>> org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServl
>> et.java:68)
>>     at
>>
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
>> FilterChain.java:305)
>>     at
>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
>> ain.java:210)
>>     at
>>
>> org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFi
>> lter.java:61)
>>     at
>>
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
>> FilterChain.java:243)
>>     at
>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
>> ain.java:210)
>>     at
>>
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
>> va:225)
>>     at
>>
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
>> va:123)
>>     at
>>
>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
>> .java:472)
>>     at
>>
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168
>> )
>>     at
>>
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
>>     at
>>
>> org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:
>> 172)
>>     at
>>
>> org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(Car
>> bonStuckThreadDetectionValve.java:156)
>>     at
>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
>>     at
>>
>> org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonCon
>> textCreatorValve.java:52)
>>     at
>>
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
>> :118)
>>     at
>>
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
>>     at
>>
>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Proce
>> ssor.java:1001)
>>     at
>>
>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(Abstrac
>> tProtocol.java:579)
>>     at
>>
>> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:
>> 1653)
>>     at
>>
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.ja
>> va:886)
>>     at
>>
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:9
>> 08)
>>     at java.lang.Thread.run(Thread.java:619)
>>
>>
>> Regards,
>> AmilaM.
>>
>> --
>> Amila Maharachchi
>> Technical Lead
>> Member, Management Committee - Cloud & Platform TG
>> WSO2, Inc.; http://wso2.com
>>
>> Blog: http://maharachchi.blogspot.com
>> Mobile: +94719371446
>>
>>
>>
>>
>> --
>> Amila Maharachchi
>> Technical Lead
>> Member, Management Committee - Cloud & Platform TG
>> WSO2, Inc.; http://wso2.com
>>
>> Blog: http://maharachchi.blogspot.com
>> Mobile: +94719371446
>>
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>>
>>
>> --
>> Amila Maharachchi
>> Technical Lead
>> Member, Management Committee - Cloud & Platform TG
>> WSO2, Inc.; http://wso2.com
>>
>> Blog: http://maharachchi.blogspot.com
>> Mobile: +94719371446
>>
>>
>>
>>
>> --
>> Amila Maharachchi
>> Technical Lead
>> Member, Management Committee - Cloud & Platform TG
>> WSO2, Inc.; http://wso2.com
>>
>> Blog: http://maharachchi.blogspot.com
>> Mobile: +94719371446
>>
>>
>>
>> 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS
>> INFORMATICAS...
>> CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION
>>
>> http://www.uci.cu
>> http://www.facebook.com/universidad.uci
>> http://www.flickr.com/photos/universidad_uci
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>
>
>
> --
> Supun Malinga,
>
> Software Engineer,
> WSO2 Inc.
> http://wso2.com
> http://wso2.org
> email - [email protected] <[email protected]>
> mobile - 071 56 91 321
>
>


-- 
Supun Malinga,

Software Engineer,
WSO2 Inc.
http://wso2.com
http://wso2.org
email - [email protected] <[email protected]>
mobile - 071 56 91 321
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to