Auth模块空指针

Blade 未结 1 732
Jalena
Jalena 剑圣 2021-08-18 22:50

一、该问题的重现步骤是什么?

1. 

2. 

3.


二、你期待的结果是什么?实际看到的又是什么?


三、你正在使用的是什么产品,什么版本?在什么操作系统上?

2.8.2最新

四、请提供详细的错误堆栈信息,这很重要。

blade-auth        | ==============  Sql Start  ==============
blade-auth        | Execute SQL : select client_id, CONCAT('{noop}', client_secret) as client_secret, resource_ids , scope, authorized_grant_types, web_server_redirect_uri, authorities, access_token_validity , refresh_token_validity, additional_information, autoapprove from blade_client where client_id = 'saber'
blade-auth        | Execute Time: 4.385ms
blade-auth        | ==============  Sql  End   ==============
blade-auth        |
blade-auth        | 2021-08-18 22:45:04.317 ERROR 1 --- [ XNIO-1 task-46] o.s.s.o.provider.endpoint.TokenEndpoint  : Handling error: NullPointerException, null
blade-auth        |
blade-auth        | java.lang.NullPointerException: null
blade-auth        |     at org.springblade.core.tool.utils.DigestUtil.sha1Hex(DigestUtil.java:65) ~[blade-core-tool-2.8.2.RELEASE.jar!/:na]
blade-auth        |     at org.springblade.core.tool.utils.DigestUtil.hex(DigestUtil.java:431) ~[blade-core-tool-2.8.2.RELEASE.jar!/:na]
blade-auth        |     at org.springblade.auth.service.BladeUserDetailsServiceImpl.loadUserByUsername(BladeUserDetailsServiceImpl.java:111) ~[classes!/:na]
blade-auth        |     at org.springblade.auth.service.BladeUserDetailsServiceImpl.loadUserByUsername(BladeUserDetailsServiceImpl.java:49) ~[classes!/:na]
blade-auth        |     at org.springframework.security.core.userdetails.UserDetailsByNameServiceWrapper.loadUserDetails(UserDetailsByNameServiceWrapper.java:68) ~[spring-security-core-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationProvider.authenticate(PreAuthenticatedAuthenticationProvider.java:103) ~[spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:175) ~[spring-security-core-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.oauth2.provider.token.DefaultTokenServices.refreshAccessToken(DefaultTokenServices.java:150) ~[spring-security-oauth2-2.3.5.RELEASE.jar!/:na]
blade-auth        |     at org.springframework.security.oauth2.provider.refresh.RefreshTokenGranter.getAccessToken(RefreshTokenGranter.java:47) ~[spring-security-oauth2-2.3.5.RELEASE.jar!/:na]
blade-auth        |     at org.springframework.security.oauth2.provider.token.AbstractTokenGranter.grant(AbstractTokenGranter.java:67) ~[spring-security-oauth2-2.3.5.RELEASE.jar!/:na]
blade-auth        |     at org.springframework.security.oauth2.provider.CompositeTokenGranter.grant(CompositeTokenGranter.java:38) ~[spring-security-oauth2-2.3.5.RELEASE.jar!/:na]
blade-auth        |     at org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerEndpointsConfigurer$4.grant(AuthorizationServerEndpointsConfigurer.java:583) ~[spring-security-oauth2-2.3.5.RELEASE.jar!/:na]
blade-auth        |     at org.springframework.security.oauth2.provider.CompositeTokenGranter.grant(CompositeTokenGranter.java:38) ~[spring-security-oauth2-2.3.5.RELEASE.jar!/:na]
blade-auth        |     at org.springframework.security.oauth2.provider.endpoint.TokenEndpoint.postAccessToken(TokenEndpoint.java:132) ~[spring-security-oauth2-2.3.5.RELEASE.jar!/:na]
blade-auth        |     at sun.reflect.GeneratedMethodAccessor153.invoke(Unknown Source) ~[na:na]
blade-auth        |     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_262]
blade-auth        |     at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_262]
blade-auth        |     at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190) ~[spring-web-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138) ~[spring-web-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:105) ~[spring-webmvc-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:878) ~[spring-webmvc-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:792) ~[spring-webmvc-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040) ~[spring-webmvc-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943) ~[spring-webmvc-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) ~[spring-webmvc-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909) ~[spring-webmvc-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at javax.servlet.http.HttpServlet.service(HttpServlet.java:517) [jakarta.servlet-api-4.0.4.jar!/:4.0.4]
blade-auth        |     at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) ~[spring-webmvc-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at javax.servlet.http.HttpServlet.service(HttpServlet.java:584) [jakarta.servlet-api-4.0.4.jar!/:4.0.4]
blade-auth        |     at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:320) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:126) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:90) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:118) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:137) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:158) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilterInternal(BasicAuthenticationFilter.java:204) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:200) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:116) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.header.HeaderWriterFilter.doHeadersAfter(HeaderWriterFilter.java:92) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:77) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:215) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:358) [spring-web-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:271) [spring-web-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) [spring-web-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) [spring-web-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:109) [spring-boot-actuator-2.2.13.RELEASE.jar!/:2.2.13.RELEASE]
blade-auth        |     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) [spring-web-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:68) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at io.undertow.servlet.handlers.RedirectDirHandler.handleRequest(RedirectDirHandler.java:68) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:111) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46) [undertow-core-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60) [undertow-core-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43) [undertow-core-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:269) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:78) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:133) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:130) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:249) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:78) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:99) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at io.undertow.server.Connectors.executeRootHandler(Connectors.java:376) [undertow-core-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:830) [undertow-core-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_262]
blade-auth        |     at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.8.0_262]
blade-auth        |     at java.lang.Thread.run(Unknown Source) [na:1.8.0_262]
blade-auth        |
blade-auth        | 2021-08-18 22:45:04.319 ERROR 1 --- [ XNIO-1 task-47] o.s.s.o.provider.endpoint.TokenEndpoint  : Handling error: NullPointerException, null
blade-auth        |
blade-auth        | java.lang.NullPointerException: null
blade-auth        |     at org.springblade.core.tool.utils.DigestUtil.sha1Hex(DigestUtil.java:65) ~[blade-core-tool-2.8.2.RELEASE.jar!/:na]
blade-auth        |     at org.springblade.core.tool.utils.DigestUtil.hex(DigestUtil.java:431) ~[blade-core-tool-2.8.2.RELEASE.jar!/:na]
blade-auth        |     at org.springblade.auth.service.BladeUserDetailsServiceImpl.loadUserByUsername(BladeUserDetailsServiceImpl.java:111) ~[classes!/:na]
blade-auth        |     at org.springblade.auth.service.BladeUserDetailsServiceImpl.loadUserByUsername(BladeUserDetailsServiceImpl.java:49) ~[classes!/:na]
blade-auth        |     at org.springframework.security.core.userdetails.UserDetailsByNameServiceWrapper.loadUserDetails(UserDetailsByNameServiceWrapper.java:68) ~[spring-security-core-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationProvider.authenticate(PreAuthenticatedAuthenticationProvider.java:103) ~[spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:175) ~[spring-security-core-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.oauth2.provider.token.DefaultTokenServices.refreshAccessToken(DefaultTokenServices.java:150) ~[spring-security-oauth2-2.3.5.RELEASE.jar!/:na]
blade-auth        |     at org.springframework.security.oauth2.provider.refresh.RefreshTokenGranter.getAccessToken(RefreshTokenGranter.java:47) ~[spring-security-oauth2-2.3.5.RELEASE.jar!/:na]
blade-auth        |     at org.springframework.security.oauth2.provider.token.AbstractTokenGranter.grant(AbstractTokenGranter.java:67) ~[spring-security-oauth2-2.3.5.RELEASE.jar!/:na]
blade-auth        |     at org.springframework.security.oauth2.provider.CompositeTokenGranter.grant(CompositeTokenGranter.java:38) ~[spring-security-oauth2-2.3.5.RELEASE.jar!/:na]
blade-auth        |     at org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerEndpointsConfigurer$4.grant(AuthorizationServerEndpointsConfigurer.java:583) ~[spring-security-oauth2-2.3.5.RELEASE.jar!/:na]
blade-auth        |     at org.springframework.security.oauth2.provider.CompositeTokenGranter.grant(CompositeTokenGranter.java:38) ~[spring-security-oauth2-2.3.5.RELEASE.jar!/:na]
blade-auth        |     at org.springframework.security.oauth2.provider.endpoint.TokenEndpoint.postAccessToken(TokenEndpoint.java:132) ~[spring-security-oauth2-2.3.5.RELEASE.jar!/:na]
blade-auth        |     at sun.reflect.GeneratedMethodAccessor153.invoke(Unknown Source) ~[na:na]
blade-auth        |     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_262]
blade-auth        |     at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_262]
blade-auth        |     at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190) ~[spring-web-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138) ~[spring-web-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:105) ~[spring-webmvc-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:878) ~[spring-webmvc-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:792) ~[spring-webmvc-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040) ~[spring-webmvc-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943) ~[spring-webmvc-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) ~[spring-webmvc-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909) ~[spring-webmvc-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at javax.servlet.http.HttpServlet.service(HttpServlet.java:517) [jakarta.servlet-api-4.0.4.jar!/:4.0.4]
blade-auth        |     at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) ~[spring-webmvc-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at javax.servlet.http.HttpServlet.service(HttpServlet.java:584) [jakarta.servlet-api-4.0.4.jar!/:4.0.4]
blade-auth        |     at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:320) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:126) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:90) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:118) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:137) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:158) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilterInternal(BasicAuthenticationFilter.java:204) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:200) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:116) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.header.HeaderWriterFilter.doHeadersAfter(HeaderWriterFilter.java:92) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:77) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:215) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178) [spring-security-web-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
blade-auth        |     at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:358) [spring-web-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:271) [spring-web-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) [spring-web-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) [spring-web-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:109) [spring-boot-actuator-2.2.13.RELEASE.jar!/:2.2.13.RELEASE]
blade-auth        |     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) [spring-web-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.2.12.RELEASE.jar!/:5.2.12.RELEASE]
blade-auth        |     at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth        |     at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62) [undertow-servlet-2.0.33.Final.jar!/:2.0.33.Final]
blade-auth      &          
        
1条回答
  • 2021-08-18 23:52

    把重现步骤发一下,或者你确认一下是否升级的时候依赖没有完全下好,导致类缺失才有报错

    作者追问:2021-08-19 10:41

    未做别的更改,直接使用的原始的git包数据啊

    0 讨论(1)
提交回复