简体   繁体   English

WSO2治理注册表未将服务发布到WSO2 API管理器中

[英]WSO2 Governance Registry not publishing Service into WSO2 API Manager

On "publish" button click (current service state "Production") I am getting below error in WSO2 Governance Registry console. 在“发布”按钮上单击(当前服务状态为“生产”),我在WSO2 Governance Registry控制台中遇到以下错误。

Failed to invoke aspect: An exception occurred while executing handler chain. 无法调用方面:执行处理程序链时发生异常。 APIManager endpoint URL or credentials are not definedAPI Publish might fail** 未定义APIManager端点URL或凭据API发布可能会失败**

Below is my WSO2 Gov reg configuration as described in this link . 以下是此链接中描述的WSO2 Gov reg配置。

<state id="Production">
                <datamodel>
                    <data name="transitionExecution">
                        <execution forEvent="Demote" class="org.wso2.carbon.governance.registry.extensions.executors.DemoteActionExecutor">
                        </execution>
                        <execution forEvent="Publish" class="org.wso2.carbon.governance.registry.extensions.executors.apistore.ApiStoreExecutor">
                                <parameter name="apim.endpoint" value="http://localhost:9763/store"/>
                                <parameter name="apim.username" value="admin"/>
                                <parameter name="apim.password" value="admin"/>
                                <parameter name="default.tier" value="Unlimited"/>
                                <parameter name="throttlingTier" value="Unlimited,Unlimited,Unlimited,Unlimited,Unlimited"/>
                        </execution>
                    </data>
                </datamodel>
                <transition event="Publish" target="Published.to.APIStore"/>
                <transition event="Demote" target="Testing"/>
            </state>
            <state id="Published.to.APIStore">                   
            </state> 

Stack trace: 堆栈跟踪:

[2014-03-06 15:43:30,623] ERROR {org.wso2.carbon.governance.custom.lifecycles.checklist.util.InvokeAspectUtil} - Failed to invoke action Publish of aspect Service LifeCycle on resource /_system/governance/branches/production/services/com/w3schools/www/webservices/1.2.0/Temp_Convert_Service. [2014-03-06 15:43:30,623]错误{org.wso2.carbon.governance.custom.lifecycles.checklist.util.InvokeAspectUtil}-无法在资源/ _system / governance / branches上调用方面服务LifeCycle的操作发布/production/services/com/w3schools/www/webservices/1.2.0/Temp_Convert_Service。 An exception occurred while execut ing handler chain. 执行处理程序链时发生异常。 APIManager endpoint URL or credentials are not definedAPI Publish might fail org.wso2.carbon.registry.core.exceptions.RegistryException: An exception occurred while executing handler chain. APIManager端点URL或凭据未定义API发布可能会导致org.wso2.carbon.registry.core.exceptions.RegistryException失败:执行处理程序链时发生异常。 APIManager endpoint URL or credentials are not def inedAPI Publish might fail at org.wso2.carbon.registry.core.jdbc.handlers.HandlerManager.invokeAspect(HandlerManager.java:2814) at org.wso2.carbon.registry.core.jdbc.handlers.HandlerLifecycleManager.invokeAspect(HandlerLifecycleManager.java:542) at org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.invokeAspect(EmbeddedRegistry.java:2550) at org.wso2.carbon.registry.core.caching.CacheBackedRegistry.invokeAspect(CacheBackedRegistry.java:384) at org.wso2.carbon.registry.core.session.UserRegistry.invokeAspect(UserRegistry.java:1395) at org.wso2.carbon.governance.custom.lifecycles.checklist.util.InvokeAspectUtil.invokeAspect(InvokeAspectUtil.java:52) at org.wso2.carbon.governance.custom.lifecycles.checklist.services.LifecyclesAdminService.invokeAspect(LifecyclesAdminService.java:47) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect APIManager端点URL或凭据未定义API的发布可能会在org.wso2.carbon.registry.core.jdbc上的org.wso2.carbon.registry.core.jdbc.handlers.HandlerManager.invokeAspect(HandlerManager.java:2814)处失败。 org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.invokeAspect(EmbeddedRegistry.java:2550)上的Handlers.HandlerLifecycleManager.invokeAspect(HandlerLifecycleManager.java:542)在org.wso2.carbon.registry.core.caching.CacheBackedRegistry上。 org.wso2.carbon.governance.custom.lifecycles.checklist.util.InvokeAspectUtil上的org.wso2.carbon.registry.core.session.UserRegistry.invokeAspect(UserRegistry.java:1395)上的invokeAspect(CacheBackedRegistry.java:384)。在sun的org.wso2.carbon.governance.custom.lifecycles.checklist.services.LifecyclesAdminService.invokeAspect(LifecyclesAdminService.java:47)处的invokeAspect(InvokeAspectUtil.java:52)在sun处的sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)处。在sun.reflect上反射(NativeMethodAccessorImpl.java:57) .DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212) org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)上的java.lang.reflect.Method.invoke(Method.java:606)上的.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

Please suggest. 请提出建议。

This link in WSO2 docs affirms that you have to modify /repository/resources/lifecycles/configurations.xml, but I think this is incorrect . WSO2文档中的链接确认您必须修改/repository/resources/lifecycles/configurations.xml,但是我认为这是不正确的 Infact in Greg 4.6.0 this file is no more used. 实际上,在Greg 4.6.0中不再使用此文件。 Another version of it is stored in a small db and you MUST make changes from GReg administration console just go to Extensions->Configure->Lifecycles and edit ServiceLifeCycle with your APIM parameters. 它的另一个版本存储在一个小数据库中,您必须在GReg管理控制台中进行更改,只需转到Extensions-> Configure-> Lifecycles并使用API​​M参数编辑ServiceLifeCycle

Use G-Reg version 5.0.0 and above and API manager 1.9.0 or 1.9.1. 使用G-Reg版本5.0.0和更高版本以及API管理器1.9.0或1.9.1。 Refer the following documentation 请参阅以下文档

https://docs.wso2.com/display/AM190/Integrating+with+WSO2+Governance+Registry https://docs.wso2.com/display/AM190/Integrating+with+WSO2+Governance+Registry

Thanks 谢谢

Prasanna 人员Prasanna

对于apim端点,仅使用http://localhost:9763/而不是http://localhost:9763/store.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM