wso2 / product-apim

Welcome to the WSO2 API Manager source code! For info on working with the WSO2 API Manager repository and contributing code, click the link below.
http://wso2.github.io/
Apache License 2.0
853 stars 787 forks source link

[3.1.0][Dev-Portal] Error when trying to self register as a tenant user #9665

Open menakaj opened 3 years ago

menakaj commented 3 years ago

Description:

An error is thrown in the console when trying to register as a tenant user in dev portal.

Steps to reproduce:

  1. Create a new tenant.
  2. Go to dev portal and try to self signup as a tenant user.
  3. Fails with error below.
[2020-12-23 18:28:27,792] ERROR - MeApiServiceImpl Error occurred in the server while performing the task.
org.wso2.carbon.identity.recovery.IdentityRecoveryServerException: Error while adding self signup user
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_211]
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_211]
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_211]
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_211]
    at org.wso2.carbon.identity.base.IdentityException.error(IdentityException.java:103) ~[org.wso2.carbon.identity.base_5.17.5.jar:?]
    at org.wso2.carbon.identity.recovery.util.Utils.handleServerException(Utils.java:315) ~[org.wso2.carbon.identity.recovery_1.4.1.jar:?]
    at org.wso2.carbon.identity.recovery.signup.UserSelfRegistrationManager.handleClientException(UserSelfRegistrationManager.java:339) ~[org.wso2.carbon.identity.recovery_1.4.1.jar:?]
    at org.wso2.carbon.identity.recovery.signup.UserSelfRegistrationManager.registerUser(UserSelfRegistrationManager.java:225) ~[org.wso2.carbon.identity.recovery_1.4.1.jar:?]
    at org.wso2.carbon.identity.user.endpoint.impl.MeApiServiceImpl.mePost(MeApiServiceImpl.java:88) [classes/:?]
    at org.wso2.carbon.identity.user.endpoint.MeApi.mePost(MeApi.java:61) [classes/:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_211]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_211]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_211]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_211]
    at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:179) [cxf-core-3.2.8.jar:3.2.8]
    at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96) [cxf-core-3.2.8.jar:3.2.8]
    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:193) [cxf-rt-frontend-jaxrs-3.2.8.jar:3.2.8]
    at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:103) [cxf-rt-frontend-jaxrs-3.2.8.jar:3.2.8]
    at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59) [cxf-core-3.2.8.jar:3.2.8]
    at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:96) [cxf-core-3.2.8.jar:3.2.8]
    at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308) [cxf-core-3.2.8.jar:3.2.8]
    at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) [cxf-core-3.2.8.jar:3.2.8]
    at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:267) [cxf-rt-transports-http-3.2.8.jar:3.2.8]
    at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:234) [cxf-rt-transports-http-3.2.8.jar:3.2.8]
    at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:208) [cxf-rt-transports-http-3.2.8.jar:3.2.8]
    at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160) [cxf-rt-transports-http-3.2.8.jar:3.2.8]
    at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:216) [cxf-rt-transports-http-3.2.8.jar:3.2.8]
    at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:301) [cxf-rt-transports-http-3.2.8.jar:3.2.8]
    at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:220) [cxf-rt-transports-http-3.2.8.jar:3.2.8]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:660) [tomcat-servlet-api_9.0.31.wso2v1.jar:?]
    at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:276) [cxf-rt-transports-http-3.2.8.jar:3.2.8]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) [tomcat_9.0.31.wso2v1.jar:?]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat_9.0.31.wso2v1.jar:?]
    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) [tomcat_9.0.31.wso2v1.jar:?]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat_9.0.31.wso2v1.jar:?]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat_9.0.31.wso2v1.jar:?]
    at org.wso2.carbon.identity.captcha.filter.CaptchaFilter.doFilter(CaptchaFilter.java:66) [org.wso2.carbon.identity.captcha_1.4.1.jar:?]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat_9.0.31.wso2v1.jar:?]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat_9.0.31.wso2v1.jar:?]
    at org.wso2.carbon.ui.filters.cache.ContentTypeBasedCachePreventionFilter.doFilter(ContentTypeBasedCachePreventionFilter.java:53) [org.wso2.carbon.ui_4.6.0.jar:?]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat_9.0.31.wso2v1.jar:?]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat_9.0.31.wso2v1.jar:?]
    at org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(HttpHeaderSecurityFilter.java:126) [tomcat_9.0.31.wso2v1.jar:?]
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat_9.0.31.wso2v1.jar:?]
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat_9.0.31.wso2v1.jar:?]
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:712) [tomcat_9.0.31.wso2v1.jar:?]
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:459) [tomcat_9.0.31.wso2v1.jar:?]
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:384) [tomcat_9.0.31.wso2v1.jar:?]
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312) [tomcat_9.0.31.wso2v1.jar:?]
    at org.wso2.carbon.identity.context.rewrite.valve.TenantContextRewriteValve.invoke(TenantContextRewriteValve.java:110) [org.wso2.carbon.identity.context.rewrite.valve_1.4.0.jar:?]
    at org.wso2.carbon.identity.authz.valve.AuthorizationValve.invoke(AuthorizationValve.java:110) [org.wso2.carbon.identity.authz.valve_1.4.0.jar:?]
    at org.wso2.carbon.identity.auth.valve.AuthenticationValve.invoke(AuthenticationValve.java:124) [org.wso2.carbon.identity.auth.valve_1.4.0.jar:?]
    at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99) [org.wso2.carbon.tomcat.ext_4.6.0.jar:?]
    at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:49) [org.wso2.carbon.tomcat.ext_4.6.0.jar:?]
    at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62) [org.wso2.carbon.tomcat.ext_4.6.0.jar:?]
    at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:145) [org.wso2.carbon.tomcat.ext_4.6.0.jar:?]
    at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690) [tomcat_9.0.31.wso2v1.jar:?]
    at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57) [org.wso2.carbon.tomcat.ext_4.6.0.jar:?]
    at org.wso2.carbon.tomcat.ext.valves.RequestCorrelationIdValve.invoke(RequestCorrelationIdValve.java:119) [org.wso2.carbon.tomcat.ext_4.6.0.jar:?]
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) [tomcat_9.0.31.wso2v1.jar:?]
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) [tomcat_9.0.31.wso2v1.jar:?]
    at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:373) [tomcat_9.0.31.wso2v1.jar:?]
    at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) [tomcat_9.0.31.wso2v1.jar:?]
    at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868) [tomcat_9.0.31.wso2v1.jar:?]
    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1590) [tomcat_9.0.31.wso2v1.jar:?]
    at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat_9.0.31.wso2v1.jar:?]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_211]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_211]
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat_9.0.31.wso2v1.jar:?]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_211]
Caused by: org.wso2.carbon.user.core.UserStoreException: Error when handling event : POST_ADD_USER
    at org.wso2.carbon.user.core.common.AbstractUserStoreManager.callSecure(AbstractUserStoreManager.java:208) ~[org.wso2.carbon.user.core_4.6.0.jar:?]
    at org.wso2.carbon.user.core.common.AbstractUserStoreManager.addUser(AbstractUserStoreManager.java:4392) ~[org.wso2.carbon.user.core_4.6.0.jar:?]
    at org.wso2.carbon.user.core.common.AbstractUserStoreManager.addUser(AbstractUserStoreManager.java:4378) ~[org.wso2.carbon.user.core_4.6.0.jar:?]
    at org.wso2.carbon.identity.recovery.signup.UserSelfRegistrationManager.registerUser(UserSelfRegistrationManager.java:212) ~[org.wso2.carbon.identity.recovery_1.4.1.jar:?]
    ... 62 more
Caused by: java.security.PrivilegedActionException
    at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_211]
    at org.wso2.carbon.user.core.common.AbstractUserStoreManager.callSecure(AbstractUserStoreManager.java:194) ~[org.wso2.carbon.user.core_4.6.0.jar:?]
    at org.wso2.carbon.user.core.common.AbstractUserStoreManager.addUser(AbstractUserStoreManager.java:4392) ~[org.wso2.carbon.user.core_4.6.0.jar:?]
    at org.wso2.carbon.user.core.common.AbstractUserStoreManager.addUser(AbstractUserStoreManager.java:4378) ~[org.wso2.carbon.user.core_4.6.0.jar:?]
    at org.wso2.carbon.identity.recovery.signup.UserSelfRegistrationManager.registerUser(UserSelfRegistrationManager.java:212) ~[org.wso2.carbon.identity.recovery_1.4.1.jar:?]
    ... 62 more
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_211]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_211]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_211]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_211]
    at org.wso2.carbon.user.core.common.AbstractUserStoreManager$2.run(AbstractUserStoreManager.java:197) ~[org.wso2.carbon.user.core_4.6.0.jar:?]
    at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_211]
    at org.wso2.carbon.user.core.common.AbstractUserStoreManager.callSecure(AbstractUserStoreManager.java:194) ~[org.wso2.carbon.user.core_4.6.0.jar:?]
    at org.wso2.carbon.user.core.common.AbstractUserStoreManager.addUser(AbstractUserStoreManager.java:4392) ~[org.wso2.carbon.user.core_4.6.0.jar:?]
    at org.wso2.carbon.user.core.common.AbstractUserStoreManager.addUser(AbstractUserStoreManager.java:4378) ~[org.wso2.carbon.user.core_4.6.0.jar:?]
    at org.wso2.carbon.identity.recovery.signup.UserSelfRegistrationManager.registerUser(UserSelfRegistrationManager.java:212) ~[org.wso2.carbon.identity.recovery_1.4.1.jar:?]
    ... 62 more
Caused by: org.wso2.carbon.user.core.UserStoreException: Error when handling event : POST_ADD_USER
    at org.wso2.carbon.identity.governance.listener.IdentityMgtEventListener.handleEvent(IdentityMgtEventListener.java:1669) ~[org.wso2.carbon.identity.governance_1.4.1.jar:?]
    at org.wso2.carbon.identity.governance.listener.IdentityMgtEventListener.handleEvent(IdentityMgtEventListener.java:1629) ~[org.wso2.carbon.identity.governance_1.4.1.jar:?]
    at org.wso2.carbon.identity.governance.listener.IdentityMgtEventListener.handleEvent(IdentityMgtEventListener.java:1617) ~[org.wso2.carbon.identity.governance_1.4.1.jar:?]
    at org.wso2.carbon.identity.governance.listener.IdentityMgtEventListener.doPostAddUser(IdentityMgtEventListener.java:226) ~[org.wso2.carbon.identity.governance_1.4.1.jar:?]
    at org.wso2.carbon.user.core.common.AbstractUserStoreManager.addUser(AbstractUserStoreManager.java:4694) ~[org.wso2.carbon.user.core_4.6.0.jar:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_211]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_211]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_211]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_211]
    at org.wso2.carbon.user.core.common.AbstractUserStoreManager$2.run(AbstractUserStoreManager.java:197) ~[org.wso2.carbon.user.core_4.6.0.jar:?]
    at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_211]
    at org.wso2.carbon.user.core.common.AbstractUserStoreManager.callSecure(AbstractUserStoreManager.java:194) ~[org.wso2.carbon.user.core_4.6.0.jar:?]
    at org.wso2.carbon.user.core.common.AbstractUserStoreManager.addUser(AbstractUserStoreManager.java:4392) ~[org.wso2.carbon.user.core_4.6.0.jar:?]
    at org.wso2.carbon.user.core.common.AbstractUserStoreManager.addUser(AbstractUserStoreManager.java:4378) ~[org.wso2.carbon.user.core_4.6.0.jar:?]
    at org.wso2.carbon.identity.recovery.signup.UserSelfRegistrationManager.registerUser(UserSelfRegistrationManager.java:212) ~[org.wso2.carbon.identity.recovery_1.4.1.jar:?]
    ... 62 more
Caused by: org.wso2.carbon.identity.event.IdentityEventException: Error while adding custom roles to the user
    at org.wso2.carbon.apimgt.impl.handlers.UserPostSelfRegistrationHandler.handleEvent_aroundBody2(UserPostSelfRegistrationHandler.java:75) ~[org.wso2.carbon.apimgt.impl_6.6.163.jar:?]
    at org.wso2.carbon.apimgt.impl.handlers.UserPostSelfRegistrationHandler.handleEvent(UserPostSelfRegistrationHandler.java:64) ~[org.wso2.carbon.apimgt.impl_6.6.163.jar:?]
    at org.wso2.carbon.identity.event.services.IdentityEventServiceImpl.handleEvent(IdentityEventServiceImpl.java:56) ~[org.wso2.carbon.identity.event_5.17.5.jar:?]
    at org.wso2.carbon.identity.governance.listener.IdentityMgtEventListener.handleEvent(IdentityMgtEventListener.java:1653) ~[org.wso2.carbon.identity.governance_1.4.1.jar:?]
    at org.wso2.carbon.identity.governance.listener.IdentityMgtEventListener.handleEvent(IdentityMgtEventListener.java:1629) ~[org.wso2.carbon.identity.governance_1.4.1.jar:?]
    at org.wso2.carbon.identity.governance.listener.IdentityMgtEventListener.handleEvent(IdentityMgtEventListener.java:1617) ~[org.wso2.carbon.identity.governance_1.4.1.jar:?]
    at org.wso2.carbon.identity.governance.listener.IdentityMgtEventListener.doPostAddUser(IdentityMgtEventListener.java:226) ~[org.wso2.carbon.identity.governance_1.4.1.jar:?]
    at org.wso2.carbon.user.core.common.AbstractUserStoreManager.addUser(AbstractUserStoreManager.java:4694) ~[org.wso2.carbon.user.core_4.6.0.jar:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_211]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_211]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_211]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_211]
    at org.wso2.carbon.user.core.common.AbstractUserStoreManager$2.run(AbstractUserStoreManager.java:197) ~[org.wso2.carbon.user.core_4.6.0.jar:?]
    at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_211]
    at org.wso2.carbon.user.core.common.AbstractUserStoreManager.callSecure(AbstractUserStoreManager.java:194) ~[org.wso2.carbon.user.core_4.6.0.jar:?]
    at org.wso2.carbon.user.core.common.AbstractUserStoreManager.addUser(AbstractUserStoreManager.java:4392) ~[org.wso2.carbon.user.core_4.6.0.jar:?]
    at org.wso2.carbon.user.core.common.AbstractUserStoreManager.addUser(AbstractUserStoreManager.java:4378) ~[org.wso2.carbon.user.core_4.6.0.jar:?]
    at org.wso2.carbon.identity.recovery.signup.UserSelfRegistrationManager.registerUser(UserSelfRegistrationManager.java:212) ~[org.wso2.carbon.identity.recovery_1.4.1.jar:?]
    ... 62 more
Caused by: org.wso2.carbon.identity.recovery.IdentityRecoveryServerException: Unexpected error
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_211]
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_211]
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_211]
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_211]
    at org.wso2.carbon.identity.base.IdentityException.error(IdentityException.java:103) ~[org.wso2.carbon.identity.base_5.17.5.jar:?]
    at org.wso2.carbon.identity.recovery.util.Utils.handleServerException(Utils.java:315) ~[org.wso2.carbon.identity.recovery_1.4.1.jar:?]
    at org.wso2.carbon.apimgt.impl.handlers.UserPostSelfRegistrationHandler.executeUserRegistrationWorkflow_aroundBody4(UserPostSelfRegistrationHandler.java:130) ~[org.wso2.carbon.apimgt.impl_6.6.163.jar:?]
    at org.wso2.carbon.apimgt.impl.handlers.UserPostSelfRegistrationHandler.executeUserRegistrationWorkflow(UserPostSelfRegistrationHandler.java:87) ~[org.wso2.carbon.apimgt.impl_6.6.163.jar:?]
    at org.wso2.carbon.apimgt.impl.handlers.UserPostSelfRegistrationHandler.handleEvent_aroundBody2(UserPostSelfRegistrationHandler.java:73) ~[org.wso2.carbon.apimgt.impl_6.6.163.jar:?]
    at org.wso2.carbon.apimgt.impl.handlers.UserPostSelfRegistrationHandler.handleEvent(UserPostSelfRegistrationHandler.java:64) ~[org.wso2.carbon.apimgt.impl_6.6.163.jar:?]
    at org.wso2.carbon.identity.event.services.IdentityEventServiceImpl.handleEvent(IdentityEventServiceImpl.java:56) ~[org.wso2.carbon.identity.event_5.17.5.jar:?]
    at org.wso2.carbon.identity.governance.listener.IdentityMgtEventListener.handleEvent(IdentityMgtEventListener.java:1653) ~[org.wso2.carbon.identity.governance_1.4.1.jar:?]
    at org.wso2.carbon.identity.governance.listener.IdentityMgtEventListener.handleEvent(IdentityMgtEventListener.java:1629) ~[org.wso2.carbon.identity.governance_1.4.1.jar:?]
    at org.wso2.carbon.identity.governance.listener.IdentityMgtEventListener.handleEvent(IdentityMgtEventListener.java:1617) ~[org.wso2.carbon.identity.governance_1.4.1.jar:?]
    at org.wso2.carbon.identity.governance.listener.IdentityMgtEventListener.doPostAddUser(IdentityMgtEventListener.java:226) ~[org.wso2.carbon.identity.governance_1.4.1.jar:?]
    at org.wso2.carbon.user.core.common.AbstractUserStoreManager.addUser(AbstractUserStoreManager.java:4694) ~[org.wso2.carbon.user.core_4.6.0.jar:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_211]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_211]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_211]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_211]
    at org.wso2.carbon.user.core.common.AbstractUserStoreManager$2.run(AbstractUserStoreManager.java:197) ~[org.wso2.carbon.user.core_4.6.0.jar:?]
    at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_211]
    at org.wso2.carbon.user.core.common.AbstractUserStoreManager.callSecure(AbstractUserStoreManager.java:194) ~[org.wso2.carbon.user.core_4.6.0.jar:?]
    at org.wso2.carbon.user.core.common.AbstractUserStoreManager.addUser(AbstractUserStoreManager.java:4392) ~[org.wso2.carbon.user.core_4.6.0.jar:?]
    at org.wso2.carbon.user.core.common.AbstractUserStoreManager.addUser(AbstractUserStoreManager.java:4378) ~[org.wso2.carbon.user.core_4.6.0.jar:?]
    at org.wso2.carbon.identity.recovery.signup.UserSelfRegistrationManager.registerUser(UserSelfRegistrationManager.java:212) ~[org.wso2.carbon.identity.recovery_1.4.1.jar:?]
    ... 62 more
