【问题标题】:WSO2 Governance Registry not publishing Service into WSO2 API ManagerWSO2 Governance Registry 未将服务发布到 WSO2 API Manager
【发布时间】:2014-03-06 10:38:47
【问题描述】:

点击“发布”按钮(当前服务状态“生产”)我在 WSO2 Governance Registry 控制台中遇到以下错误。

调用方面失败:执行处理程序链时发生异常。 APIManager 端点 URL 或凭据未定义API 发布可能会失败**

下面是我在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> 

堆栈跟踪:

[2014-03-06 15:43:30,623] 错误 {org.wso2.carbon.governance.custom.lifecycles.checklist.util.InvokeAspectUtil} - 无法调用方面服务的操作发布 资源 /_system/governance/branches/production/services/com/w3schools/www/webservices/1.2.0/Temp_Convert_Service 上的生命周期。执行时发生异常 处理程序链。 APIManager 端点 URL 或凭据未定义API 发布可能会失败 org.wso2.carbon.registry.core.exceptions.RegistryException:执行处理程序链时发生异常。 APIManager 端点 URL 或凭证不是 def inedAPI 发布可能会失败 在 org.wso2.carbon.registry.core.jdbc.handlers.HandlerManager.invokeAspect(HandlerManager.java:2814) 在 org.wso2.carbon.registry.core.jdbc.handlers.HandlerLifecycleManager.invokeAspect(HandlerLifecycleManager.java:542) 在 org.wso2.carbon.registry.core.jdbc.EmbeddedRegistry.invokeAspect(EmbeddedRegistry.java:2550) 在 org.wso2.carbon.registry.core.caching.CacheBackedRegistry.invokeAspect(CacheBackedRegistry.java:384) 在 org.wso2.carbon.registry.core.session.UserRegistry.invokeAspect(UserRegistry.java:1395) 在 org.wso2.carbon.governance.custom.lifecycles.checklist.util.InvokeAspectUtil.invokeAspect(InvokeAspectUtil.java:52) 在 org.wso2.carbon.governance.custom.lifecycles.checklist.services.LifecyclesAdminService.invokeAspect(LifecyclesAdminService.java:47) 在 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 在 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 在 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 在 java.lang.reflect.Method.invoke(Method.java:606) 在 org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)

请提出建议。

【问题讨论】:

    标签: web-services wso2 wso2carbon wso2greg


    【解决方案1】:

    这个link in WSO2 docs 确认你必须修改/repository/resources/lifecycles/configurations.xml,但我认为这是不正确。事实上,在 Greg 4.6.0 中,该文件不再使用。它的另一个版本存储在一个小型数据库中,您必须从 GReg 管理控制台进行更改 只需转到 Extensions->Configure->Lifecycles 并编辑 ServiceLifeCycle 使用您的 APIM 参数。

    【讨论】:

      【解决方案2】:

      使用 G-Reg 5.0.0 及更高版本和 API 管理器 1.9.0 或 1.9.1。参考以下文档

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

      谢谢

      大神

      【讨论】:

        【解决方案3】:

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

        【讨论】:

        • 试过了..也尝试替换ip而不是localhost..同样的异常来了......
        • 您使用的 GReg 和 AM 版本是什么?
        • wso2am-1.6.0, wso2greg-4.6.0
        • 据我所知,AM 1.6 与 GReg 4.6.0 的兼容性存在一些问题。但这适用于 AM 1.5。试试 AM 1.5。它应该可以工作。
        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多