Looks like a problem introduced with Registry cache. Senaka, any ideas?

On Wed, Apr 6, 2011 at 9:43 PM, Anjana Fernando <anj...@wso2.com> wrote:

> Hi,
>
> On Wed, Apr 6, 2011 at 9:25 PM, Tharindu Mathew <thari...@wso2.com> wrote:
> > The problem went away after I updated the core and built this.
> > I believe the event broker is trying to pass tenant id when non exists.
> > Either DSS should not be doing this at start up before some needed
> > components such as Registry are initialized. Maybe the event folks should
> > take a look, but since only DSS is facing this issue (AFAIK) you guys can
> > mess around with this bit of code to fix this.
>
> The registry seems to be initialised when this is happening, I've
> attached the startup log with DEBUG log level for "org.wso2".
>
> Cheers,
> Anjana.
>
> >
> > On Wed, Apr 6, 2011 at 8:14 PM, Anjana Fernando <anj...@wso2.com> wrote:
> >>
> >> Hi Senaka,
> >>
> >> On Wed, Apr 6, 2011 at 7:02 PM, Senaka Fernando <sen...@wso2.com>
> wrote:
> >> > Looks like EventBrokerHolder.getInstance().getTenantId() in
> >> > RegistrySubscriptionManager of the Event Component is passing -1.
> >> >
> >> > By the way, this seems to be happening at the server start-up. Why
> does
> >> > DS
> >> > clear subscriptions at start-up? Is this to implement some form of
> >> > non-persistent subscription? If that's so, I believe that the event
> >> > component already has some concept like that (Amila, Danushka please
> >> > confirm).
> >>
> >> This is done to basically to refresh the subscriptions, that is, the
> >> data service may have been changed when it is being deployed again,
> >> for example, the user may have removed the old subscriptions from the
> >> data service and added new ones, so because of that, we remove all the
> >> current subscriptions that are associated with this data service and
> >> again add the subscriptions that are now mentioned in the data
> >> service.
> >>
> >> I'm still getting the same error btw, I tried a build properly with
> >> mvn clean install, but still have the same problem. Appreciate if
> >> someone can look into this.
> >>
> >> Cheers,
> >> Anjana.
> >>
> >> >
> >> > Thanks,
> >> > Senaka.
> >> >
> >> > On Wed, Apr 6, 2011 at 12:29 PM, Anjana Fernando <anj...@wso2.com>
> >> > wrote:
> >> >>
> >> >> Tharindu has also asked about this earlier, is this fixed properly
> >> >> now? .. I've build the latest carbon-core and components but still
> >> >> gets the same problem. Please check the below error stacktrace.
> >> >>
> >> >>  -------------------------------------
> >> >> java.lang.NullPointerException
> >> >>        at
> >> >>
> >> >>
> org.wso2.carbon.user.core.common.DefaultRealmService.getTenantUserRealm(DefaultRealmService.java:157)
> >> >>        at
> >> >>
> >> >>
> org.wso2.carbon.registry.core.session.UserRegistry.init(UserRegistry.java:231)
> >> >>        at
> >> >>
> >> >>
> org.wso2.carbon.registry.core.session.UserRegistry.<init>(UserRegistry.java:199)
> >> >>        at
> >> >>
> >> >>
> org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getUserRegistry(EmbeddedRegistryService.java:426)
> >> >>        at
> >> >>
> >> >>
> org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getSystemRegistry(EmbeddedRegistryService.java:291)
> >> >>        at
> >> >>
> >> >>
> org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService.getConfigSystemRegistry(EmbeddedRegistryService.java:484)
> >> >>        at
> >> >>
> >> >>
> org.wso2.carbon.event.core.internal.subscription.registry.RegistrySubscriptionManager.getAllSubscriptions(RegistrySubscriptionManager.java:208)
> >> >>        at
> >> >>
> >> >>
> org.wso2.carbon.event.core.internal.CarbonEventBroker.getAllSubscriptions(CarbonEventBroker.java:137)
> >> >>        at
> >> >>
> >> >>
> org.wso2.carbon.dataservices.core.engine.DataService.clearDataServicesEventSubscriptions(DataService.java:385)
> >> >>        at
> >> >>
> >> >>
> org.wso2.carbon.dataservices.core.engine.DataService.initEventing(DataService.java:401)
> >> >>        at
> >> >>
> >> >>
> org.wso2.carbon.dataservices.core.engine.DataService.setEventBroker(DataService.java:658)
> >> >>        at
> >> >>
> >> >>
> org.wso2.carbon.dataservices.core.internal.DataServicesDSComponent.registerEventBrokerServiceListener(DataServicesDSComponent.java:193)
> >> >>        at
> >> >>
> >> >>
> org.wso2.carbon.dataservices.core.DataServiceFactory.createDataService(DataServiceFactory.java:221)
> >> >>        at
> >> >>
> >> >>
> org.wso2.carbon.dataservices.core.DBDeployer.createDBService(DBDeployer.java:609)
> >> >>        at
> >> >>
> >> >>
> org.wso2.carbon.dataservices.core.DBDeployer.processService(DBDeployer.java:955)
> >> >>        at
> >> >>
> >> >>
> org.wso2.carbon.dataservices.core.DBDeployer.deploy(DBDeployer.java:176)
> >> >>        at
> >> >>
> >> >>
> org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
> >> >>        at
> >> >>
> >> >>
> org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:813)
> >> >>        at
> >> >>
> >> >>
> org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
> >> >>        at
> >> >>
> >> >>
> org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:370)
> >> >>        at
> >> >>
> >> >>
> org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
> >> >>        at
> >> >>
> >> >>
> org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:364)
> >> >>        at
> >> >>
> >> >>
> org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:73)
> >> >>        at
> >> >>
> >> >>
> org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:94)
> >> >>        at
> >> >>
> >> >>
> org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask.run(Scheduler.java:93)
> >> >>        at java.util.TimerThread.mainLoop(Timer.java:512)
> >> >>        at java.util.TimerThread.run(Timer.java:462)
> >> >> [2011-04-06 12:14:53,200] ERROR
> >> >> {org.wso2.carbon.registry.core.session.UserRegistry} -  An error
> >> >> occurred while obtaining the user realm for the tenant: -1.
> >> >> [2011-04-06 12:14:53,200] ERROR
> >> >> {org.wso2.carbon.dataservices.core.engine.DataService} -  Error in
> >> >> setting event broker
> >> >>  -------------------------------------
> >> >>
> >> >> Cheers,
> >> >> Anjana.
> >> >> --
> >> >> Anjana Fernando
> >> >> Software Engineer
> >> >> WSO2, Inc.; http://wso2.com
> >> >> lean.enterprise.middleware
> >> >> _______________________________________________
> >> >> Carbon-dev mailing list
> >> >> Carbon-dev@wso2.org
> >> >> http://mail.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
> >> >
> >> >
> >>
> >>
> >>
> >> --
> >> Anjana Fernando
> >> Software Engineer
> >> WSO2, Inc.; http://wso2.com
> >> lean.enterprise.middleware
> >> _______________________________________________
> >> Carbon-dev mailing list
> >> Carbon-dev@wso2.org
> >> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
> >
> >
> >
> > --
> > Regards,
> >
> > Tharindu
> >
> >
>
>
>
> --
> Anjana Fernando
> Software Engineer
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>



-- 
Regards,

Tharindu
_______________________________________________
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to