Adding Naduni @Naduni Pamudika <nad...@wso2.com> - Have we tried this scenario in Microgateway?
Thanks & Regards, Mushthaq On Mon, May 21, 2018 at 9:10 AM Nadeesha Gamage <nadee...@wso2.com> wrote: > Hi API M team, > $subject, the scenario is as follows > * Micro gateway is down and a new subscription tier and an API is created > in the API Manager. This new API would only have the newly created > subscription tier. This API is published to the API Gateway. > * Micro gateway is then started, in this case the micro gateway tries to > deploy the API first (before deploying the subscription tiers) and this > deployment fails as the new tier doesnt exist in the micro gateway. The > error is given below > > [2018-05-21 08:54:05,912] ERROR - APIExecutor Failed to publish service to > API store while executing APIExecutor. > org.wso2.carbon.apimgt.api.APIManagementException: Failed to publish > service to API store while executing APIExecutor. No Tiers selected > at > org.wso2.carbon.apimgt.impl.executors.APIExecutor.execute(APIExecutor.java:126) > at > org.wso2.carbon.governance.registry.extensions.aspects.DefaultLifeCycle.runCustomExecutorsCode(DefaultLifeCycle.java:712) > at > org.wso2.carbon.governance.registry.extensions.aspects.DefaultLifeCycle.invoke(DefaultLifeCycle.java:450) > at > org.wso2.carbon.governance.registry.eventing.handlers.GovernanceEventingHandler.invokeAspect(GovernanceEventingHandler.java:344) > at > org.wso2.carbon.registry.core.jdbc.handlers.HandlerManager.invokeAspect(HandlerManager.java:2792) > at > org.wso2.carbon.registry.core.jdbc.handlers.HandlerLifecycleManager.invokeAspect(HandlerLifecycleManager.java:518) > at > org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.invokeAspect(EmbeddedRegistry.java:2607) > at > org.wso2.carbon.registry.core.caching.CacheBackedRegistry.invokeAspect(CacheBackedRegistry.java:510) > at > org.wso2.carbon.registry.core.session.UserRegistry.invokeAspect(UserRegistry.java:1952) > at > org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl.invokeAction(GovernanceArtifactImpl.java:829) > at > org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl.invokeAction(GovernanceArtifactImpl.java:808) > at > org.wso2.carbon.apimgt.impl.APIProviderImpl.changeLifeCycleStatus(APIProviderImpl.java:4097) > at > org.wso2.carbon.apimgt.impl.UserAwareAPIProvider.changeLifeCycleStatus(UserAwareAPIProvider.java:281) > at > org.wso2.carbon.apimgt.micro.gateway.api.synchronizer.util.APIMappingUtil.apisUpdate(APIMappingUtil.java:97) > at > org.wso2.carbon.apimgt.micro.gateway.api.synchronizer.APISynchronizer.synchronizeApis(APISynchronizer.java:183) > at > org.wso2.carbon.apimgt.micro.gateway.api.synchronizer.APISynchronizer.completedInitialization(APISynchronizer.java:102) > at > org.wso2.carbon.apimgt.micro.gateway.common.GatewayListenerNotifier.notifyListeners(GatewayListenerNotifier.java:44) > at > org.wso2.carbon.apimgt.micro.gateway.tenant.initializer.listener.ServerStartupListener$ScheduledThreadPoolExecutorImpl.run(ServerStartupListener.java:120) > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) > at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) > at > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) > at > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > at java.lang.Thread.run(Thread.java:745) > [2018-05-21 08:54:05,950] ERROR - DefaultLifeCycle > org.wso2.carbon.registry.core.exceptions.RegistryException: Execution > failed for action : Publish Embedded error : APIManagementException:Failed > to publish service to API store while executing APIExecutor. No Tiers > selected > [2018-05-21 08:54:05,963] ERROR - GovernanceArtifactImpl Invoking > lifecycle action "Publish" failed. Execution failed for action : Publish > Embedded error : APIManagementException:Failed to publish service to API > store while executing APIExecutor. No Tiers selected > org.wso2.carbon.registry.core.exceptions.RegistryException: Execution > failed for action : Publish Embedded error : APIManagementException:Failed > to publish service to API store while executing APIExecutor. No Tiers > selected > at > org.wso2.carbon.governance.registry.extensions.aspects.DefaultLifeCycle.invoke(DefaultLifeCycle.java:482) > at > org.wso2.carbon.governance.registry.eventing.handlers.GovernanceEventingHandler.invokeAspect(GovernanceEventingHandler.java:344) > at > org.wso2.carbon.registry.core.jdbc.handlers.HandlerManager.invokeAspect(HandlerManager.java:2792) > at > org.wso2.carbon.registry.core.jdbc.handlers.HandlerLifecycleManager.invokeAspect(HandlerLifecycleManager.java:518) > at > org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.invokeAspect(EmbeddedRegistry.java:2607) > at > org.wso2.carbon.registry.core.caching.CacheBackedRegistry.invokeAspect(CacheBackedRegistry.java:510) > at > org.wso2.carbon.registry.core.session.UserRegistry.invokeAspect(UserRegistry.java:1952) > at > org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl.invokeAction(GovernanceArtifactImpl.java:829) > at > org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl.invokeAction(GovernanceArtifactImpl.java:808) > at > org.wso2.carbon.apimgt.impl.APIProviderImpl.changeLifeCycleStatus(APIProviderImpl.java:4097) > at > org.wso2.carbon.apimgt.impl.UserAwareAPIProvider.changeLifeCycleStatus(UserAwareAPIProvider.java:281) > at > org.wso2.carbon.apimgt.micro.gateway.api.synchronizer.util.APIMappingUtil.apisUpdate(APIMappingUtil.java:97) > at > org.wso2.carbon.apimgt.micro.gateway.api.synchronizer.APISynchronizer.synchronizeApis(APISynchronizer.java:183) > at > org.wso2.carbon.apimgt.micro.gateway.api.synchronizer.APISynchronizer.completedInitialization(APISynchronizer.java:102) > at > org.wso2.carbon.apimgt.micro.gateway.common.GatewayListenerNotifier.notifyListeners(GatewayListenerNotifier.java:44) > at > org.wso2.carbon.apimgt.micro.gateway.tenant.initializer.listener.ServerStartupListener$ScheduledThreadPoolExecutorImpl.run(ServerStartupListener.java:120) > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) > at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) > at > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) > at > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > at java.lang.Thread.run(Thread.java:745) > > > Thank you, > > -- > Nadeesha Gamage > Lead Solutions Engineer > T : +94 77 394 5706 > B : https://nadeesha678.wordpress.com/ > -- Mushthaq Rumy *Software Engineer* Mobile : +94 (0) 779 492140 <javascript:void(0);> Email : musht...@wso2.com WSO2, Inc.; http://wso2.com/ lean . enterprise . middleware. <http://wso2.com/signature>
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev