IDP启动SSO时刷新令牌失败。

时间:2018-05-08 10:40:57

标签: wso2 wso2is wso2carbon

我已使用IDP登录应用程序启动wso2的SSO功能。 在一段时间间隔成功登录后,调用刷新令牌到WSO2,但它失败了。

日志跟踪:  [2018-05-08 16:03:25,338] DEBUG {org.wso2.carbon.identity.application.mgt.dao.impl.ApplicationDAOImpl} - 本地声明:http://wso2.org/claims/givenname SPClaim:http://wso2.org/claims/givenname [2018-05-08 16:03:25,339] DEBUG {org.wso2.carbon.identity.application.mgt.dao.impl.ApplicationDAOImpl} - 读取应用程序的角色映射11 [2018-05-08 16:03:25,340] DEBUG {org.wso2.carbon.identity.openidconnect.DefaultIDTokenBuilder} - http://wso2.org/claims/emailaddress被定义为服务提供商的主题声明:应用程序 [2018-05-08 16:03:25,341]错误{org.wso2.carbon.identity.oauth2.OAuth2Service} - 为客户端ID发出访问令牌时发生错误:abc_12,用户ID为null,范围:[openid]和授权类型:refresh_token 显示java.lang.NullPointerException         at org.wso2.carbon.identity.openidconnect.DefaultIDTokenBuilder.getSubjectClaimFromUserStore(DefaultIDTokenBuilder.java:435)         at org.wso2.carbon.identity.openidconnect.DefaultIDTokenBuilder.getSubjectClaimForLocalUser(DefaultIDTokenBuilder.java:398)         at org.wso2.carbon.identity.openidconnect.DefaultIDTokenBuilder.getSubjectClaim(DefaultIDTokenBuilder.java:317)         at org.wso2.carbon.identity.openidconnect.DefaultIDTokenBuilder.getSubjectClaim(DefaultIDTokenBuilder.java:281)         at org.wso2.carbon.identity.openidconnect.DefaultIDTokenBuilder.buildIDToken(DefaultIDTokenBuilder.java:124)         at org.wso2.carbon.identity.oauth2.token.AccessTokenIssuer.issue(AccessTokenIssuer.java:320)         在org.wso2.carbon.identity.oauth2.OAuth2Service.issueAccessToken(OAuth2Service.java:224)         at org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.issueAccessToken(OAuth2TokenEndpoint.java:303)         at org.wso2.carbon.identity.oauth.endpoint.token.OAuth2TokenEndpoint.issueAccessToken(OAuth2TokenEndpoint.java:92)         at sun.reflect.GeneratedMethodAccessor149.invoke(未知来源)         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)         at java.lang.reflect.Method.invoke(Method.java:498)         在org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:188)         在org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:104)         在org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:204)         在org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:101)         在org.apache.cxf.interceptor.ServiceInvokerInterceptor $ 1.run(ServiceInvokerInterceptor.java:58)         在org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:94)         在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)         在org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:248)         在org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:222)         在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)         在org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:209)         在javax.servlet.http.HttpServlet.service(HttpServlet.java:650)         在org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:265)         在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)         在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)         在org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)         在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)         在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)         在org.wso2.carbon.webapp.mgt.filter.AuthorizationHeaderFilter.doFilter(AuthorizationHeaderFilter.java:128)         在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)         在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)         at org.wso2.carbon.ui.filters.cache.ContentTypeBasedCachePreventionFilter.doFilter(ContentTypeBasedCachePreventionFilter.java:53)         在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)         在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)         在org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(HttpHeaderSecurityFilter.java:124)         在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)         在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)         在org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)         在org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)         在org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)         在org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)         at org.wso2.carbon.identity.context.rewrite.valve.TenantContextRewriteValve.invoke(TenantContextRewriteValve.java:80)         在org.wso2.carbon.identity.authz.valve.AuthorizationValve.invoke(AuthorizationValve.java:91)         在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)         在org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:57)         at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)         在org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62)         at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)         在org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)         at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)         在org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)         在org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)         在org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)         at org.apache.coyote.AbstractProtocol $ AbstractConnectionHandler.process(AbstractProtocol.java:637)         在org.apache.tomcat.util.net.NioEndpoint $ SocketProcessor.doRun(NioEndpoint.java:1775)         在org.apache.tomcat.util.net.NioEndpoint $ SocketProcessor.run(NioEndpoint.java:1734)         在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)         at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:624)         at org.apache.tomcat.util.threads.TaskThread $ WrappingRunnable.run(TaskThread.java:61)         在java.lang.Thread.run(Thread.java:748)

0 个答案:

没有答案