{"action":"opened","issue":{"url":"https://api.github.com/repos/wso2/carbon-apimgt/issues/5189","repository_url":"https://api.github.com/repos/wso2/carbon-apimgt","labels_url":"https://api.github.com/repos/wso2/carbon-apimgt/issues/5189/labels{/name}","comments_url":"https://api.github.com/repos/wso2/carbon-apimgt/issues/5189/comments","events_url":"https://api.github.com/repos/wso2/carbon-apimgt/issues/5189/events","html_url":"https://github.com/wso2/carbon-apimgt/issues/5189","id":303939179,"number":5189,"title":"Tenant Self Sign Up on the API Store Doesn't Work","user":{"login":"nuwand","id":6469654,"avatar_url":"https://avatars2.githubusercontent.com/u/6469654?v=4","gravatar_id":"","url":"https://api.github.com/users/nuwand","html_url":"https://github.com/nuwand","followers_url":"https://api.github.com/users/nuwand/followers","following_url":"https://api.github.com/users/nuwand/following{/other_user}","gists_url":"https://api.github.com/users/nuwand/gists{/gist_id}","starred_url":"https://api.github.com/users/nuwand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuwand/subscriptions","organizations_url":"https://api.github.com/users/nuwand/orgs","repos_url":"https://api.github.com/users/nuwand/repos","events_url":"https://api.github.com/users/nuwand/events{/privacy}","received_events_url":"https://api.github.com/users/nuwand/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-09T18:37:56Z","updated_at":"2018-03-09T18:37:56Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"When you configure self-sign up for the API Store on Tenants and click on the \"Sign Up\" link that appears on the API Store of the particular tenant, it shows up a 500 Error page on the browser. The logs are as below\r\n\r\n> TID: [-1] [] [2018-03-10 00:00:49,248] ERROR {org.wso2.carbon.redirector.servlet.ui.filters.AllPagesFilter} -  Error in checking the existing of the tenant domain: foo.comapi. {org.wso2.carbon.redirector.servlet.ui.filters.AllPagesFilter}\r\njava.lang.IllegalStateException: Tenant ID cannot be -1\r\n\tat org.wso2.carbon.caching.impl.CarbonCacheManager.<init>(CarbonCacheManager.java:64)\r\n\tat org.wso2.carbon.caching.impl.CacheManagerFactoryImpl.getCacheManager(CacheManagerFactoryImpl.java:94)\r\n\tat org.wso2.carbon.security.pox.POXSecurityHandler.getPOXCache(POXSecurityHandler.java:513)\r\n\tat org.wso2.carbon.security.pox.POXSecurityHandler.invoke(POXSecurityHandler.java:150)\r\n\tat org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)\r\n\tat org.apache.axis2.engine.Phase.invoke(Phase.java:313)\r\n\tat org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)\r\n\tat org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)\r\n\tat org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)\r\n\tat org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:456)\r\n\tat org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:227)\r\n\tat org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)\r\n\tat org.wso2.carbon.redirector.servlet.stub.RedirectorServletServiceStub.validateTenant(RedirectorServletServiceStub.java:190)\r\n\tat org.wso2.carbon.redirector.servlet.ui.clients.RedirectorServletServiceClient.validateTenant(RedirectorServletServiceClient.java:88)\r\n\tat org.wso2.carbon.redirector.servlet.ui.filters.AllPagesFilter.doFilter(AllPagesFilter.java:91)\r\n\tat org.eclipse.equinox.http.helper.FilterServletAdaptor.service(FilterServletAdaptor.java:37)\r\n\tat org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)\r\n\tat org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)\r\n\tat org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:731)\r\n\tat org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)\r\n\tat org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)\r\n\tat org.owasp.csrfguard.CsrfGuardFilter.doFilter(CsrfGuardFilter.java:88)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)\r\n\tat org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:65)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)\r\n\tat org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(HttpHeaderSecurityFilter.java:124)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)\r\n\tat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)\r\n\tat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)\r\n\tat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)\r\n\tat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)\r\n\tat org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)\r\n\tat org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)\r\n\tat org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:63)\r\n\tat org.wso2.carbon.event.receiver.core.internal.tenantmgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:52)\r\n\tat org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)\r\n\tat org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62)\r\n\tat org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)\r\n\tat org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)\r\n\tat org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)\r\n\tat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)\r\n\tat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)\r\n\tat org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)\r\n\tat org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)\r\n\tat org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1775)\r\n\tat org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1734)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\r\n\tat org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\r\n\tat java.lang.Thread.run(Thread.java:748)\r\nTID: [-1] [] [2018-03-10 00:00:49,253] ERROR {org.apache.catalina.core.StandardWrapperValve} -  Servlet.service() for servlet [bridgeservlet] in context with path [/] threw exception [Error in checking the existing of the tenant domain: foo.comapi.] with root cause {org.apache.catalina.core.StandardWrapperValve}\r\njava.lang.IllegalStateException: Tenant ID cannot be -1\r\n\tat org.wso2.carbon.caching.impl.CarbonCacheManager.<init>(CarbonCacheManager.java:64)\r\n\tat org.wso2.carbon.caching.impl.CacheManagerFactoryImpl.getCacheManager(CacheManagerFactoryImpl.java:94)\r\n\tat org.wso2.carbon.security.pox.POXSecurityHandler.getPOXCache(POXSecurityHandler.java:513)\r\n\tat org.wso2.carbon.security.pox.POXSecurityHandler.invoke(POXSecurityHandler.java:150)\r\n\tat org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)\r\n\tat org.apache.axis2.engine.Phase.invoke(Phase.java:313)\r\n\tat org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)\r\n\tat org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)\r\n\tat org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)\r\n\tat org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:456)\r\n\tat org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:227)\r\n\tat org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)\r\n\tat org.wso2.carbon.redirector.servlet.stub.RedirectorServletServiceStub.validateTenant(RedirectorServletServiceStub.java:190)\r\n\tat org.wso2.carbon.redirector.servlet.ui.clients.RedirectorServletServiceClient.validateTenant(RedirectorServletServiceClient.java:88)\r\n\tat org.wso2.carbon.redirector.servlet.ui.filters.AllPagesFilter.doFilter(AllPagesFilter.java:91)\r\n\tat org.eclipse.equinox.http.helper.FilterServletAdaptor.service(FilterServletAdaptor.java:37)\r\n\tat org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)\r\n\tat org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)\r\n\tat org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:731)\r\n\tat org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)\r\n\tat org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)\r\n\tat org.owasp.csrfguard.CsrfGuardFilter.doFilter(CsrfGuardFilter.java:88)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)\r\n\tat org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:65)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)\r\n\tat org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(HttpHeaderSecurityFilter.java:124)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)\r\n\tat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)\r\n\tat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)\r\n\tat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)\r\n\tat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)\r\n\tat org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)\r\n\tat org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)\r\n\tat org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:63)\r\n\tat org.wso2.carbon.event.receiver.core.internal.tenantmgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:52)\r\n\tat org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)\r\n\tat org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62)\r\n\tat org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)\r\n\tat org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)\r\n\tat org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)\r\n\tat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)\r\n\tat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)\r\n\tat org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)\r\n\tat org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)\r\n\tat org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1775)\r\n\tat org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1734)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\r\n\tat org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\r\n\tat java.lang.Thread.run(Thread.java:748)\r\nTID: [-1234] [] [2018-03-10 00:00:49,255] ERROR {org.jaggeryjs.jaggery.core.manager.WebAppManager} -  org.mozilla.javascript.WrappedException: Wrapped org.wso2.carbon.apimgt.api.APIManagementException: Error while retrieving data from https://localhost:9443/t/foo.comapi/identity/consent-mgt/v1.0/consents/purposes/. Found http status HTTP/1.1 500 Internal Server Error (/store/site/blocks/user/sign-up/block.jag#10) {org.jaggeryjs.jaggery.core.manager.WebAppManager}\r\norg.jaggeryjs.scriptengine.exceptions.ScriptException: org.mozilla.javascript.WrappedException: Wrapped org.wso2.carbon.apimgt.api.APIManagementException: Error while retrieving data from https://localhost:9443/t/foo.comapi/identity/consent-mgt/v1.0/consents/purposes/. Found http status HTTP/1.1 500 Internal Server Error (/store/site/blocks/user/sign-up/block.jag#10)\r\n\tat org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)\r\n\tat org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)\r\n\tat org.jaggeryjs.jaggery.core.manager.WebAppManager.exec(WebAppManager.java:588)\r\n\tat org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:508)\r\n\tat org.jaggeryjs.jaggery.core.JaggeryServlet.doGet(JaggeryServlet.java:24)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:624)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:731)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)\r\n\tat org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:743)\r\n\tat org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:485)\r\n\tat org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:377)\r\n\tat org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:337)\r\n\tat org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)\r\n\tat org.wso2.carbon.ui.filters.cache.ContentTypeBasedCachePreventionFilter.doFilter(ContentTypeBasedCachePreventionFilter.java:53)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)\r\n\tat org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(HttpHeaderSecurityFilter.java:124)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)\r\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)\r\n\tat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)\r\n\tat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)\r\n\tat org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:498)\r\n\tat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)\r\n\tat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)\r\n\tat org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)\r\n\tat org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)\r\n\tat org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:57)\r\n\tat org.wso2.carbon.event.receiver.core.internal.tenantmgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:48)\r\n\tat org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)\r\n\tat org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62)\r\n\tat org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)\r\n\tat org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)\r\n\tat org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)\r\n\tat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)\r\n\tat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)\r\n\tat org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)\r\n\tat org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)\r\n\tat org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1775)\r\n\tat org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1734)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\r\n\tat org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\r\n\tat java.lang.Thread.run(Thread.java:748)\r\nCaused by: org.mozilla.javascript.WrappedException: Wrapped org.wso2.carbon.apimgt.api.APIManagementException: Error while retrieving data from https://localhost:9443/t/foo.comapi/identity/consent-mgt/v1.0/consents/purposes/. Found http status HTTP/1.1 500 Internal Server Error (/store/site/blocks/user/sign-up/block.jag#10)\r\n\tat org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)\r\n\tat org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)\r\n\tat org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)\r\n\tat org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)\r\n\tat org.jaggeryjs.rhino.store.site.blocks.user.sign_up.c0._c_anonymous_2(/store/site/blocks/user/sign-up/block.jag:10)\r\n\tat org.jaggeryjs.rhino.store.site.blocks.user.sign_up.c0.call(/store/site/blocks/user/sign-up/block.jag)\r\n\tat org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)\r\n\tat org.jaggeryjs.rhino.store.jagg.c0._c_anonymous_28(/store/jagg/jagg.jag:278)\r\n\tat org.jaggeryjs.rhino.store.jagg.c0.call(/store/jagg/jagg.jag)\r\n\tat org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)\r\n\tat org.jaggeryjs.rhino.store.jagg.c0._c_anonymous_29(/store/jagg/jagg.jag:338)\r\n\tat org.jaggeryjs.rhino.store.jagg.c0.call(/store/jagg/jagg.jag)\r\n\tat org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)\r\n\tat org.jaggeryjs.rhino.store.jagg.c0._c_anonymous_28(/store/jagg/jagg.jag:273)\r\n\tat org.jaggeryjs.rhino.store.jagg.c0.call(/store/jagg/jagg.jag)\r\n\tat org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63)\r\n\tat org.jaggeryjs.rhino.store.jagg.c0._c_anonymous_52(/store/jagg/jagg.jag:706)\r\n\tat org.jaggeryjs.rhino.store.jagg.c0.call(/store/jagg/jagg.jag)\r\n\tat org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)\r\n\tat org.jaggeryjs.rhino.store.site.pages.c4._c_anonymous_1(/store/site/pages/sign-up.jag:11)\r\n\tat org.jaggeryjs.rhino.store.site.pages.c4.call(/store/site/pages/sign-up.jag)\r\n\tat org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23)\r\n\tat org.jaggeryjs.rhino.store.site.pages.c4._c_script_0(/store/site/pages/sign-up.jag:10)\r\n\tat org.jaggeryjs.rhino.store.site.pages.c4.call(/store/site/pages/sign-up.jag)\r\n\tat org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)\r\n\tat org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)\r\n\tat org.jaggeryjs.rhino.store.site.pages.c4.call(/store/site/pages/sign-up.jag)\r\n\tat org.jaggeryjs.rhino.store.site.pages.c4.exec(/store/site/pages/sign-up.jag)\r\n\tat org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567)\r\n\t... 45 more\r\nCaused by: org.wso2.carbon.apimgt.api.APIManagementException: Error while retrieving data from https://localhost:9443/t/foo.comapi/identity/consent-mgt/v1.0/consents/purposes/. Found http status HTTP/1.1 500 Internal Server Error\r\n\tat org.wso2.carbon.apimgt.impl.utils.APIUtil.executeGet(APIUtil.java:7145)\r\n\tat org.wso2.carbon.apimgt.impl.utils.APIUtil.getConsentPurposes(APIUtil.java:7069)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:498)\r\n\tat org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)\r\n\t... 72 more\r\nTID: [-1] [] [2018-03-10 00:04:33,897]  INFO {org.wso2.andes.kernel.AndesRecoveryTask} -  Running DB sync task. {org.wso2.andes.kernel.AndesRecoveryTask}\r\n\r\n\r\n"}}
{"actor":{"display_login":"nuwand"}}