This time event is published before subscription loading when tenant registry is loaded via TenantDeploymentListenerImpl which is implementing AuthenticationObserver. Subscription loading for tenant is done via EventAxis2ConfigurationContextObserver which is called when tenant Axis2ConfigurationContext is created.This is done after successful tenant login. Is this Expected flow?
On Wed, Apr 25, 2012 at 3:07 AM, Supun Malinga <[email protected]> wrote: > HI Amila, > > This is still there, > https://wso2.org/jira/browse/CARBON-12922 > > thanks, > > On Mon, Jul 11, 2011 at 8:46 AM, Amila Suriarachchi <[email protected]>wrote: > >> >> >> On Sun, Jul 10, 2011 at 3:29 PM, Amila Suriarachchi <[email protected]>wrote: >> >>> Tenant specific things like tenant storage is initialized at the tenant >>> login time i.e when >>> public class EventAxis2ConfigurationContextObserver extends >>> AbstractAxis2ConfigurationContextObserver { >>> >>> is called. >>> >>> But deployment synchronizer is run before that. or it may be any other >>> compoent. >>> >>> If some component publish before it initialized that gives this >>> exception. >>> >>> If your fix works that is fine. Because deployment sychronizer create >>> the subscriptions at the start up. but it is not necessary since >>> subscription manager any way does that. >>> >> >> In fact you don't have to create a new object but can just ignore it, >> since when the event initializes it get all the subscriptions from the >> registry and subscribe. >> >> I have committed the changes please have a look at. >> >> thanks, >> Amila. >> >>> >>> thanks, >>> Amila. >>> >>> >>> On Sat, Jul 9, 2011 at 11:06 PM, Selvaratnam Uthaiyashankar < >>> [email protected]> wrote: >>> >>>> This occurs in the latest pack.. but I tested with migrated data.. >>>> Amila, can you check and let me know what the issue is? Exception is >>>> >>>> Exception in thread "pool-23-thread-4" java.lang.NullPointerException >>>> at >>>> org.wso2.carbon.event.core.internal.delivery.inmemory.InMemoryMatchingManager.getMatchingSubscriptions(InMemo >>>> ryMatchingManager.java:54) >>>> at >>>> org.wso2.carbon.event.core.internal.delivery.inmemory.InMemoryDeliveryManager.publish(InMemoryDeliveryManager >>>> .java:100) >>>> at >>>> org.wso2.carbon.event.core.internal.EventPublisher.run(EventPublisher.java:56) >>>> at >>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) >>>> at >>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) >>>> at java.lang.Thread.run(Thread.java:686) >>>> Exception in thread "pool-23-thread-5" java.lang.NullPointerException >>>> at >>>> org.wso2.carbon.event.core.internal.delivery.inmemory.InMemoryMatchingManager.getMatchingSubscriptions(InMemo >>>> ryMatchingManager.java:54) >>>> at >>>> org.wso2.carbon.event.core.internal.delivery.inmemory.InMemoryDeliveryManager.publish(InMemoryDeliveryManager >>>> .java:100) >>>> at >>>> org.wso2.carbon.event.core.internal.EventPublisher.run(EventPublisher.java:56) >>>> at >>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) >>>> at >>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) >>>> at java.lang.Thread.run(Thread.java:686) >>>> Exception in thread "pool-23-thread-6" java.lang.NullPointerException >>>> at >>>> org.wso2.carbon.event.core.internal.delivery.inmemory.InMemoryMatchingManager.getMatchingSubscriptions(InMemo >>>> ryMatchingManager.java:54) >>>> at >>>> org.wso2.carbon.event.core.internal.delivery.inmemory.InMemoryDeliveryManager.publish(InMemoryDeliveryManager >>>> .java:100) >>>> at >>>> org.wso2.carbon.event.core.internal.EventPublisher.run(EventPublisher.java:56) >>>> at >>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) >>>> at >>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) >>>> at java.lang.Thread.run(Thread.java:686) >>>> >>>> -- >>>> S.Uthaiyashankar >>>> Senior Architect & Senior Manager >>>> WSO2 Inc. >>>> http://wso2.com/ - "lean . enterprise . middleware" >>>> _______________________________________________ >>>> Stratos-dev mailing list >>>> [email protected] >>>> https://wso2.org/cgi-bin/mailman/listinfo/stratos-dev >>>> >>> >>> >> >> _______________________________________________ >> Stratos-dev mailing list >> [email protected] >> https://wso2.org/cgi-bin/mailman/listinfo/stratos-dev >> >> > > > -- > 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 > > -- ajanthan -- Ajanthan Balachandiran Software Engineer; WSO2, Inc.; http://wso2.com/ email: ajanthan <http://goog_595075977>@wso2.com; cell: +94775581497 blog: http://bkayts.blogspot.com/ Lean . Enterprise . Middleware
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
