Я использую wso2is-km 5.6.0 и wso2am 2.5.0. Я использую scim user api для получения списка пользователей из хранилища пользователей.
API: https://localhost:9444/wso2/scim/Users
Но я получил следующую проблему.
ERROR {org.wso2.charon.core.protocol.endpoints.UserResourceEndpoint} - Internal server error.
org.wso2.charon.core.exceptions.CharonException: Error while retrieving users from user store..
at org.wso2.carbon.identity.scim.provider.impl.SCIMUserManager.listUsers(SCIMUserManager.java:330)
at org.wso2.charon.core.protocol.endpoints.UserResourceEndpoint.list(UserResourceEndpoint.java:465)
at org.wso2.carbon.identity.scim.provider.resources.UserResource.getUser(UserResource.java:206)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.wso2.carbon.user.core.UserStoreException: Database error occurred while listing users for a property : scimId & value : % & profile name : default
at org.wso2.carbon.user.core.common.AbstractUserStoreManager.callSecure(AbstractUserStoreManager.java:173)
at org.wso2.carbon.user.core.common.AbstractUserStoreManager.getUserList(AbstractUserStoreManager.java:1294)
at org.wso2.carbon.identity.scim.provider.impl.SCIMUserManager.listUsers(SCIMUserManager.java:313)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor183.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.wso2.carbon.user.core.common.AbstractUserStoreManager$2.run(AbstractUserStoreManager.java:166)
... 67 more
Caused by: org.wso2.carbon.user.core.UserStoreException: Database error occurred while listing users for a property : scimId & value : % & profile name : default
at org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager.getUserListFromProperties(JDBCUserStoreManager.java:2862)
at org.wso2.carbon.user.core.common.AbstractUserStoreManager.doGetUserList(AbstractUserStoreManager.java:1450)
at org.wso2.carbon.user.core.common.AbstractUserStoreManager.getUserList(AbstractUserStoreManager.java:1388)
Caused by: java.sql.SQLException: No value specified for parameter 6
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:127)
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:95)
at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122)
at com.mysql.cj.jdbc.ClientPreparedStatement.executeQuery(ClientPreparedStatement.java:1036)
at sun.reflect.GeneratedMethodAccessor36.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.$Proxy20.executeQuery(Unknown Source)
at org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager.getUserListFromProperties(JDBCUserStoreManager.java:2845)
... 75 more
ПРИМЕЧАНИЕ: здесь я использую драйвер mysql jdbc.