1

尝试通过 SCIM 创建用户时,我不断收到此异常:

Caused by: java.lang.NullPointerException
    at java.util.concurrent.ConcurrentHashMap.hash(ConcurrentHashMap.java:333)
    at java.util.concurrent.ConcurrentHashMap.containsKey(ConcurrentHashMap.java:1016)
    at org.wso2.charon.core.protocol.endpoints.AbstractResourceEndpoint.getDecoder(AbstractResourceEndpoint.java:84)
    at org.wso2.charon.core.protocol.endpoints.UserResourceEndpoint.create(UserResourceEndpoint.java:138)
    at org.wso2.carbon.identity.scim.provider.resources.UserResource.createUser(UserResource.java:145)
    at sun.reflect.GeneratedMethodAccessor80.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
    at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)

我正在使用 JDBC 存储管理器,我的请求详细信息如下:

网址:/wso2/scim/用户
有效负载:

   {"wso2Extension":
    {
      "dateOfBirth":"17/01/1982",
      "secQuestion":"What was your childhood nickname?",
      "lastName":"Chandra",
      "mail":"ram.chandra@yopmail.com",
      "phoneNumber":"1111111111",
      "secAnswer":"nickname",
      "ssn":"123456789",
      "firstName":"Ram",
      "prefMethComm":"email",
      "preferredLanguage":"en-US"},
 "schemas":[""],
 "userName":"ram.chandra@yopmail.com",
 "password":"somepassword"
}

来自 SCIM 的 REST 响应:

    {
    "Errors": [
        {
            "description": "Error in adding the user: ram.chandra@yopmail.com to the user store..",
            "code": "500"
        }
    ]
}

任何调试此问题的指针将不胜感激。

4

1 回答 1

1

It turned out that the SCIM claim configuration for preferredLanguage was incorrect. WSO2 should give a more specific exception for such issues.

于 2014-08-07T10:31:27.617 回答