简体   繁体   English

WSO2 APIUtil 为租户创建轴配置时出错

[英]WSO2 APIUtil Error while creating axis configuration for tenant

I'm using WSO2 API-Manager 3.0.我正在使用 WSO2 API-Manager 3.0。 When I browse to the DevPortal (before signing in) I can see the list of APIs.当我浏览到 DevPortal(在登录之前)时,我可以看到 API 列表。

But when I login (using my email as assigned by my organization's IAM team) I get a red pop-up message saying 'Error While Loading APIs':但是当我登录时(使用我的组织的 IAM 团队分配的 email)我收到一条红色的弹出消息,上面写着“加载 API 时出错”:

在此处输入图像描述

The log file revels this message:日志文件显示此消息:

api-manager_1             | [2020-04-13 17:47:58,602]  INFO - PermissionUpdater Permission cache updated for tenant -1234
api-manager_1             | [2020-04-13 17:48:00,125] ERROR - APIUtil Error while creating axis configuration for tenant mydomain.com
api-manager_1             | java.lang.RuntimeException: Error while getting tenant activation status.
api-manager_1             |     at org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.getTenantConfigurationContext(TenantAxisUtils.java:126) ~[org.wso2.carbon.core_4.5.1.jar:?]
api-manager_1             |     at org.wso2.carbon.core.multitenancy.utils.TenantAxisUtils.getTenantAxisConfiguration(TenantAxisUtils.java:104) ~[org.wso2.carbon.core_4.5.1.jar:?]
api-manager_1             |     at org.wso2.carbon.apimgt.impl.utils.APIUtil.loadTenantConfigBlockingMode_aroundBody372(APIUtil.java:6166) [org.wso2.carbon.apimgt.impl_6.5.349.jar:?]
api-manager_1             |     at org.wso2.carbon.apimgt.impl.utils.APIUtil.loadTenantConfigBlockingMode(APIUtil.java:6162) [org.wso2.carbon.apimgt.impl_6.5.349.jar:?]
api-manager_1             |     at org.wso2.carbon.apimgt.rest.api.util.impl.WebAppAuthenticatorImpl.authenticate(WebAppAuthenticatorImpl.java:129) [org.wso2.carbon.apimgt.rest.api.util_6.5.349.jar:?]
api-manager_1             |     at org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor.handleRequest(OAuthAuthenticationInterceptor.java:121) [org.wso2.carbon.apimgt.rest.api.util_6.5.349.jar:?]
api-manager_1             |     at org.wso2.carbon.apimgt.rest.api.util.interceptors.auth.OAuthAuthenticationInterceptor.handleMessage(OAuthAuthenticationInterceptor.java:66) [org.wso2.carbon.apimgt.rest.api.util_6.5.349.jar:?]
api-manager_1             |     at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308) [cxf-core-3.2.8.jar:3.2.8]
api-manager_1             |     at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) [cxf-core-3.2.8.jar:3.2.8]
api-manager_1             |     at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:267) [cxf-rt-transports-http-3.2.8.jar:3.2.8]
api-manager_1             |     at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:234) [cxf-rt-transports-http-3.2.8.jar:3.2.8]
api-manager_1             |     at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:208) [cxf-rt-transports-http-3.2.8.jar:3.2.8]
api-manager_1             |     at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160) [cxf-rt-transports-http-3.2.8.jar:3.2.8]

(plus another 200 lines of trace-back) (加上另外 200 行回溯)

When I login to the Publisher the page loads with a spinning icon that says "Loading Settings" and stays there forever:当我登录到 Publisher 时,页面会加载一个旋转图标,上面写着“正在加载设置”并永远停留在那里:

在此处输入图像描述

Again the log file reveals the same message as above.日志文件再次显示与上面相同的消息。

Note: Other users in my organization are able to login and view the APIs just fine.注意:我组织中的其他用户可以正常登录和查看 API。 But they are not using an email address to authenticate.但他们没有使用 email 地址进行身份验证。 I am the only using an email address to authenticate.我是唯一使用 email 地址进行身份验证的人。

Another Note: Our organization uses an IAM server for authentication.另一个注意事项:我们的组织使用 IAM 服务器进行身份验证。

Any suggestions on what to try next to resolve this?关于下一步尝试解决此问题的任何建议?

In WSO2 servers, the username john@tenant.com represents the user john in abc.com tenant.在 WSO2 服务器中,用户名john@tenant.com代表abc.com租户中的用户john Therefore, you email domain has been identified as a tenant domain.因此,您的 email 域已被标识为租户域。 Try the below format for your username.尝试以下格式作为您的用户名。 It should work.它应该工作。

john@gmail.com@tenant.com

If you don't have multiple tenants, use carbon.super as the tenant.如果您没有多个租户,请使用carbon.super作为租户。 So your username should go like this.所以你的用户名应该像这样 go 。

john@gmail.com@carbon.super

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

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