On Thu, Jul 11, 2013 at 7:59 PM, Miyuru Wanninayaka <miy...@wso2.com> wrote:
> ESB does not sets Carbon Context as thread local because PTT/NHTTP threads > are totally under synapse. AFIK only servlet transport sets CC as a thread > local. > > In 4.1.0 branch this is working fine without setting CC as thread local. > Did something changed in trunk? yes. New caching model mandate the setting thread local. Lets talk with Azeez and figure out what to do. thanks, Amila. > > > On Thu, Jul 11, 2013 at 7:49 PM, Amila Suriarachchi <am...@wso2.com>wrote: > >> >> >> >> On Thu, Jul 11, 2013 at 7:31 PM, Miyuru Wanninayaka <miy...@wso2.com>wrote: >> >>> Hi Amila, >>> >>> Are you referring to CarbonContext thread local variable? >> >> >> yes it gets the tenant domain like this >> >> public static String getTenantDomain() { >> return getCarbonContext().getTenantDomain(); >> } >> >> thanks, >> Amila. >> >>> >>> >>> On Thu, Jul 11, 2013 at 6:27 PM, Amila Suriarachchi <am...@wso2.com>wrote: >>> >>>> >>>> >>>> >>>> On Thu, Jul 11, 2013 at 4:40 PM, Dushan Abeyruwan <dus...@wso2.com>wrote: >>>> >>>>> Hi >>>>> Getting following error when executing proxy service ESB 4.8.0 built >>>>> 2013-07-11 >>>>> >>>>> [2013-07-11 16:37:22,177] INFO - ProxyService Building Axis service >>>>> for Proxy service : SearchTwitter >>>>> [2013-07-11 16:37:22,177] INFO - ProxyService Adding service >>>>> SearchTwitter to the Axis2 configuration >>>>> [2013-07-11 16:37:22,182] INFO - DeploymentInterceptor Deploying >>>>> Axis2 service: SearchTwitter {super-tenant} >>>>> [2013-07-11 16:37:22,208] INFO - ProxyService Successfully created >>>>> the Axis2 service for Proxy service : SearchTwitter >>>>> [2013-07-11 16:37:29,694] INFO - LogMediator To: >>>>> /services/SearchTwitter, WSAction: urn:getQuote, SOAPAction: urn:getQuote, >>>>> MessageID: urn:uuid:6421430e-e95c-4aa2-a9ba-f*cd37f7753e3, Direction: >>>>> request* >>>>> *[2013-07-11 16:37:29,695] ERROR - NativeWorkerPool Uncaught exception >>>>> * >>>>> *java.lang.NullPointerException* >>>>> * at >>>>> java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:768) >>>>> * >>>>> * at >>>>> org.wso2.carbon.caching.impl.CacheManagerFactoryImpl.getCacheManager(CacheManagerFactoryImpl.java:78) >>>>> * >>>>> at >>>>> org.wso2.carbon.registry.core.utils.RegistryUtils.getCacheManager(RegistryUtils.java:289) >>>>> at >>>>> org.wso2.carbon.registry.core.utils.RegistryUtils.getResourceCache(RegistryUtils.java:272) >>>>> at >>>>> org.wso2.carbon.registry.core.caching.CacheBackedRegistry.getCache(CacheBackedRegistry.java:62) >>>>> at >>>>> org.wso2.carbon.registry.core.caching.CacheBackedRegistry.resourceExists(CacheBackedRegistry.java:246) >>>>> at >>>>> org.wso2.carbon.registry.core.session.UserRegistry.resourceExists(UserRegistry.java:629) >>>>> at >>>>> org.wso2.carbon.mediation.registry.WSO2Registry.getResource(WSO2Registry.java:527) >>>>> at >>>>> org.wso2.carbon.mediation.registry.WSO2Registry.lookup(WSO2Registry.java:131) >>>>> at >>>>> org.apache.synapse.registry.AbstractRegistry.getResource(AbstractRegistry.java:63) >>>>> at >>>>> org.apache.synapse.config.SynapseConfiguration.getSequenceTemplate(SynapseConfiguration.java:395) >>>>> at >>>>> org.apache.synapse.core.axis2.Axis2MessageContext.getSequenceTemplate(Axis2MessageContext.java:191) >>>>> at >>>>> org.apache.synapse.mediators.template.InvokeMediator.mediate(InvokeMediator.java:71) >>>>> at >>>>> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:71) >>>>> at >>>>> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:114) >>>>> at >>>>> org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:162) >>>>> 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(Nat >>>>> >>>> >>>> seems like tenant domain is null for the threads originating from >>>> passthrough transport threads. Can you please check the tenant domain of >>>> the pass through transport threads? >>>> >>>> thanks, >>>> Amila. >>>> >>>>> >>>>> -- >>>>> Dushan Abeyruwan >>>>> Associate Tech Lead >>>>> *Integration Technologies Team* >>>>> *WSO2 Inc. http://wso2.com/* >>>>> *Mobile:(+94)714408632* >>>>> >>>>> _______________________________________________ >>>>> Dev mailing list >>>>> Dev@wso2.org >>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>> >>>>> >>>> >>>> >>>> -- >>>> *Amila Suriarachchi* >>>> >>>> Software Architect >>>> WSO2 Inc. ; http://wso2.com >>>> lean . enterprise . middleware >>>> >>>> phone : +94 71 3082805 >>>> >>>> _______________________________________________ >>>> Dev mailing list >>>> Dev@wso2.org >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >>> >>> >>> -- >>> Miyuru Wanninayaka >>> Technical Lead >>> WSO2 Inc. : http://wso2.com >>> >>> Mobile : +94 77 209 9788 >>> Blog : http://miyurudw.blogspot.com >>> Flickr : http://www.flickr.com/photos/miyuru_daminda >> >> >> >> >> -- >> *Amila Suriarachchi* >> >> Software Architect >> WSO2 Inc. ; http://wso2.com >> lean . enterprise . middleware >> >> phone : +94 71 3082805 >> > > > > -- > Miyuru Wanninayaka > Technical Lead > WSO2 Inc. : http://wso2.com > > Mobile : +94 77 209 9788 > Blog : http://miyurudw.blogspot.com > Flickr : http://www.flickr.com/photos/miyuru_daminda > -- *Amila Suriarachchi* Software Architect WSO2 Inc. ; http://wso2.com lean . enterprise . middleware phone : +94 71 3082805
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev