By: Mohamad Taheri user 29 Oct 2016 at 12:22 a.m. CDT

9 Responses
Mohamad Taheri gravatar
Hello, I Have a new Issue with SCIM, I want to update my users entitlements but SCIM return 404 Error. I think it's for 'required values' that missing,(as mention in RFC-7644). which values are required. I can update my users 'password' easily but 'entitlements' not. Request Body: ``` {"schemas":["urn:ietf:params:scim:schemas:core:2.0:User"],"entitlements":[{"value": "https://gluu.loc/oxauth/seam/resource/restv1/uma/scopes/get_suppliers", "type": "1473056670798"}]} ``` ResponseBody: ``` {"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"status":"404","scimType":"invalidValue","detail":"Resource @!8728.5655.39A8.0967!0001!9610.29F7!0000!8301.DE8F not found"} ```

By Valentino Pecaoco user 29 Oct 2016 at 3:33 a.m. CDT

Valentino Pecaoco gravatar
Hi Mohamad, Please post complete request. Above is not a complete request. Please also post the relevant code snippets and attach the relevant sections of the log files showing the stack trace. Thanks, Val

By Mohamad Taheri user 29 Oct 2016 at 4:42 a.m. CDT

Mohamad Taheri gravatar
``` RequestUrl https://gluu.loc/identity/seam/resource/restv1/scim/v2/Users/@!8728.5655.39A8.0967!0001!9610.29F7!0000!8301.DE8F RequestHeader {'Content-type': 'application/json; charset=utf-8', 'Host': 'gluu.loc', 'Authorization': 'Bearer b9daff5e-346b-43fe-883a-f7fe901d6784/5099.1723.1BCB.B22E.506A.0FC2.7E1B.6DE5'} RequestBody {"schemas":["urn:ietf:params:scim:schemas:core:2.0:User"],"entitlements":[{"type": "1473056670798", "value": "https://gluu.loc/oxauth/seam/resource/restv1/uma/scopes/get_suppliers"}]} ``` ``` ResponseStatus 404 ResponseHeader {'Server': 'Apache/2.4.18 (Ubuntu)', 'Keep-Alive': 'timeout=5, max=100', 'Transfer-Encoding': 'chunked', 'Set-Cookie': 'JSESSIONID=C4B79C625D910E2B0B12B6444BBE9005; Path=/identity/; Secure; HttpOnly;HttpOnly', 'Connection': 'Keep-Alive', 'Content-Type': 'application/scim+json', 'Date': 'Sat, 29 Oct 2016 09:39:16 GMT'} ResponseBody: {"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"status":"404","scimType":"invalidValue","detail":"Resource @!8728.5655.39A8.0967!0001!9610.29F7!0000!8301.DE8F not found"} ``` LOGS ``` INFO | jvm 1 | 2016/10/29 09:39:16 | 2016-10-29 09:39:16,308 INFO [org.xdi.oxauth.auth.Authenticator] Authentication success for Client: '@!8728.5655.39A8.0967!0001!9610.29F7!0008!A598.99F2' INFO | jvm 1 | 2016/10/29 09:39:16 | 2016-10-29 09:39:16,391 INFO [oxtrust.service.scim2.jackson.custom.UserDeserializer] deserialize() INFO | jvm 1 | 2016/10/29 09:39:16 | 2016-10-29 09:39:16,445 INFO [org.gluu.oxtrust.service.scim2.Scim2UserService] Setting meta: update user INFO | jvm 1 | 2016/10/29 09:39:16 | 2016-10-29 09:39:16,445 INFO [org.gluu.oxtrust.util.Utils] IN Utils.syncEmailForward()... INFO | jvm 1 | 2016/10/29 09:39:16 | 2016-10-29 09:39:16,446 INFO [org.gluu.oxtrust.util.Utils] LEAVING Utils.syncEmailForward()... INFO | jvm 1 | 2016/10/29 09:39:16 | 2016-10-29 09:39:16,448 ERROR [gluu.oxtrust.ws.rs.scim2.UserWebService] Failed to update user INFO | jvm 1 | 2016/10/29 09:39:16 | org.gluu.site.ldap.persistence.exception.EntryPersistenceException: Failed to update entry: inum=@!8728.5655.39A8.0967!0001!9610.29F7!0000!8301.DE8F,ou=people,o=@!8728.5655.39A8.0967!0001!9610.29F7,o=gluu INFO | jvm 1 | 2016/10/29 09:39:16 | at org.gluu.site.ldap.persistence.LdapEntryManager.merge(LdapEntryManager.java:192) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.gluu.site.ldap.persistence.AbstractEntryManager.merge(AbstractEntryManager.java:270) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.gluu.site.ldap.persistence.AbstractEntryManager.merge(AbstractEntryManager.java:285) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.gluu.oxtrust.ldap.service.PersonService.updatePerson(PersonService.java:113) INFO | jvm 1 | 2016/10/29 09:39:16 | at sun.reflect.GeneratedMethodAccessor1941.invoke(Unknown Source) INFO | jvm 1 | 2016/10/29 09:39:16 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) INFO | jvm 1 | 2016/10/29 09:39:16 | at java.lang.reflect.Method.invoke(Method.java:498) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:79) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:196) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:114) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.gluu.oxtrust.ldap.service.PersonService_$$_javassist_seam_17.updatePerson(PersonService_$$_javassist_seam_17.java) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.gluu.oxtrust.service.scim2.Scim2UserService.updateUser(Scim2UserService.java:161) INFO | jvm 1 | 2016/10/29 09:39:16 | at sun.reflect.GeneratedMethodAccessor1947.invoke(Unknown Source) INFO | jvm 1 | 2016/10/29 09:39:16 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) INFO | jvm 1 | 2016/10/29 09:39:16 | at java.lang.reflect.Method.invoke(Method.java:498) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:79) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:196) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:114) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.gluu.oxtrust.service.scim2.Scim2UserService_$$_javassist_seam_67.updateUser(Scim2UserService_$$_javassist_seam_67.java) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.gluu.oxtrust.ws.rs.scim2.UserWebService.updateUser(UserWebService.java:318) INFO | jvm 1 | 2016/10/29 09:39:16 | at sun.reflect.GeneratedMethodAccessor1946.invoke(Unknown Source) INFO | jvm 1 | 2016/10/29 09:39:16 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) INFO | jvm 1 | 2016/10/29 09:39:16 | at java.lang.reflect.Method.invoke(Method.java:498) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.resteasy.ResteasyContextInjectionInterceptor.aroundInvoke(ResteasyContextInjectionInterceptor.java:59) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:79) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:196) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:114) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.gluu.oxtrust.ws.rs.scim2.UserWebService_$$_javassist_seam_66.updateUser(UserWebService_$$_javassist_seam_66.java) INFO | jvm 1 | 2016/10/29 09:39:16 | at sun.reflect.GeneratedMethodAccessor1945.invoke(Unknown Source) INFO | jvm 1 | 2016/10/29 09:39:16 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) INFO | jvm 1 | 2016/10/29 09:39:16 | at java.lang.reflect.Method.invoke(Method.java:498) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:167) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:269) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:227) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:216) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:542) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:524) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:126) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.resteasy.ResteasyResourceAdapter$1.process(ResteasyResourceAdapter.java:145) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:65) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.resteasy.ResteasyResourceAdapter.getResource(ResteasyResourceAdapter.java:120) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.servlet.SeamResourceServlet.service(SeamResourceServlet.java:80) INFO | jvm 1 | 2016/10/29 09:39:16 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:731) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.web.RewriteFilter.doFilter(RewriteFilter.java:63) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:190) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316) INFO | jvm 1 | 2016/10/29 09:39:16 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) INFO | jvm 1 | 2016/10/29 09:39:16 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) INFO | jvm 1 | 2016/10/29 09:39:16 | at java.lang.Thread.run(Thread.java:745) INFO | jvm 1 | 2016/10/29 09:39:16 | Caused by: org.gluu.site.ldap.persistence.exception.EntryPersistenceException: Failed to update entry: inum=@!8728.5655.39A8.0967!0001!9610.29F7!0000!8301.DE8F,ou=people,o=@!8728.5655.39A8.0967!0001!9610.29F7,o=gluu INFO | jvm 1 | 2016/10/29 09:39:16 | at org.gluu.site.ldap.persistence.LdapEntryManager.merge(LdapEntryManager.java:186) INFO | jvm 1 | 2016/10/29 09:39:16 | ... 105 more INFO | jvm 1 | 2016/10/29 09:39:16 | org.gluu.site.ldap.persistence.exception.EntryPersistenceException: Failed to update entry: inum=@!8728.5655.39A8.0967!0001!9610.29F7!0000!8301.DE8F,ou=people,o=@!8728.5655.39A8.0967!0001!9610.29F7,o=gluu INFO | jvm 1 | 2016/10/29 09:39:16 | at org.gluu.site.ldap.persistence.LdapEntryManager.merge(LdapEntryManager.java:192) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.gluu.site.ldap.persistence.AbstractEntryManager.merge(AbstractEntryManager.java:270) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.gluu.site.ldap.persistence.AbstractEntryManager.merge(AbstractEntryManager.java:285) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.gluu.oxtrust.ldap.service.PersonService.updatePerson(PersonService.java:113) INFO | jvm 1 | 2016/10/29 09:39:16 | at sun.reflect.GeneratedMethodAccessor1941.invoke(Unknown Source) INFO | jvm 1 | 2016/10/29 09:39:16 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) INFO | jvm 1 | 2016/10/29 09:39:16 | at java.lang.reflect.Method.invoke(Method.java:498) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:79) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:196) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:114) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.gluu.oxtrust.ldap.service.PersonService_$$_javassist_seam_17.updatePerson(PersonService_$$_javassist_seam_17.java) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.gluu.oxtrust.service.scim2.Scim2UserService.updateUser(Scim2UserService.java:161) INFO | jvm 1 | 2016/10/29 09:39:16 | at sun.reflect.GeneratedMethodAccessor1947.invoke(Unknown Source) INFO | jvm 1 | 2016/10/29 09:39:16 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) INFO | jvm 1 | 2016/10/29 09:39:16 | at java.lang.reflect.Method.invoke(Method.java:498) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:79) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:196) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:114) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.gluu.oxtrust.service.scim2.Scim2UserService_$$_javassist_seam_67.updateUser(Scim2UserService_$$_javassist_seam_67.java) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.gluu.oxtrust.ws.rs.scim2.UserWebService.updateUser(UserWebService.java:318) INFO | jvm 1 | 2016/10/29 09:39:16 | at sun.reflect.GeneratedMethodAccessor1946.invoke(Unknown Source) INFO | jvm 1 | 2016/10/29 09:39:16 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) INFO | jvm 1 | 2016/10/29 09:39:16 | at java.lang.reflect.Method.invoke(Method.java:498) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.resteasy.ResteasyContextInjectionInterceptor.aroundInvoke(ResteasyContextInjectionInterceptor.java:59) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:79) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:196) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:114) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.gluu.oxtrust.ws.rs.scim2.UserWebService_$$_javassist_seam_66.updateUser(UserWebService_$$_javassist_seam_66.java) INFO | jvm 1 | 2016/10/29 09:39:16 | at sun.reflect.GeneratedMethodAccessor1945.invoke(Unknown Source) INFO | jvm 1 | 2016/10/29 09:39:16 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) INFO | jvm 1 | 2016/10/29 09:39:16 | at java.lang.reflect.Method.invoke(Method.java:498) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:167) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:269) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:227) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:216) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:542) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:524) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:126) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.resteasy.ResteasyResourceAdapter$1.process(ResteasyResourceAdapter.java:145) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:65) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.resteasy.ResteasyResourceAdapter.getResource(ResteasyResourceAdapter.java:120) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.servlet.SeamResourceServlet.service(SeamResourceServlet.java:80) INFO | jvm 1 | 2016/10/29 09:39:16 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:731) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.web.RewriteFilter.doFilter(RewriteFilter.java:63) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:190) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316) INFO | jvm 1 | 2016/10/29 09:39:16 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) INFO | jvm 1 | 2016/10/29 09:39:16 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) INFO | jvm 1 | 2016/10/29 09:39:16 | at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) INFO | jvm 1 | 2016/10/29 09:39:16 | at java.lang.Thread.run(Thread.java:745) INFO | jvm 1 | 2016/10/29 09:39:16 | Caused by: org.gluu.site.ldap.persistence.exception.EntryPersistenceException: Failed to update entry: inum=@!8728.5655.39A8.0967!0001!9610.29F7!0000!8301.DE8F,ou=people,o=@!8728.5655.39A8.0967!0001!9610.29F7,o=gluu INFO | jvm 1 | 2016/10/29 09:39:16 | at org.gluu.site.ldap.persistence.LdapEntryManager.merge(LdapEntryManager.java:186) INFO | jvm 1 | 2016/10/29 09:39:16 | ... 105 more ```