Caused by: org.wso2.carbon.apimgt.impl.workflow.WorkflowException: Error while assigning role to user
    at org.wso2.carbon.apimgt.impl.workflow.UserSignUpSimpleWorkflowExecutor.complete_aroundBody4(UserSignUpSimpleWorkflowExecutor.java:91) ~[org.wso2.carbon.apimgt.impl_6.6.163.jar:?]
    at org.wso2.carbon.apimgt.impl.workflow.UserSignUpSimpleWorkflowExecutor.complete(UserSignUpSimpleWorkflowExecutor.java:57) ~[org.wso2.carbon.apimgt.impl_6.6.163.jar:?]
    at org.wso2.carbon.apimgt.impl.workflow.UserSignUpSimpleWorkflowExecutor.execute_aroundBody2(UserSignUpSimpleWorkflowExecutor.java:51) ~[org.wso2.carbon.apimgt.impl_6.6.163.jar:?]
    at org.wso2.carbon.apimgt.impl.workflow.UserSignUpSimpleWorkflowExecutor.execute(UserSignUpSimpleWorkflowExecutor.java:46) ~[org.wso2.carbon.apimgt.impl_6.6.163.jar:?]
    at org.wso2.carbon.apimgt.impl.handlers.UserPostSelfRegistrationHandler.executeUserRegistrationWorkflow_aroundBody4(UserPostSelfRegistrationHandler.java:124) ~[org.wso2.carbon.apimgt.impl_6.6.163.jar:?]
    at org.wso2.carbon.apimgt.impl.handlers.UserPostSelfRegistrationHandler.executeUserRegistrationWorkflow(UserPostSelfRegistrationHandler.java:87) ~[org.wso2.carbon.apimgt.impl_6.6.163.jar:?]
    at org.wso2.carbon.apimgt.impl.handlers.UserPostSelfRegistrationHandler.handleEvent_aroundBody2(UserPostSelfRegistrationHandler.java:73) ~[org.wso2.carbon.apimgt.impl_6.6.163.jar:?]
    at org.wso2.carbon.apimgt.impl.handlers.UserPostSelfRegistrationHandler.handleEvent(UserPostSelfRegistrationHandler.java:64) ~[org.wso2.carbon.apimgt.impl_6.6.163.jar:?]
    at org.wso2.carbon.identity.event.services.IdentityEventServiceImpl.handleEvent(IdentityEventServiceImpl.java:56) ~[org.wso2.carbon.identity.event_5.17.5.jar:?]
    at org.wso2.carbon.identity.governance.listener.IdentityMgtEventListener.handleEvent(IdentityMgtEventListener.java:1653) ~[org.wso2.carbon.identity.governance_1.4.1.jar:?]
    at org.wso2.carbon.identity.governance.listener.IdentityMgtEventListener.handleEvent(IdentityMgtEventListener.java:1629) ~[org.wso2.carbon.identity.governance_1.4.1.jar:?]
    at org.wso2.carbon.identity.governance.listener.IdentityMgtEventListener.handleEvent(IdentityMgtEventListener.java:1617) ~[org.wso2.carbon.identity.governance_1.4.1.jar:?]
    at org.wso2.carbon.identity.governance.listener.IdentityMgtEventListener.doPostAddUser(IdentityMgtEventListener.java:226) ~[org.wso2.carbon.identity.governance_1.4.1.jar:?]
    at org.wso2.carbon.user.core.common.AbstractUserStoreManager.addUser(AbstractUserStoreManager.java:4694) ~[org.wso2.carbon.user.core_4.6.0.jar:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_211]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_211]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_211]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_211]
    at org.wso2.carbon.user.core.common.AbstractUserStoreManager$2.run(AbstractUserStoreManager.java:197) ~[org.wso2.carbon.user.core_4.6.0.jar:?]
    at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_211]
    at org.wso2.carbon.user.core.common.AbstractUserStoreManager.callSecure(AbstractUserStoreManager.java:194) ~[org.wso2.carbon.user.core_4.6.0.jar:?]
    at org.wso2.carbon.user.core.common.AbstractUserStoreManager.addUser(AbstractUserStoreManager.java:4392) ~[org.wso2.carbon.user.core_4.6.0.jar:?]
    at org.wso2.carbon.user.core.common.AbstractUserStoreManager.addUser(AbstractUserStoreManager.java:4378) ~[org.wso2.carbon.user.core_4.6.0.jar:?]
    at org.wso2.carbon.identity.recovery.signup.UserSelfRegistrationManager.registerUser(UserSelfRegistrationManager.java:212) ~[org.wso2.carbon.identity.recovery_1.4.1.jar:?]
    ... 62 more
