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