By Valentino Pecaoco user 31 Oct 2016 at 7:56 a.m. CDT

Valentino Pecaoco gravatar
> I think it's for 'required values' that missing > {"schemas":["urn:ietf:params:scim:schemas:core:2.0:User"],"entitlements":[{"type": "1473056670798", "value": "https://gluu.loc/oxauth/seam/resource/restv1/uma/scopes/get_suppliers"}]} Again, above is not a valid request. The required parameters are also the same as create user, I suppose. [https://gluu.org/docs/user-management/scim/#required-parameters](https://gluu.org/docs/user-management/scim/#required-parameters) Attached is result from our unit test.

By Mohamad Taheri user 06 Nov 2016 at 12:29 a.m. CDT

Mohamad Taheri gravatar
Hi Val. I don't know where is my mistake. Here is my user info: ``` {"id":"@!EA68.1DB8.FF53.B4D4!0001!C291.8753!0000!7794.DB12","externalId":null,"meta":{"created":null,"lastModified":null,"location":"https://gluu.loc/identity/seam/resource/restv1/scim/v2/Users/@!EA68.1DB8.FF53.B4D4!0001!C291.8753!0000!7794.DB12","version":null,"resourceType":"User"},"schemas":["urn:ietf:params:scim:schemas:core:2.0:User"],"userName":"allinone","name":{"formatted":"allinone allinone","familyName":"allinone","givenName":"allinone","middleName":null,"honorificPrefix":null,"honorificSuffix":null},"displayName":"allinone","nickName":null,"profileUrl":null,"title":null,"userType":null,"preferredLanguage":null,"locale":null,"timezone":null,"active":null,"password":"Hidden for Privacy Reasons","emails":[{"operation":null,"value":"allinone@gmail.com","display":"allinone@gmail.com","primary":true,"reference":null,"type":"other"}],"phoneNumbers":[],"ims":[],"photos":[],"addresses":[],"groups":[],"entitlements":[],"roles":[],"x509Certificates":[]} ``` and this is my request: ``` {"schemas":["urn:ietf:params:scim:schemas:core:2.0:User"],"userName":"allinone","name":{"givenName":"allinone","familyName":"allinone","middleName":"","honorificPrefix":"","honorificSuffix":""},"displayName":"allinone","groups":[],"entitlements":[{"value": "https://gluu.loc/oxauth/seam/resource/restv1/uma/scopes/get_supplier", "type": "1473056670798"}]} ``` Request Response: ``` {"schemas":["urn:ietf:params:scim:api:messages:2.0:Error"],"status":"404","scimType":"invalidValue","detail":"Resource @!EA68.1DB8.FF53.B4D4!0001!C291.8753!0000!7794.DB12 not found"} ```

By Valentino Pecaoco user 07 Nov 2016 at 3 a.m. CST

Valentino Pecaoco gravatar
> Please also post the relevant code snippets Have you tried to use [SCIM-Client](https://github.com/GluuFederation/SCIM-Client)? There are also lots of unit tests there for reference. Try this first so that you are not manually constructing your request (prone to error).

By Mohamad Taheri user 08 Nov 2016 at 11:39 p.m. CST

Mohamad Taheri gravatar
Is it mandatory to use SCIM-Client? I can update my user password, but their entitlements, can't.

By Valentino Pecaoco user 09 Nov 2016 at 3:06 a.m. CST

Valentino Pecaoco gravatar
> Is it mandatory to use SCIM-Client? Aha :-) So maybe you can check the code of SCIM-Client on how it is doing it.

By Mohamad Taheri user 09 Nov 2016 at 9:50 a.m. CST

Mohamad Taheri gravatar
Ok, thanks Val. **: )**

By Aliaksandr Samuseu staff 12 Nov 2016 at 1:18 p.m. CST

Aliaksandr Samuseu gravatar
Closing due to inactivity.