Hi Hasanthi This exception came on the user consent step. When I call the authorize endpoint I get a url as [1]. So I attempted to complete the user consent on this and came across the exception
[1] https://localhost:9443/authenticationendpoint/oauth2_consent.do?loggedInUser=admin&application=Sol23-OAuthApp&scope=openid&sessionDataKeyConsent=b82d2ce2-c6b2-4091-8c4b-dbd1bc454c0c&spQueryParams=&mandatoryClaims=0_Username regards, Shavantha Weerasinghe Senior Engineering Process Coordinator WSO2, Inc. lean.enterprise.middleware. http://wso2.com http://wso2.org *Mobile : +94 <+94%2071%20593%203168>714800048* Tel : 94 11 214 5345 Fax :94 11 2145300 On Mon, May 28, 2018 at 9:52 AM, Hasanthi Purnima Dissanayake < hasan...@wso2.com> wrote: > Hi Shavantha, > > Is this with IS 5.5.0 GA pack ? I have just followed the doc and I could > execute the curl commands successfully. Please find the requests and > responses I got. > > request : > > curl -u a2hE7kiVtQonrW3fWUUGDs67mfwa:co4Akgj8UciNrMviwLdroyW1M3oa -d > "grant_type=password&username=admin&password=admin&scope=openid" -H > "Content-Type:application/x-www-form-urlencoded" > https://localhost:9443/oauth2/token -k; > > response : > > {"access_token":"277f0e4e-ce4f-3040-a893-fc360b62e26d"," > refresh_token":"ee369283-df03-3e05-bc11-ca32f5435a06"," > scope":"openid","id_token":"eyJ4NXQiOiJOVEF4Wm1NeE5ETXlaRG > czTVRVMVpHTTBNekV6T0RKaFpXSTRORE5sWkRVMU9HRmtOakZpTVEiLCJraW > QiOiJOVEF4Wm1NeE5ETXlaRGczTVRVMVpHTTBNekV6T0RKaFpXSTRORE5sWk > RVMU9HRmtOakZpTVEiLCJhbGciOiJSUzI1NiJ9.eyJhdF9oYXNoIjoiUXI5X1FnTE1SS1 > VTQ29pMmVoTUM0dyIsInN1YiI6ImFkbWluIiwiYXVkIjpbImEyaEU3a2lWdF > FvbnJXM2ZXVVVHRHM2N21md2EiXSwiYXpwIjoiYTJoRTdraVZ0UW9uclczZl > dVVUdEczY3bWZ3YSIsImFtciI6WyJwYXNzd29yZCJdLCJpc3MiOiJodHRwcz > pcL1wvbG9jYWxob3N0Ojk0NDNcL29hdXRoMlwvdG9rZW4iLCJleHAiOjE1Mj > c0ODM2MTIsImlhdCI6MTUyNzQ4MDAxMn0.WxlTedNKTvgiQhHpc3fvXV8EUSgtE1 > bxnzE_V4eLEVgs-7bFZ5QCtL-5WIL_m0L4lhMPK1m9v8_KIWWRVGuxD-vnYb8rVqWqBk- > QLsmsKmxh6oNYcBXJ8sMoYODF1qSQK2DveMw7fbk6xSTcKzBIHVcArsci4T3 > EEWFUoP08xG37LLqwdojWLe4MPcmZSn8nGB8ysfXEuav-7CyIXSQMpBS3XfR1gT_CeaILs_ > gIsdmtuXl9xoENynsCtZAiXrQyFXuQ9ipSB6Ebfbi-XHV732TwKy9uiSCz6knPe7jFD2PSEl > 4AcU8I8UeFZ5OQ7nUN9L45L4I1VjOnYy_OiUZWhQ","token_type":" > Bearer","expires_in":2557 > > > request : > > curl -v -X POST -H "Authorization: Bearer > 277f0e4e-ce4f-3040-a893-fc360b62e26d" > -H "Content-Type: application/x-www-form-urlencoded;charset=UTF-8" -k -d > "response_type=code&client_id=a2hE7kiVtQonrW3fWUUGDs67mfwa&redirect_uri=" > http://localhost:8080/playground2/oauth2client" &scope=openid" > https://localhost:9443/oauth2/authorize > > > response : > > Location: http://localhost:8080/playground2/oauth2client?code= > 63380aed-2812-3f2c-a120-6bb7702bb4ce&session_state= > 98edbe0321cc337560dba789cf7c60635a942c2a98aa35983e144342308f > 74ea.gS_flCgCVJ17T-iocR2Yyg > > > > request : > > curl -v -X POST --basic -u > a2hE7kiVtQonrW3fWUUGDs67mfwa:co4Akgj8UciNrMviwLdroyW1M3oa > -H "Content-Type: application/x-www-form-urlencoded;charset=UTF-8" -k -d > "grant_type=authorization_code&client_id=a2hE7kiVtQonrW3fWUUGDs67mfwa& > redirect_uri=http://localhost:8080/playground2/oauth2client& > code=63380aed-2812-3f2c-a120-6bb7702bb4ce&scope=openid" > https://localhost:9443/oauth2/token; > > > response : > > {"access_token":"277f0e4e-ce4f-3040-a893-fc360b62e26d"," > refresh_token":"ee369283-df03-3e05-bc11-ca32f5435a06"," > scope":"openid","id_token":"eyJ4NXQiOiJOVEF4Wm1NeE5ETXlaRG > czTVRVMVpHTTBNekV6T0RKaFpXSTRORE5sWkRVMU9HRmtOakZpTVEiLCJraW > QiOiJOVEF4Wm1NeE5ETXlaRGczTVRVMVpHTTBNekV6T0RKaFpXSTRORE5sWk > RVMU9HRmtOakZpTVEiLCJhbGciOiJSUzI1NiJ9.eyJhdF9oYXNoIjoiUXI5X1FnTE1SS1 > VTQ29pMmVoTUM0dyIsImNfaGFzaCI6Ikc5YUE3LWVSdGR5OWhIcmdYTXFzZ2 > ciLCJzdWIiOiJhZG1pbiIsImF1ZCI6WyJhMmhFN2tpVnRRb25yVzNmV1VVR0 > RzNjdtZndhIl0sImF6cCI6ImEyaEU3a2lWdFFvbnJXM2ZXVVVHRHM2N21md2 > EiLCJhbXIiOltdLCJpc3MiOiJodHRwczpcL1wvbG9jYWxob3N0Ojk0NDNcL2 > 9hdXRoMlwvdG9rZW4iLCJleHAiOjE1Mjc0ODQ1MTAsImlhdCI6MTUyNzQ4MD > kxMCwic2lkIjoiNmEyNTAzMDYtZjUyOC00OWE2LWE1ZTAtNjBlY2I0NTgzODQ4In0. > OrmfIJUuCdxZ3Q9VEsRDHykk-PFK-xwTarRo9FjYjq4tgN- > xp9IZjd1ofL1vtYcuR6QNKZTokSAujpXyy-j7lC9enGkBLBSm1XV06aONr- > oPe4q3r0AlQLbvpbdodrkDcqwOa6Cpe83kBJU-wWEk8QWJEloWhfmoBktr2PXRRlGbBm > q-mCCRe5NVe-Sxqb0Vl0lqlT98wQvHdhMtMy-TaR56hNNnhIP10I0Vu9v7kLDlNMxiL > g1O2uMn_OBZfDPSN68XZ-MIQFjoHvK8uc_SoZIa8el9uM4vTQRjUA- > O6jT56IjfnI6iB_UcRCaigsT_XNy_4tcVj-scXKsJ8PuQuA","token_ > type":"Bearer","expires_in":1659} > > > Can you please elaborate much on from which step did you get the above > null pointer ? > > Thanks, > > On Mon, May 28, 2018 at 8:20 AM, Shavantha Weerasinghe <shavan...@wso2.com > > wrote: > >> Hi All >> >> When following the steps in [1] and when submitting the user consent step >> I get the below exception. Appriciate some input on the possile cause. This >> was with the SkipUserConsent property in identity.xml set to false. >> >> [1]https://docs.wso2.com/display/IS550/OAuth+Request+Path+Authenticator >> >> [2018-05-28 07:50:40,110] INFO {org.wso2.carbon.core.services >> .util.CarbonAuthenticationUtil} - 'admin@carbon.super [-1234]' logged >> in at [2018-05-28 07:50:40,110+0530] >> [2018-05-28 07:50:41,212] ERROR {org.wso2.carbon.identity.appl >> ication.authenticator.requestpath.oauth.OAuthRequestPathAuthenticator} >> - RequestPath OAuth authentication failed >> [2018-05-28 07:50:41,219] ERROR {org.wso2.carbon.identity.appl >> ication.authenticator.requestpath.oauth.OAuthRequestPathAuthenticator} >> - Authentication Failed >> org.wso2.carbon.identity.application.authentication.framewor >> k.exception.AuthenticationFailedException: Authentication Failed >> at org.wso2.carbon.identity.application.authenticator.requestpa >> th.oauth.OAuthRequestPathAuthenticator.processAuthentication >> Response(OAuthRequestPathAuthenticator.java:98) >> at org.wso2.carbon.identity.application.authentication.framewor >> k.AbstractApplicationAuthenticator.process(AbstractApplicati >> onAuthenticator.java:72) >> at org.wso2.carbon.identity.application.authentication.framewor >> k.handler.sequence.impl.DefaultRequestPathBasedSequenceHandl >> er.handle(DefaultRequestPathBasedSequenceHandler.java:97) >> at org.wso2.carbon.identity.application.authentication.framewor >> k.handler.request.impl.DefaultAuthenticationRequestHandler. >> handle(DefaultAuthenticationRequestHandler.java:124) >> at org.wso2.carbon.identity.application.authentication.framewor >> k.handler.request.impl.DefaultRequestCoordinator.handle(Defa >> ultRequestCoordinator.java:156) >> at org.wso2.carbon.identity.application.authentication.framewor >> k.CommonAuthenticationHandler.doPost(CommonAuthenticationHandler.java:46) >> at org.wso2.carbon.identity.application.authentication.framewor >> k.CommonAuthenticationHandler.doGet(CommonAuthenticationHandler.java:37) >> at org.wso2.carbon.identity.oauth.endpoint.authz.OAuth2AuthzEnd >> point.handleAuthFlowThroughFramework(OAuth2AuthzEndpoint.java:2020) >> at org.wso2.carbon.identity.oauth.endpoint.authz.OAuth2AuthzEnd >> point.handleInitialAuthorizationRequest(OAuth2AuthzEndpoint.java:703) >> at org.wso2.carbon.identity.oauth.endpoint.authz.OAuth2AuthzEnd >> point.authorize(OAuth2AuthzEndpoint.java:198) >> at org.wso2.carbon.identity.oauth.endpoint.authz.OAuth2AuthzEnd >> point.authorizePost(OAuth2AuthzEndpoint.java:230) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce >> ssorImpl.java:62) >> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe >> thodAccessorImpl.java:43) >> at java.lang.reflect.Method.invoke(Method.java:498) >> at org.apache.cxf.service.invoker.AbstractInvoker.performInvoca >> tion(AbstractInvoker.java:188) >> at org.apache.cxf.service.invoker.AbstractInvoker.invoke( >> AbstractInvoker.java:104) >> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:204) >> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:101) >> at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run( >> ServiceInvokerInterceptor.java:58) >> at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleM >> essage(ServiceInvokerInterceptor.java:94) >> at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(Phase >> InterceptorChain.java:272) >> at org.apache.cxf.transport.ChainInitiationObserver.onMessage(C >> hainInitiationObserver.java:121) >> at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke >> (AbstractHTTPDestination.java:249) >> at org.apache.cxf.transport.servlet.ServletController.invokeDes >> tination(ServletController.java:248) >> at org.apache.cxf.transport.servlet.ServletController.invoke( >> ServletController.java:222) >> at org.apache.cxf.transport.servlet.ServletController.invoke( >> ServletController.java:153) >> at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke( >> CXFNonSpringServlet.java:171) >> at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleR >> equest(AbstractHTTPServlet.java:289) >> at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost( >> AbstractHTTPServlet.java:209) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:650) >> at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service >> (AbstractHTTPServlet.java:265) >> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi >> lter(ApplicationFilterChain.java:303) >> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App >> licationFilterChain.java:208) >> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilte >> r.java:52) >> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi >> lter(ApplicationFilterChain.java:241) >> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App >> licationFilterChain.java:208) >> at org.wso2.carbon.webapp.mgt.filter.AuthorizationHeaderFilter. >> doFilter(AuthorizationHeaderFilter.java:131) >> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi >> lter(ApplicationFilterChain.java:241) >> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App >> licationFilterChain.java:208) >> at org.wso2.carbon.ui.filters.cache.ContentTypeBasedCachePreven >> tionFilter.doFilter(ContentTypeBasedCachePreventionFilter.java:53) >> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi >> lter(ApplicationFilterChain.java:241) >> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App >> licationFilterChain.java:208) >> at org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilte >> r(HttpHeaderSecurityFilter.java:124) >> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi >> lter(ApplicationFilterChain.java:241) >> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App >> licationFilterChain.java:208) >> at org.apache.catalina.core.StandardWrapperValve.invoke(Standar >> dWrapperValve.java:219) >> at org.apache.catalina.core.StandardContextValve.invoke(Standar >> dContextValve.java:110) >> at org.apache.catalina.core.StandardHostValve.invoke(StandardHo >> stValve.java:169) >> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo >> rtValve.java:103) >> at org.wso2.carbon.identity.context.rewrite.valve.TenantContext >> RewriteValve.invoke(TenantContextRewriteValve.java:80) >> at org.wso2.carbon.identity.authz.valve.AuthorizationValve. >> invoke(AuthorizationValve.java:91) >> at org.wso2.carbon.identity.auth.valve.AuthenticationValve.invo >> ke(AuthenticationValve.java:60) >> at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInv >> ocation(CompositeValve.java:99) >> at org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke >> (CarbonTomcatValve.java:47) >> at org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(Tena >> ntLazyLoaderValve.java:57) >> at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invok >> eValves(TomcatValveContainer.java:47) >> at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(Comp >> ositeValve.java:62) >> at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetection >> Valve.invoke(CarbonStuckThreadDetectionValve.java:159) >> at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogVa >> lve.java:962) >> at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve. >> invoke(CarbonContextCreatorValve.java:57) >> at org.apache.catalina.core.StandardEngineValve.invoke(Standard >> EngineValve.java:116) >> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd >> apter.java:445) >> at org.apache.coyote.http11.AbstractHttp11Processor.process(Abs >> tractHttp11Processor.java:1115) >> at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler >> .process(AbstractProtocol.java:637) >> at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun >> (NioEndpoint.java:1775) >> at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run( >> NioEndpoint.java:1734) >> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool >> Executor.java:1142) >> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo >> lExecutor.java:617) >> at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable. >> run(TaskThread.java:61) >> at java.lang.Thread.run(Thread.java:748) >> [2018-05-28 07:50:41,240] ERROR {org.wso2.carbon.identity.appl >> ication.authentication.framework.handler.sequence.impl.Defau >> ltRequestPathBasedSequenceHandler} - Authentication Failed >> org.wso2.carbon.identity.application.authentication.framewor >> k.exception.AuthenticationFailedException: Authentication Failed >> at org.wso2.carbon.identity.application.authenticator.requestpa >> th.oauth.OAuthRequestPathAuthenticator.processAuthentication >> Response(OAuthRequestPathAuthenticator.java:126) >> at org.wso2.carbon.identity.application.authentication.framewor >> k.AbstractApplicationAuthenticator.process(AbstractApplicati >> onAuthenticator.java:72) >> at org.wso2.carbon.identity.application.authentication.framewor >> k.handler.sequence.impl.DefaultRequestPathBasedSequenceHandl >> er.handle(DefaultRequestPathBasedSequenceHandler.java:97) >> at org.wso2.carbon.identity.application.authentication.framewor >> k.handler.request.impl.DefaultAuthenticationRequestHandler. >> handle(DefaultAuthenticationRequestHandler.java:124) >> at org.wso2.carbon.identity.application.authentication.framewor >> k.handler.request.impl.DefaultRequestCoordinator.handle(Defa >> ultRequestCoordinator.java:156) >> at org.wso2.carbon.identity.application.authentication.framewor >> k.CommonAuthenticationHandler.doPost(CommonAuthenticationHandler.java:46) >> at org.wso2.carbon.identity.application.authentication.framewor >> k.CommonAuthenticationHandler.doGet(CommonAuthenticationHandler.java:37) >> at org.wso2.carbon.identity.oauth.endpoint.authz.OAuth2AuthzEnd >> point.handleAuthFlowThroughFramework(OAuth2AuthzEndpoint.java:2020) >> at org.wso2.carbon.identity.oauth.endpoint.authz.OAuth2AuthzEnd >> point.handleInitialAuthorizationRequest(OAuth2AuthzEndpoint.java:703) >> at org.wso2.carbon.identity.oauth.endpoint.authz.OAuth2AuthzEnd >> point.authorize(OAuth2AuthzEndpoint.java:198) >> at org.wso2.carbon.identity.oauth.endpoint.authz.OAuth2AuthzEnd >> point.authorizePost(OAuth2AuthzEndpoint.java:230) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce >> ssorImpl.java:62) >> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe >> thodAccessorImpl.java:43) >> at java.lang.reflect.Method.invoke(Method.java:498) >> at org.apache.cxf.service.invoker.AbstractInvoker.performInvoca >> tion(AbstractInvoker.java:188) >> at org.apache.cxf.service.invoker.AbstractInvoker.invoke( >> AbstractInvoker.java:104) >> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:204) >> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:101) >> at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run( >> ServiceInvokerInterceptor.java:58) >> at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleM >> essage(ServiceInvokerInterceptor.java:94) >> at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(Phase >> InterceptorChain.java:272) >> at org.apache.cxf.transport.ChainInitiationObserver.onMessage(C >> hainInitiationObserver.java:121) >> at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke >> (AbstractHTTPDestination.java:249) >> at org.apache.cxf.transport.servlet.ServletController.invokeDes >> tination(ServletController.java:248) >> at org.apache.cxf.transport.servlet.ServletController.invoke( >> ServletController.java:222) >> at org.apache.cxf.transport.servlet.ServletController.invoke( >> ServletController.java:153) >> at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke( >> CXFNonSpringServlet.java:171) >> at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleR >> equest(AbstractHTTPServlet.java:289) >> at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost( >> AbstractHTTPServlet.java:209) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:650) >> at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service >> (AbstractHTTPServlet.java:265) >> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi >> lter(ApplicationFilterChain.java:303) >> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App >> licationFilterChain.java:208) >> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilte >> r.java:52) >> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi >> lter(ApplicationFilterChain.java:241) >> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App >> licationFilterChain.java:208) >> at org.wso2.carbon.webapp.mgt.filter.AuthorizationHeaderFilter. >> doFilter(AuthorizationHeaderFilter.java:131) >> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi >> lter(ApplicationFilterChain.java:241) >> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App >> licationFilterChain.java:208) >> at org.wso2.carbon.ui.filters.cache.ContentTypeBasedCachePreven >> tionFilter.doFilter(ContentTypeBasedCachePreventionFilter.java:53) >> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi >> lter(ApplicationFilterChain.java:241) >> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App >> licationFilterChain.java:208) >> at org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilte >> r(HttpHeaderSecurityFilter.java:124) >> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi >> lter(ApplicationFilterChain.java:241) >> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App >> licationFilterChain.java:208) >> at org.apache.catalina.core.StandardWrapperValve.invoke(Standar >> dWrapperValve.java:219) >> at org.apache.catalina.core.StandardContextValve.invoke(Standar >> dContextValve.java:110) >> at org.apache.catalina.core.StandardHostValve.invoke(StandardHo >> stValve.java:169) >> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo >> rtValve.java:103) >> at org.wso2.carbon.identity.context.rewrite.valve.TenantContext >> RewriteValve.invoke(TenantContextRewriteValve.java:80) >> at org.wso2.carbon.identity.authz.valve.AuthorizationValve. >> invoke(AuthorizationValve.java:91) >> at org.wso2.carbon.identity.auth.valve.AuthenticationValve.invo >> ke(AuthenticationValve.java:60) >> at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInv >> ocation(CompositeValve.java:99) >> at org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke >> (CarbonTomcatValve.java:47) >> at org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(Tena >> ntLazyLoaderValve.java:57) >> at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invok >> eValves(TomcatValveContainer.java:47) >> at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(Comp >> ositeValve.java:62) >> at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetection >> Valve.invoke(CarbonStuckThreadDetectionValve.java:159) >> at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogVa >> lve.java:962) >> at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve. >> invoke(CarbonContextCreatorValve.java:57) >> at org.apache.catalina.core.StandardEngineValve.invoke(Standard >> EngineValve.java:116) >> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd >> apter.java:445) >> at org.apache.coyote.http11.AbstractHttp11Processor.process(Abs >> tractHttp11Processor.java:1115) >> at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler >> .process(AbstractProtocol.java:637) >> at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun >> (NioEndpoint.java:1775) >> at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run( >> NioEndpoint.java:1734) >> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool >> Executor.java:1142) >> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo >> lExecutor.java:617) >> at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable. >> run(TaskThread.java:61) >> at java.lang.Thread.run(Thread.java:748) >> Caused by: org.wso2.carbon.identity.application.authentication.framewor >> k.exception.AuthenticationFailedException: Authentication Failed >> at org.wso2.carbon.identity.application.authenticator.requestpa >> th.oauth.OAuthRequestPathAuthenticator.processAuthentication >> Response(OAuthRequestPathAuthenticator.java:98) >> ... 70 more >> [2018-05-28 07:50:44,644] INFO {org.wso2.carbon.core.services >> .util.CarbonAuthenticationUtil} - 'admin@carbon.super [-1234]' logged >> in at [2018-05-28 07:50:44,644+0530] >> [2018-05-28 07:51:06,659] ERROR >> {org.apache.catalina.core.StandardWrapperValve} >> - Servlet.service() for servlet [OAuth2Endpoints] in context with path >> [/oauth2] threw exception >> java.lang.RuntimeException: org.apache.cxf.interceptor.Fault >> at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserv >> er.onMessage(AbstractFaultChainInitiatorObserver.java:116) >> at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(Phase >> InterceptorChain.java:336) >> at org.apache.cxf.transport.ChainInitiationObserver.onMessage(C >> hainInitiationObserver.java:121) >> at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke >> (AbstractHTTPDestination.java:249) >> at org.apache.cxf.transport.servlet.ServletController.invokeDes >> tination(ServletController.java:248) >> at org.apache.cxf.transport.servlet.ServletController.invoke( >> ServletController.java:222) >> at org.apache.cxf.transport.servlet.ServletController.invoke( >> ServletController.java:153) >> at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke( >> CXFNonSpringServlet.java:171) >> at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleR >> equest(AbstractHTTPServlet.java:289) >> at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost( >> AbstractHTTPServlet.java:209) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:650) >> at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service >> (AbstractHTTPServlet.java:265) >> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi >> lter(ApplicationFilterChain.java:303) >> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App >> licationFilterChain.java:208) >> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilte >> r.java:52) >> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi >> lter(ApplicationFilterChain.java:241) >> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App >> licationFilterChain.java:208) >> at org.wso2.carbon.webapp.mgt.filter.AuthorizationHeaderFilter. >> doFilter(AuthorizationHeaderFilter.java:85) >> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi >> lter(ApplicationFilterChain.java:241) >> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App >> licationFilterChain.java:208) >> at org.wso2.carbon.ui.filters.cache.ContentTypeBasedCachePreven >> tionFilter.doFilter(ContentTypeBasedCachePreventionFilter.java:53) >> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi >> lter(ApplicationFilterChain.java:241) >> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App >> licationFilterChain.java:208) >> at org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilte >> r(HttpHeaderSecurityFilter.java:124) >> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi >> lter(ApplicationFilterChain.java:241) >> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App >> licationFilterChain.java:208) >> at org.apache.catalina.core.StandardWrapperValve.invoke(Standar >> dWrapperValve.java:219) >> at org.apache.catalina.core.StandardContextValve.invoke(Standar >> dContextValve.java:110) >> at org.apache.catalina.core.StandardHostValve.invoke(StandardHo >> stValve.java:169) >> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo >> rtValve.java:103) >> at org.wso2.carbon.identity.context.rewrite.valve.TenantContext >> RewriteValve.invoke(TenantContextRewriteValve.java:80) >> at org.wso2.carbon.identity.authz.valve.AuthorizationValve. >> invoke(AuthorizationValve.java:91) >> at org.wso2.carbon.identity.auth.valve.AuthenticationValve.invo >> ke(AuthenticationValve.java:60) >> at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInv >> ocation(CompositeValve.java:99) >> at org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke >> (CarbonTomcatValve.java:47) >> at org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(Tena >> ntLazyLoaderValve.java:57) >> at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invok >> eValves(TomcatValveContainer.java:47) >> at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(Comp >> ositeValve.java:62) >> at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetection >> Valve.invoke(CarbonStuckThreadDetectionValve.java:159) >> at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogVa >> lve.java:962) >> at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve. >> invoke(CarbonContextCreatorValve.java:57) >> at org.apache.catalina.core.StandardEngineValve.invoke(Standard >> EngineValve.java:116) >> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd >> apter.java:445) >> at org.apache.coyote.http11.AbstractHttp11Processor.process(Abs >> tractHttp11Processor.java:1115) >> at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler >> .process(AbstractProtocol.java:637) >> at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun >> (NioEndpoint.java:1775) >> at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run( >> NioEndpoint.java:1734) >> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool >> Executor.java:1142) >> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo >> lExecutor.java:617) >> at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable. >> run(TaskThread.java:61) >> at java.lang.Thread.run(Thread.java:748) >> Caused by: org.apache.cxf.interceptor.Fault >> at org.apache.cxf.service.invoker.AbstractInvoker.createFault( >> AbstractInvoker.java:170) >> at org.apache.cxf.service.invoker.AbstractInvoker.invoke( >> AbstractInvoker.java:136) >> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:204) >> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:101) >> at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run( >> ServiceInvokerInterceptor.java:58) >> at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleM >> essage(ServiceInvokerInterceptor.java:94) >> at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(Phase >> InterceptorChain.java:272) >> ... 49 more >> Caused by: java.lang.NullPointerException >> at org.wso2.carbon.identity.oauth.endpoint.authz.OAuth2AuthzEnd >> point.addUserAttributesToCache(OAuth2AuthzEndpoint.java:1018) >> at org.wso2.carbon.identity.oauth.endpoint.authz.OAuth2AuthzEnd >> point.setAuthorizationCode(OAuth2AuthzEndpoint.java:960) >> at org.wso2.carbon.identity.oauth.endpoint.authz.OAuth2AuthzEnd >> point.handleSuccessAuthorization(OAuth2AuthzEndpoint.java:901) >> at org.wso2.carbon.identity.oauth.endpoint.authz.OAuth2AuthzEnd >> point.handleUserConsent(OAuth2AuthzEndpoint.java:802) >> at org.wso2.carbon.identity.oauth.endpoint.authz.OAuth2AuthzEnd >> point.handleResponseFromConsent(OAuth2AuthzEndpoint.java:353) >> at org.wso2.carbon.identity.oauth.endpoint.authz.OAuth2AuthzEnd >> point.authorize(OAuth2AuthzEndpoint.java:202) >> at org.wso2.carbon.identity.oauth.endpoint.authz.OAuth2AuthzEnd >> point.authorizePost(OAuth2AuthzEndpoint.java:230) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce >> ssorImpl.java:62) >> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe >> thodAccessorImpl.java:43) >> at java.lang.reflect.Method.invoke(Method.java:498) >> at org.apache.cxf.service.invoker.AbstractInvoker.performInvoca >> tion(AbstractInvoker.java:188) >> at org.apache.cxf.service.invoker.AbstractInvoker.invoke( >> AbstractInvoker.java:104) >> ... 54 more >> >> >> regards, >> Shavantha Weerasinghe >> Senior Engineering Process Coordinator >> WSO2, Inc. >> lean.enterprise.middleware. >> http://wso2.com >> http://wso2.org >> *Mobile : +94 <+94%2071%20593%203168>714800048* >> Tel : 94 11 214 5345 >> Fax :94 11 2145300 >> >> > > > -- > > Hasanthi Dissanayake > > Senior Software Engineer | WSO2 > > E: hasan...@wso2.com > M :0718407133| http://wso2.com <http://wso2.com/> >
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev