I'm working on fixing this. Thanks, Supun..
On Tue, Jan 18, 2011 at 10:18 AM, Senaka Fernando <[email protected]> wrote: > Hi Miyuru, > > What caused this issue? and who's working on fixing this? > > Thanks, > Senaka. > > On Tue, Jan 18, 2011 at 9:58 AM, Miyuru Wanninayaka <[email protected]> wrote: >> >> Hi Amila, >> >> reason for this is >> @ >> components/synapse-registries/org.wso2.carbon.mediation.registry/src/main/java/org/wso2/carbon/mediation/registry/WSO2Registry.java >> >> CarbonContext.getCurrentContext().getTenantId() >> returns -1 >> >> until this issue is fixed, replace >> >> configRegistry = registryService.getConfigSystemRegistry( >> CarbonContext.getCurrentContext().getTenantId()); >> governanceRegistry = >> registryService.getGovernanceSystemRegistry( >> CarbonContext.getCurrentContext().getTenantId()); >> >> with >> configRegistry = registryService.getConfigSystemRegistry(0); >> governanceRegistry = >> registryService.getGovernanceSystemRegistry(0); >> >> >> >> On Tue, Jan 18, 2011 at 9:32 AM, Amila Jayasekara <[email protected]> wrote: >>> >>> Hi All, >>> I am getting following error when trying to start esb in trunk. >>> >>> [2011-01-18 09:27:30,538] ERROR - DefaultRealmService >>> java.lang.NullPointerException >>> at >>> org.wso2.carbon.user.core.common.DefaultRealmService.getTenantUserRealm(DefaultRealmService.java:132) >>> at >>> org.wso2.carbon.registry.core.session.UserRegistry.init(UserRegistry.java:239) >>> at >>> org.wso2.carbon.registry.core.session.UserRegistry.<init>(UserRegistry.java:206) >>> at >>> org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getUserRegistry(EmbeddedRegistryService.java:424) >>> .... >>> .... >>> Caused by: java.lang.NullPointerException >>> at >>> org.wso2.carbon.user.core.common.DefaultRealmService.getTenantUserRealm(DefaultRealmService.java:132) >>> ... 117 more >>> [2011-01-18 09:27:30,558] ERROR - UserRegistry Failed in getting the user >>> realm for the tenantId: -1. >>> [2011-01-18 09:27:30,559] ERROR - WSO2Registry Error while initializing >>> the mediation registry adapter >>> org.wso2.carbon.registry.core.exceptions.RegistryException: Failed in >>> getting the user realm for the tenantId: -1. >>> >>> A detail log is attached to the mail. >>> >>> Seems to be UserRegistry is passing -1 to >>> DefaultRealmService.getTenantUserRealm() to get RealmService. But >>> DefaultRealmService.getTenantUserRealm() only checks for 0. (I am running in >>> standalone) >>> >>> Please let me know how to resolve this issue. >>> Thanks >>> AmilaJ >>> >>> _______________________________________________ >>> Carbon-dev mailing list >>> [email protected] >>> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev >>> >> >> >> >> -- >> Thanks, >> Miyuru >> >> _______________________________________________ >> Carbon-dev mailing list >> [email protected] >> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev >> > > > > -- > Senaka Fernando > Product Manager - WSO2 Governance Registry; > Associate Technical Lead; WSO2, Inc.; http://wso2.com > Member; Apache Software Foundation; http://apache.org > > E-mail: senaka AT wso2.com > P: +1 408 754 7388; ext: 51736; M: +94 77 322 1818 > Linked-In: http://www.linkedin.com/in/senakafernando > > Lean . Enterprise . Middleware > > > _______________________________________________ > Carbon-dev mailing list > [email protected] > https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev > > -- Supun Kamburugamuva Technical Lead WSO2 Inc.; http://wso2.org E-mail: [email protected]; Mobile: +94 77 431 3585 Blog: http://supunk.blogspot.com _______________________________________________ Carbon-dev mailing list [email protected] https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