Caused by: org.apache.axis2.AxisFault: Access Denied. Authentication failed - Invalid credentials provided.
    at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:531) ~[axis2_1.6.1.wso2v41.jar:?]
    at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:382) ~[axis2_1.6.1.wso2v41.jar:?]
    at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:457) ~[axis2_1.6.1.wso2v41.jar:?]
    at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228) ~[axis2_1.6.1.wso2v41.jar:?]
    at org.apache.axis2.client.OperationClient.execute(OperationClient.java:149) ~[axis2_1.6.1.wso2v41.jar:?]
    at org.wso2.carbon.user.mgt.stub.UserAdminStub.getRolesOfUser(UserAdminStub.java:2530) ~[org.wso2.carbon.user.mgt.stub_5.17.5.jar:?]
    at org.wso2.carbon.apimgt.impl.workflow.UserSignUpWorkflowExecutor.updateRolesOfUser_aroundBody2(UserSignUpWorkflowExecutor.java:124) ~[org.wso2.carbon.apimgt.impl_6.6.163.jar:?]
    at org.wso2.carbon.apimgt.impl.workflow.UserSignUpWorkflowExecutor.updateRolesOfUser(UserSignUpWorkflowExecutor.java:97) ~[org.wso2.carbon.apimgt.impl_6.6.163.jar:?]
    at org.wso2.carbon.apimgt.impl.workflow.UserSignUpSimpleWorkflowExecutor.complete_aroundBody4(UserSignUpSimpleWorkflowExecutor.java:85) ~[org.wso2.carbon.apimgt.impl_6.6.163.jar:?]
    at org.wso2.carbon.apimgt.impl.workflow.UserSignUpSimpleWorkflowExecutor.complete(UserSignUpSimpleWorkflowExecutor.java:57) ~[org.wso2.carbon.apimgt.impl_6.6.163.jar:?]
    at org.wso2.carbon.apimgt.impl.workflow.UserSignUpSimpleWorkflowExecutor.execute_aroundBody2(UserSignUpSimpleWorkflowExecutor.java:51) ~[org.wso2.carbon.apimgt.impl_6.6.163.jar:?]
    at org.wso2.carbon.apimgt.impl.workflow.UserSignUpSimpleWorkflowExecutor.execute(UserSignUpSimpleWorkflowExecutor.java:46) ~[org.wso2.carbon.apimgt.impl_6.6.163.jar:?]
    at org.wso2.carbon.apimgt.impl.handlers.UserPostSelfRegistrationHandler.executeUserRegistrationWorkflow_aroundBody4(UserPostSelfRegistrationHandler.java:124) ~[org.wso2.carbon.apimgt.impl_6.6.163.jar:?]
    at org.wso2.carbon.apimgt.impl.handlers.UserPostSelfRegistrationHandler.executeUserRegistrationWorkflow(UserPostSelfRegistrationHandler.java:87) ~[org.wso2.carbon.apimgt.impl_6.6.163.jar:?]
    at org.wso2.carbon.apimgt.impl.handlers.UserPostSelfRegistrationHandler.handleEvent_aroundBody2(UserPostSelfRegistrationHandler.java:73) ~[org.wso2.carbon.apimgt.impl_6.6.163.jar:?]
    at org.wso2.carbon.apimgt.impl.handlers.UserPostSelfRegistrationHandler.handleEvent(UserPostSelfRegistrationHandler.java:64) ~[org.wso2.carbon.apimgt.impl_6.6.163.jar:?]
    at org.wso2.carbon.identity.event.services.IdentityEventServiceImpl.handleEvent(IdentityEventServiceImpl.java:56) ~[org.wso2.carbon.identity.event_5.17.5.jar:?]
    at org.wso2.carbon.identity.governance.listener.IdentityMgtEventListener.handleEvent(IdentityMgtEventListener.java:1653) ~[org.wso2.carbon.identity.governance_1.4.1.jar:?]
    at org.wso2.carbon.identity.governance.listener.IdentityMgtEventListener.handleEvent(IdentityMgtEventListener.java:1629) ~[org.wso2.carbon.identity.governance_1.4.1.jar:?]
    at org.wso2.carbon.identity.governance.listener.IdentityMgtEventListener.handleEvent(IdentityMgtEventListener.java:1617) ~[org.wso2.carbon.identity.governance_1.4.1.jar:?]
    at org.wso2.carbon.identity.governance.listener.IdentityMgtEventListener.doPostAddUser(IdentityMgtEventListener.java:226) ~[org.wso2.carbon.identity.governance_1.4.1.jar:?]
    at org.wso2.carbon.user.core.common.AbstractUserStoreManager.addUser(AbstractUserStoreManager.java:4694) ~[org.wso2.carbon.user.core_4.6.0.jar:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_211]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_211]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_211]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_211]
    at org.wso2.carbon.user.core.common.AbstractUserStoreManager$2.run(AbstractUserStoreManager.java:197) ~[org.wso2.carbon.user.core_4.6.0.jar:?]
    at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_211]
    at org.wso2.carbon.user.core.common.AbstractUserStoreManager.callSecure(AbstractUserStoreManager.java:194) ~[org.wso2.carbon.user.core_4.6.0.jar:?]
    at org.wso2.carbon.user.core.common.AbstractUserStoreManager.addUser(AbstractUserStoreManager.java:4392) ~[org.wso2.carbon.user.core_4.6.0.jar:?]
    at org.wso2.carbon.user.core.common.AbstractUserStoreManager.addUser(AbstractUserStoreManager.java:4378) ~[org.wso2.carbon.user.core_4.6.0.jar:?]
    at org.wso2.carbon.identity.recovery.signup.UserSelfRegistrationManager.registerUser(UserSelfRegistrationManager.java:212) ~[org.wso2.carbon.identity.recovery_1.4.1.jar:?]
    ... 62 more

Affected Product Version:

Environment details (with versions):


Optional Fields

Related Issues:

Suggested Labels:

Suggested Assignees:

The-doubtless-coder commented 7 months ago

what was the solution for this? Or was there none given since I'm getting the same error when registering a custom tenant user. N/B: I'm using apim 4.0.0