启动wso2服务器时出错:org.wso2.carbon.user.core.UserStoreException:错误!子查询在返回超过1行

时间:2019-05-27 11:27:04

标签: wso2 wso2-am wso2carbon

尝试在vpn时访问系统中的外部数据库时,WSO2 api管理员出现错误。

    Caused by: org.wso2.carbon.user.core.UserStoreException: Error! Subquery returns more than 1 row
    at org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.addAuthorizationForRole(JDBCAuthorizationManager.java:1079)
    at org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.authorizeRole(JDBCAuthorizationManager.java:527)
    ... 37 more
Caused by: java.sql.SQLException: Subquery returns more than 1 row
    at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129)
    at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97)
    at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122)
    at com.mysql.cj.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:970)
    at com.mysql.cj.jdbc.ClientPreparedStatement.executeQuery(ClientPreparedStatement.java:1020)
    at sun.reflect.GeneratedMethodAccessor33.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.apache.tomcat.jdbc.pool.StatementFacade$StatementProxy.invoke(StatementFacade.java:114)
    at com.sun.proxy.$Proxy19.executeQuery(Unknown Source)
    at org.wso2.carbon.user.core.authorization.JDBCAuthorizationManager.addAuthorizationForRole(JDBCAuthorizationManager.java:1025)
    ... 38 more

1 个答案:

答案 0 :(得分:0)

由于其中一个表中的数据错误,子查询返回的行多于1条。解决了通过清除和更新插入的数据来更新表的问题。