通过SCIM添加用户时出现WSO2 API管理器错误

问题描述 投票:1回答:1

我正在使用WSO2身份服务器,并且尝试通过SCIM创建用户。出现以下错误。我已经尝试过了,并且可以更早地工作。最近的更改是安装了CA签名证书。不确定是否有任何关系。

{
  "Errors": [
    {
      "description": "Error in adding the user: mytestuser to the user store. Error while encrypting the Credential for User Name mytestuser",
      "code": "500"
    }
  ]
} 

In the logs i can see , 

ID: [-1234] [] [2017-02-21 03:24:39,797] ERROR {org.wso2.charon.core.protocol.endpoints.UserResourceEndpoint} -  Internal server error while creating new resource. 
org.wso2.charon.core.exceptions.CharonException: Error in adding the user: mytestuser to the user store. Error while encrypting the Credential for User Name mytestuser
    at org.wso2.carbon.identity.scim.provider.impl.SCIMUserManager.createUser(SCIMUserManager.java:179)
    at org.wso2.charon.core.protocol.endpoints.UserResourceEndpoint.


    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1715)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Thread.java:745)
Caused by: org.wso2.carbon.user.core.UserStoreException: Error while encrypting the Credential for User Name mytestuser
    at org.wso2.carbon.user.core.common.AbstractUserStoreManager.callSecure(AbstractUserStoreManager.java:168)
    at org.wso2.carbon.user.core.common.AbstractUserStoreManager.addUser(AbstractUserStoreManager.java:1339)
    at org.wso2.carbon.user.core.common.AbstractUserStoreManager.addUser(AbstractUserStoreManager.java:1498)
    at org.wso2.carbon.identity.scim.provider.impl.SCIMUserManager.createUser(SCIMUserManager.java:173)
    ... 54 more
Caused by: java.security.PrivilegedActionException: java.lang.reflect.InvocationTargetException
    at java.security.AccessController.doPrivileged(Native Method)
    at org.wso2.carbon.user.core.common.AbstractUserStoreManager.callSecure(AbstractUserStoreManager.java:158)
    ... 57 more
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke

任何帮助将不胜感激

wso2 wso2is wso2-am wso2carbon
1个回答
0
投票

你好,@乔治·奥凡里奥(Jorge Infante Osorio),我遇到过类似情况。我无法设置新用户。错误如下。只有在我遇到此问题之后,我才安装自签名证书。

2019-11-28 10:27:26,344]错误{org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler}-用户配置失败!org.wso2.carbon.identity.application.authentication.framework.exception.FrameworkException:设置用户时出错:testuser在org.wso2.carbon.identity.application.authentication.framework.handler.provisioning.impl.DefaultProvisioningHandler.handle(DefaultProvisioningHandler.java:182)在org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler.handleJitProvisioning(DefaultStepBasedSequenceHandler.java:610)处在org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler.callJitProvisioning(DefaultStepBasedSequenceHandler.java:576)处在org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.JITProvisioningPostAuthenticationHandler.callDefaultProvisioningHandler(JITProvisioningPostAuthenticationHandler.java:676)处在org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.JITProvisioningPostAuthenticationHandler.handleRequestFlow(JITProvisioningPostAuthenticationHandler.java:328)处在org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.JITProvisioningPostAuthenticationHandler.handle(JITProvisioningPostAuthenticationHandler.java:147)处在org.wso2.carbon.identity.application.authentication.framework.services.PostAuthenticationMgtService.executePostAuthnHandler(PostAuthenticationMgtService.java:116)

© www.soinside.com 2019 - 2024. All rights reserved.