Hi,

we have to set the proper CC during sync up. This works fine with svn
depsync since the execution path does not include cache retrieval.

With registry based depsync in place, the error surfaces. (thread not
having tenant info).

if all the tenant artifacts are maintained in super-tenant registry space,
we can use super.tenant domain. (just an idea..)

Eranda please have a look..

--Pradeep




On Fri, Aug 2, 2013 at 3:51 PM, Evanthika Amarasiri <[email protected]>wrote:

> Hi,
>
> Registry based deployment synchronization fails. Observed the following
> exception when artifacts are being synchronized at worker nodes.
>
>
> ****************************************************************************************************************************************************************************
> [2013-08-02 15:03:44,088]  INFO
> {org.wso2.carbon.core.clustering.hazelcast.HazelcastClusterMessageListener}
> -  Received ClusteringMessage: SynchronizeRepositoryRequest{tenantId=-1234,
> tenantDomain='carbon.super', messageId=d4389bb6-16fb-4530-a6d2-48a5c2eb5765}
> [2013-08-02 15:03:44,088]  INFO
> {org.wso2.carbon.core.deployment.SynchronizeRepositoryRequest} -  Received
> [SynchronizeRepositoryRequest{tenantId=-1234, tenantDomain='carbon.super',
> messageId=d4389bb6-16fb-4530-a6d2-48a5c2eb5765}]
> [2013-08-02 15:03:44,088]  INFO
> {org.wso2.carbon.core.deployment.SynchronizeRepositoryRequest} -  Going to
> synchronize artifacts...
> [2013-08-02 15:03:44,090] ERROR
> {org.wso2.carbon.core.deployment.SynchronizeRepositoryRequest} -
>  Repository update failed for tenant -1234
> 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:289)
> at
> org.wso2.carbon.registry.core.utils.RegistryUtils.getResourceCache(RegistryUtils.java:272)
>  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.wso2.carbon.deployment.synchronizer.internal.repository.CarbonRepositoryUtils.getDeploymentSyncConfigurationFromRegistry(CarbonRepositoryUtils.java:262)
>  at
> org.wso2.carbon.deployment.synchronizer.internal.repository.CarbonRepositoryUtils.getActiveSynchronizerConfiguration(CarbonRepositoryUtils.java:108)
>  at
> org.wso2.carbon.deployment.synchronizer.internal.DeploymentSynchronizerServiceImpl.update(DeploymentSynchronizerServiceImpl.java:60)
> at
> org.wso2.carbon.core.deployment.SynchronizeRepositoryRequest.updateDeploymentRepository(SynchronizeRepositoryRequest.java:101)
>  at
> org.wso2.carbon.core.deployment.SynchronizeRepositoryRequest.execute(SynchronizeRepositoryRequest.java:68)
> at
> org.wso2.carbon.core.clustering.hazelcast.HazelcastClusterMessageListener.onMessage(HazelcastClusterMessageListener.java:54)
>  at
> com.hazelcast.impl.ListenerManager.callListener(ListenerManager.java:419)
> at
> com.hazelcast.impl.ListenerManager.callListeners(ListenerManager.java:334)
>  at com.hazelcast.impl.BaseManager$2.run(BaseManager.java:1392)
> at
> com.hazelcast.impl.executor.ParallelExecutorService$ParallelExecutorImpl$ExecutionSegment.run(ParallelExecutorService.java:212)
>  at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>  at java.lang.Thread.run(Thread.java:722)
> at
> com.hazelcast.impl.ExecutorThreadFactory$1.run(ExecutorThreadFactory.java:45)
>
>
> [1] - https://wso2.org/jira/browse/CARBON-14308
>
>
> Evanthika Amarasiri
> Senior Technical Lead - Quality Assurance
> Mobile: +94773125935
> *
> *
> wso2.com Lean Enterprise Middleware
>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Pradeep Fernando*
Associate Technical Lead;WSO2 Inc.; http://wso2.com

blog: http://pradeepfernando.blogspot.com
m: +94776603662
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to