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":"eyJ4NXQiOiJOVEF4Wm1NeE5ETXlaRGczTVRVMVpHTTBNekV6T0RKaFpXSTRORE5sWkRVMU9HRmtOakZpTVEiLCJraWQiOiJOVEF4Wm1NeE5ETXlaRGczTVRVMVpHTTBNekV6T0RKaFpXSTRORE5sWkRVMU9HRmtOakZpTVEiLCJhbGciOiJSUzI1NiJ9.eyJhdF9oYXNoIjoiUXI5X1FnTE1SS1VTQ29pMmVoTUM0dyIsInN1YiI6ImFkbWluIiwiYXVkIjpbImEyaEU3a2lWdFFvbnJXM2ZXVVVHRHM2N21md2EiXSwiYXpwIjoiYTJoRTdraVZ0UW9uclczZldVVUdEczY3bWZ3YSIsImFtciI6WyJwYXNzd29yZCJdLCJpc3MiOiJodHRwczpcL1wvbG9jYWxob3N0Ojk0NDNcL29hdXRoMlwvdG9rZW4iLCJleHAiOjE1Mjc0ODM2MTIsImlhdCI6MTUyNzQ4MDAxMn0.WxlTedNKTvgiQhHpc3fvXV8EUSgtE1bxnzE_V4eLEVgs-7bFZ5QCtL-5WIL_m0L4lhMPK1m9v8_KIWWRVGuxD-vnYb8rVqWqBk-QLsmsKmxh6oNYcBXJ8sMoYODF1qSQK2DveMw7fbk6xSTcKzBIHVcArsci4T3EEWFUoP08xG37LLqwdojWLe4MPcmZSn8nGB8ysfXEuav-7CyIXSQMpBS3XfR1gT_CeaILs_gIsdmtuXl9xoENynsCtZAiXrQyFXuQ9ipSB6Ebfbi-XHV732TwKy9uiSCz6knPe7jFD2PSEl4AcU8I8UeFZ5OQ7nUN9L45L4I1VjOnYy_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=98edbe0321cc337560dba789cf7c60635a942c2a98aa35983e144342308f74ea.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":"eyJ4NXQiOiJOVEF4Wm1NeE5ETXlaRGczTVRVMVpHTTBNekV6T0RKaFpXSTRORE5sWkRVMU9HRmtOakZpTVEiLCJraWQiOiJOVEF4Wm1NeE5ETXlaRGczTVRVMVpHTTBNekV6T0RKaFpXSTRORE5sWkRVMU9HRmtOakZpTVEiLCJhbGciOiJSUzI1NiJ9.eyJhdF9oYXNoIjoiUXI5X1FnTE1SS1VTQ29pMmVoTUM0dyIsImNfaGFzaCI6Ikc5YUE3LWVSdGR5OWhIcmdYTXFzZ2ciLCJzdWIiOiJhZG1pbiIsImF1ZCI6WyJhMmhFN2tpVnRRb25yVzNmV1VVR0RzNjdtZndhIl0sImF6cCI6ImEyaEU3a2lWdFFvbnJXM2ZXVVVHRHM2N21md2EiLCJhbXIiOltdLCJpc3MiOiJodHRwczpcL1wvbG9jYWxob3N0Ojk0NDNcL29hdXRoMlwvdG9rZW4iLCJleHAiOjE1Mjc0ODQ1MTAsImlhdCI6MTUyNzQ4MDkxMCwic2lkIjoiNmEyNTAzMDYtZjUyOC00OWE2LWE1ZTAtNjBlY2I0NTgzODQ4In0.OrmfIJUuCdxZ3Q9VEsRDHykk-PFK-xwTarRo9FjYjq4tgN-xp9IZjd1ofL1vtYcuR6QNKZTokSAujpXyy-j7lC9enGkBLBSm1XV06aONr-oPe4q3r0AlQLbvpbdodrkDcqwOa6Cpe83kBJU-wWEk8QWJEloWhfmoBktr2PXRRlGbBmq-mCCRe5NVe-Sxqb0Vl0lqlT98wQvHdhMtMy-TaR56hNNnhIP10I0Vu9v7kLDlNMxiLg1O2uMn_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. > application.authenticator.requestpath.oauth.OAuthRequestPathAuthenticator} > - RequestPath OAuth authentication failed > [2018-05-28 07:50:41,219] ERROR {org.wso2.carbon.identity. > application.authenticator.requestpath.oauth.OAuthRequestPathAuthenticator} > - Authentication Failed > org.wso2.carbon.identity.application.authentication.framework.exception.AuthenticationFailedException: > Authentication Failed > at org.wso2.carbon.identity.application.authenticator. > requestpath.oauth.OAuthRequestPathAuthenticator. > processAuthenticationResponse(OAuthRequestPathAuthenticator.java:98) > at org.wso2.carbon.identity.application.authentication.framework. > AbstractApplicationAuthenticator.process(AbstractApplicationAuthenticat > or.java:72) > at org.wso2.carbon.identity.application.authentication. > framework.handler.sequence.impl.DefaultRequestPathBasedSequenc > eHandler.handle(DefaultRequestPathBasedSequenceHandler.java:97) > at org.wso2.carbon.identity.application.authentication. > framework.handler.request.impl.DefaultAuthenticationRequestHandler.handle( > DefaultAuthenticationRequestHandler.java:124) > at org.wso2.carbon.identity.application.authentication. > framework.handler.request.impl.DefaultRequestCoordinator.handle( > DefaultRequestCoordinator.java:156) > at org.wso2.carbon.identity.application.authentication.framework. > CommonAuthenticationHandler.doPost(CommonAuthenticationHandler.java:46) > at org.wso2.carbon.identity.application.authentication.framework. > CommonAuthenticationHandler.doGet(CommonAuthenticationHandler.java:37) > at org.wso2.carbon.identity.oauth.endpoint.authz.OAuth2AuthzEndpoint. > handleAuthFlowThroughFramework(OAuth2AuthzEndpoint.java:2020) > at org.wso2.carbon.identity.oauth.endpoint.authz.OAuth2AuthzEndpoint. > handleInitialAuthorizationRequest(OAuth2AuthzEndpoint.java:703) > at org.wso2.carbon.identity.oauth.endpoint.authz. > OAuth2AuthzEndpoint.authorize(OAuth2AuthzEndpoint.java:198) > at org.wso2.carbon.identity.oauth.endpoint.authz.OAuth2AuthzEndpoint. > authorizePost(OAuth2AuthzEndpoint.java:230) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke( > NativeMethodAccessorImpl.java:62) > at sun.reflect.DelegatingMethodAccessorImpl.invoke( > DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation( > 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.handleMessage( > ServiceInvokerInterceptor.java:94) > at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept( > PhaseInterceptorChain.java:272) > at org.apache.cxf.transport.ChainInitiationObserver.onMessage( > ChainInitiationObserver.java:121) > at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke( > AbstractHTTPDestination.java:249) > at org.apache.cxf.transport.servlet.ServletController. > invokeDestination(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.handleRequest( > 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.internalDoFilter( > ApplicationFilterChain.java:303) > at org.apache.catalina.core.ApplicationFilterChain.doFilter( > ApplicationFilterChain.java:208) > at org.apache.tomcat.websocket.server.WsFilter.doFilter( > WsFilter.java:52) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( > ApplicationFilterChain.java:241) > at org.apache.catalina.core.ApplicationFilterChain.doFilter( > ApplicationFilterChain.java:208) > at org.wso2.carbon.webapp.mgt.filter.AuthorizationHeaderFilter. > doFilter(AuthorizationHeaderFilter.java:131) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( > ApplicationFilterChain.java:241) > at org.apache.catalina.core.ApplicationFilterChain.doFilter( > ApplicationFilterChain.java:208) > at org.wso2.carbon.ui.filters.cache.ContentTypeBasedCachePreventio > nFilter.doFilter(ContentTypeBasedCachePreventionFilter.java:53) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( > ApplicationFilterChain.java:241) > at org.apache.catalina.core.ApplicationFilterChain.doFilter( > ApplicationFilterChain.java:208) > at org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter( > HttpHeaderSecurityFilter.java:124) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( > ApplicationFilterChain.java:241) > at org.apache.catalina.core.ApplicationFilterChain.doFilter( > ApplicationFilterChain.java:208) > at org.apache.catalina.core.StandardWrapperValve.invoke( > StandardWrapperValve.java:219) > at org.apache.catalina.core.StandardContextValve.invoke( > StandardContextValve.java:110) > at org.apache.catalina.core.StandardHostValve.invoke( > StandardHostValve.java:169) > at org.apache.catalina.valves.ErrorReportValve.invoke( > ErrorReportValve.java:103) > at org.wso2.carbon.identity.context.rewrite.valve. > TenantContextRewriteValve.invoke(TenantContextRewriteValve.java:80) > at org.wso2.carbon.identity.authz.valve.AuthorizationValve.invoke( > AuthorizationValve.java:91) > at org.wso2.carbon.identity.auth.valve.AuthenticationValve. > invoke(AuthenticationValve.java:60) > at org.wso2.carbon.tomcat.ext.valves.CompositeValve. > continueInvocation(CompositeValve.java:99) > at org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1. > invoke(CarbonTomcatValve.java:47) > at org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke( > TenantLazyLoaderValve.java:57) > at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer. > invokeValves(TomcatValveContainer.java:47) > at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke( > CompositeValve.java:62) > at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValv > e.invoke(CarbonStuckThreadDetectionValve.java:159) > at org.apache.catalina.valves.AccessLogValve.invoke( > AccessLogValve.java:962) > at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke( > CarbonContextCreatorValve.java:57) > at org.apache.catalina.core.StandardEngineValve.invoke( > StandardEngineValve.java:116) > at org.apache.catalina.connector.CoyoteAdapter.service( > CoyoteAdapter.java:445) > at org.apache.coyote.http11.AbstractHttp11Processor.process( > AbstractHttp11Processor.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( > ThreadPoolExecutor.java:1142) > at java.util.concurrent.ThreadPoolExecutor$Worker.run( > ThreadPoolExecutor.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. > application.authentication.framework.handler.sequence.impl. > DefaultRequestPathBasedSequenceHandler} - Authentication Failed > org.wso2.carbon.identity.application.authentication.framework.exception.AuthenticationFailedException: > Authentication Failed > at org.wso2.carbon.identity.application.authenticator. > requestpath.oauth.OAuthRequestPathAuthenticator. > processAuthenticationResponse(OAuthRequestPathAuthenticator.java:126) > at org.wso2.carbon.identity.application.authentication.framework. > AbstractApplicationAuthenticator.process(AbstractApplicationAuthenticat > or.java:72) > at org.wso2.carbon.identity.application.authentication. > framework.handler.sequence.impl.DefaultRequestPathBasedSequenc > eHandler.handle(DefaultRequestPathBasedSequenceHandler.java:97) > at org.wso2.carbon.identity.application.authentication. > framework.handler.request.impl.DefaultAuthenticationRequestHandler.handle( > DefaultAuthenticationRequestHandler.java:124) > at org.wso2.carbon.identity.application.authentication. > framework.handler.request.impl.DefaultRequestCoordinator.handle( > DefaultRequestCoordinator.java:156) > at org.wso2.carbon.identity.application.authentication.framework. > CommonAuthenticationHandler.doPost(CommonAuthenticationHandler.java:46) > at org.wso2.carbon.identity.application.authentication.framework. > CommonAuthenticationHandler.doGet(CommonAuthenticationHandler.java:37) > at org.wso2.carbon.identity.oauth.endpoint.authz.OAuth2AuthzEndpoint. > handleAuthFlowThroughFramework(OAuth2AuthzEndpoint.java:2020) > at org.wso2.carbon.identity.oauth.endpoint.authz.OAuth2AuthzEndpoint. > handleInitialAuthorizationRequest(OAuth2AuthzEndpoint.java:703) > at org.wso2.carbon.identity.oauth.endpoint.authz. > OAuth2AuthzEndpoint.authorize(OAuth2AuthzEndpoint.java:198) > at org.wso2.carbon.identity.oauth.endpoint.authz.OAuth2AuthzEndpoint. > authorizePost(OAuth2AuthzEndpoint.java:230) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke( > NativeMethodAccessorImpl.java:62) > at sun.reflect.DelegatingMethodAccessorImpl.invoke( > DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation( > 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.handleMessage( > ServiceInvokerInterceptor.java:94) > at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept( > PhaseInterceptorChain.java:272) > at org.apache.cxf.transport.ChainInitiationObserver.onMessage( > ChainInitiationObserver.java:121) > at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke( > AbstractHTTPDestination.java:249) > at org.apache.cxf.transport.servlet.ServletController. > invokeDestination(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.handleRequest( > 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.internalDoFilter( > ApplicationFilterChain.java:303) > at org.apache.catalina.core.ApplicationFilterChain.doFilter( > ApplicationFilterChain.java:208) > at org.apache.tomcat.websocket.server.WsFilter.doFilter( > WsFilter.java:52) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( > ApplicationFilterChain.java:241) > at org.apache.catalina.core.ApplicationFilterChain.doFilter( > ApplicationFilterChain.java:208) > at org.wso2.carbon.webapp.mgt.filter.AuthorizationHeaderFilter. > doFilter(AuthorizationHeaderFilter.java:131) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( > ApplicationFilterChain.java:241) > at org.apache.catalina.core.ApplicationFilterChain.doFilter( > ApplicationFilterChain.java:208) > at org.wso2.carbon.ui.filters.cache.ContentTypeBasedCachePreventio > nFilter.doFilter(ContentTypeBasedCachePreventionFilter.java:53) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( > ApplicationFilterChain.java:241) > at org.apache.catalina.core.ApplicationFilterChain.doFilter( > ApplicationFilterChain.java:208) > at org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter( > HttpHeaderSecurityFilter.java:124) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( > ApplicationFilterChain.java:241) > at org.apache.catalina.core.ApplicationFilterChain.doFilter( > ApplicationFilterChain.java:208) > at org.apache.catalina.core.StandardWrapperValve.invoke( > StandardWrapperValve.java:219) > at org.apache.catalina.core.StandardContextValve.invoke( > StandardContextValve.java:110) > at org.apache.catalina.core.StandardHostValve.invoke( > StandardHostValve.java:169) > at org.apache.catalina.valves.ErrorReportValve.invoke( > ErrorReportValve.java:103) > at org.wso2.carbon.identity.context.rewrite.valve. > TenantContextRewriteValve.invoke(TenantContextRewriteValve.java:80) > at org.wso2.carbon.identity.authz.valve.AuthorizationValve.invoke( > AuthorizationValve.java:91) > at org.wso2.carbon.identity.auth.valve.AuthenticationValve. > invoke(AuthenticationValve.java:60) > at org.wso2.carbon.tomcat.ext.valves.CompositeValve. > continueInvocation(CompositeValve.java:99) > at org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1. > invoke(CarbonTomcatValve.java:47) > at org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke( > TenantLazyLoaderValve.java:57) > at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer. > invokeValves(TomcatValveContainer.java:47) > at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke( > CompositeValve.java:62) > at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValv > e.invoke(CarbonStuckThreadDetectionValve.java:159) > at org.apache.catalina.valves.AccessLogValve.invoke( > AccessLogValve.java:962) > at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke( > CarbonContextCreatorValve.java:57) > at org.apache.catalina.core.StandardEngineValve.invoke( > StandardEngineValve.java:116) > at org.apache.catalina.connector.CoyoteAdapter.service( > CoyoteAdapter.java:445) > at org.apache.coyote.http11.AbstractHttp11Processor.process( > AbstractHttp11Processor.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( > ThreadPoolExecutor.java:1142) > at java.util.concurrent.ThreadPoolExecutor$Worker.run( > ThreadPoolExecutor.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. > framework.exception.AuthenticationFailedException: Authentication Failed > at org.wso2.carbon.identity.application.authenticator. > requestpath.oauth.OAuthRequestPathAuthenticator. > processAuthenticationResponse(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.AbstractFaultChainInitiatorObs > erver.onMessage(AbstractFaultChainInitiatorObserver.java:116) > at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept( > PhaseInterceptorChain.java:336) > at org.apache.cxf.transport.ChainInitiationObserver.onMessage( > ChainInitiationObserver.java:121) > at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke( > AbstractHTTPDestination.java:249) > at org.apache.cxf.transport.servlet.ServletController. > invokeDestination(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.handleRequest( > 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.internalDoFilter( > ApplicationFilterChain.java:303) > at org.apache.catalina.core.ApplicationFilterChain.doFilter( > ApplicationFilterChain.java:208) > at org.apache.tomcat.websocket.server.WsFilter.doFilter( > WsFilter.java:52) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( > ApplicationFilterChain.java:241) > at org.apache.catalina.core.ApplicationFilterChain.doFilter( > ApplicationFilterChain.java:208) > at org.wso2.carbon.webapp.mgt.filter.AuthorizationHeaderFilter. > doFilter(AuthorizationHeaderFilter.java:85) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( > ApplicationFilterChain.java:241) > at org.apache.catalina.core.ApplicationFilterChain.doFilter( > ApplicationFilterChain.java:208) > at org.wso2.carbon.ui.filters.cache.ContentTypeBasedCachePreventio > nFilter.doFilter(ContentTypeBasedCachePreventionFilter.java:53) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( > ApplicationFilterChain.java:241) > at org.apache.catalina.core.ApplicationFilterChain.doFilter( > ApplicationFilterChain.java:208) > at org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter( > HttpHeaderSecurityFilter.java:124) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( > ApplicationFilterChain.java:241) > at org.apache.catalina.core.ApplicationFilterChain.doFilter( > ApplicationFilterChain.java:208) > at org.apache.catalina.core.StandardWrapperValve.invoke( > StandardWrapperValve.java:219) > at org.apache.catalina.core.StandardContextValve.invoke( > StandardContextValve.java:110) > at org.apache.catalina.core.StandardHostValve.invoke( > StandardHostValve.java:169) > at org.apache.catalina.valves.ErrorReportValve.invoke( > ErrorReportValve.java:103) > at org.wso2.carbon.identity.context.rewrite.valve. > TenantContextRewriteValve.invoke(TenantContextRewriteValve.java:80) > at org.wso2.carbon.identity.authz.valve.AuthorizationValve.invoke( > AuthorizationValve.java:91) > at org.wso2.carbon.identity.auth.valve.AuthenticationValve. > invoke(AuthenticationValve.java:60) > at org.wso2.carbon.tomcat.ext.valves.CompositeValve. > continueInvocation(CompositeValve.java:99) > at org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1. > invoke(CarbonTomcatValve.java:47) > at org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke( > TenantLazyLoaderValve.java:57) > at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer. > invokeValves(TomcatValveContainer.java:47) > at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke( > CompositeValve.java:62) > at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValv > e.invoke(CarbonStuckThreadDetectionValve.java:159) > at org.apache.catalina.valves.AccessLogValve.invoke( > AccessLogValve.java:962) > at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke( > CarbonContextCreatorValve.java:57) > at org.apache.catalina.core.StandardEngineValve.invoke( > StandardEngineValve.java:116) > at org.apache.catalina.connector.CoyoteAdapter.service( > CoyoteAdapter.java:445) > at org.apache.coyote.http11.AbstractHttp11Processor.process( > AbstractHttp11Processor.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( > ThreadPoolExecutor.java:1142) > at java.util.concurrent.ThreadPoolExecutor$Worker.run( > ThreadPoolExecutor.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.handleMessage( > ServiceInvokerInterceptor.java:94) > at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept( > PhaseInterceptorChain.java:272) > ... 49 more > Caused by: java.lang.NullPointerException > at org.wso2.carbon.identity.oauth.endpoint.authz.OAuth2AuthzEndpoint. > addUserAttributesToCache(OAuth2AuthzEndpoint.java:1018) > at org.wso2.carbon.identity.oauth.endpoint.authz.OAuth2AuthzEndpoint. > setAuthorizationCode(OAuth2AuthzEndpoint.java:960) > at org.wso2.carbon.identity.oauth.endpoint.authz.OAuth2AuthzEndpoint. > handleSuccessAuthorization(OAuth2AuthzEndpoint.java:901) > at org.wso2.carbon.identity.oauth.endpoint.authz.OAuth2AuthzEndpoint. > handleUserConsent(OAuth2AuthzEndpoint.java:802) > at org.wso2.carbon.identity.oauth.endpoint.authz.OAuth2AuthzEndpoint. > handleResponseFromConsent(OAuth2AuthzEndpoint.java:353) > at org.wso2.carbon.identity.oauth.endpoint.authz. > OAuth2AuthzEndpoint.authorize(OAuth2AuthzEndpoint.java:202) > at org.wso2.carbon.identity.oauth.endpoint.authz.OAuth2AuthzEndpoint. > authorizePost(OAuth2AuthzEndpoint.java:230) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke( > NativeMethodAccessorImpl.java:62) > at sun.reflect.DelegatingMethodAccessorImpl.invoke( > DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation( > 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