stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Isuru Haththotuwa (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (STRATOS-806) Sending an ApplicationCreatedEvent throws Exception (java.lang.NullPointerException: Tenant domain has not been set in CarbonContext)
Date Tue, 30 Sep 2014 07:36:34 GMT

    [ https://issues.apache.org/jira/browse/STRATOS-806?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14152904#comment-14152904
] 

Isuru Haththotuwa commented on STRATOS-806:
-------------------------------------------

Fixed in commit 5f9f40f28bb7476f396b0a5e1f9b30bb5308212e as per the commit message.

> Sending an ApplicationCreatedEvent throws Exception (java.lang.NullPointerException:
Tenant domain has not been set in CarbonContext)
> -------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: STRATOS-806
>                 URL: https://issues.apache.org/jira/browse/STRATOS-806
>             Project: Stratos
>          Issue Type: Bug
>          Components: Stratos Manager
>    Affects Versions: 4.2.0
>            Reporter: Martin Eppel
>            Assignee: Isuru Haththotuwa
>             Fix For: 4.2.0 M1
>
>
> Issue occrus on 4.0.0-grouping branch, 
> scenario: deploy a new (composite) application
> Sending an ApplicationCreatedEvent causes the following exception to be thrown: 
> TID: [0] [STRATOS] [2014-09-18 18:50:53,313] DEBUG {org.apache.stratos.manager.manager.CartridgeSubscriptionManager}
-  createCompositeAppSubscription for appId: test_app3 and tenantId: -1234 {org.apache.stratos.manager.manager.CartridgeSubscriptionManager}
> TID: [0] [STRATOS] [2014-09-18 18:50:53,320] ERROR {org.apache.stratos.messaging.message.receiver.topology.TopologyEventMessageDelegator}
-  Failed to retrieve topology event message {org.apache.stratos.messaging.message.receiver.topology.TopologyEventMessageDelegator}
> java.lang.NullPointerException: Tenant domain has not been set in CarbonContext
>         at org.wso2.carbon.caching.impl.CacheManagerFactoryImpl.getCacheManager(CacheManagerFactoryImpl.java:79)
>         at org.wso2.carbon.registry.core.utils.RegistryUtils.getCacheManager(RegistryUtils.java:288)
>         at org.wso2.carbon.registry.core.utils.RegistryUtils.getResourceCache(RegistryUtils.java:271)
>         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.apache.stratos.manager.registry.RegistryManager.initRegistry(RegistryManager.java:83)
>         at org.apache.stratos.manager.registry.RegistryManager.retrieve(RegistryManager.java:185)
>         at org.apache.stratos.manager.persistence.RegistryBasedPersistenceManager.getSubscription(RegistryBasedPersistenceManager.java:438)
>         at org.apache.stratos.manager.persistence.RegistryBasedPersistenceManager.getCompositeAppSubscription(RegistryBasedPersistenceManager.java:429)
>         at org.apache.stratos.manager.retriever.DataInsertionAndRetrievalManager.getCompositeAppSubscription(DataInsertionAndRetrievalManager.java:405)
>         at org.apache.stratos.manager.manager.CartridgeSubscriptionManager.createCompositeAppSubscription(CartridgeSubscriptionManager.java:102)
>         at org.apache.stratos.manager.topology.receiver.StratosManagerTopologyEventReceiver$9.onEvent(StratosManagerTopologyEventReceiver.java:303)
>         at org.apache.stratos.messaging.listener.EventListener.update(EventListener.java:42)
>         at java.util.Observable.notifyObservers(Observable.java:159)
>         at org.apache.stratos.messaging.event.EventObservable.notifyEventListeners(EventObservable.java:51)
>         at org.apache.stratos.messaging.message.processor.topology.ApplicationCreatedMessageProcessor.process(ApplicationCreatedMessageProcessor.java:77)
>         at org.apache.stratos.messaging.message.processor.topology.GroupActivatedProcessor.process(GroupActivatedProcessor.java:37)
>         at org.apache.stratos.messaging.message.processor.topology.MemberTerminatedMessageProcessor.process(MemberTerminatedMessageProcessor.java:133)
>         at org.apache.stratos.messaging.message.processor.topology.MemberSuspendedMessageProcessor.process(MemberSuspendedMessageProcessor.java:143)
>         at org.apache.stratos.messaging.message.processor.topology.MemberMaintenanceModeProcessor.process(MemberMaintenanceModeProcessor.java:142)
>         at org.apache.stratos.messaging.message.processor.topology.MemberReadyToShutdownMessageProcessor.process(MemberReadyToShutdownMessageProcessor.java:141)
>         at org.apache.stratos.messaging.message.processor.topology.MemberActivatedMessageProcessor.process(MemberActivatedMessageProcessor.java:158)
>         at org.apache.stratos.messaging.message.processor.topology.MemberStartedMessageProcessor.process(MemberStartedMessageProcessor.java:144)
>         at org.apache.stratos.messaging.message.processor.topology.InstanceSpawnedMessageProcessor.process(InstanceSpawnedMessageProcessor.java:135)
>         at org.apache.stratos.messaging.message.processor.topology.ClusterRemovedMessageProcessor.process(ClusterRemovedMessageProcessor.java:108)
>         at org.apache.stratos.messaging.message.processor.topology.ClusterMaintenanceModeMessageProcessor.process(ClusterMaintenanceModeMessageProcessor.java:109)
>         at org.apache.stratos.messaging.message.processor.topology.ClusterActivatedProcessor.process(ClusterActivatedProcessor.java:37)
>         at org.apache.stratos.messaging.message.processor.topology.ClusterCreatedMessageProcessor.process(ClusterCreatedMessageProcessor.java:117)
>         at org.apache.stratos.messaging.message.processor.topology.ServiceRemovedMessageProcessor.process(ServiceRemovedMessageProcessor.java:87)
>         at org.apache.stratos.messaging.message.processor.topology.ServiceCreatedMessageProcessor.process(ServiceCreatedMessageProcessor.java:87)
>         at org.apache.stratos.messaging.message.processor.topology.CompleteTopologyMessageProcessor.process(CompleteTopologyMessageProcessor.java:151)
>         at org.apache.stratos.messaging.message.processor.MessageProcessorChain.process(MessageProcessorChain.java:60)
>         at org.apache.stratos.messaging.message.receiver.topology.TopologyEventMessageDelegator.run(TopologyEventMessageDelegator.java:77)
>         at java.lang.Thread.run(Thread.java:745)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message