在刷新token的时候,调用feign报错

Blade 已结 2 1476
奥特曼大怪兽
奥特曼大怪兽 2020-06-18 14:18

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

  1. 在本地开发环境(dev)是可以正常返回的,相同代码部署到生产环境(prod)或者是测试环境(test) 都会报错。

2. 

3.

image.png

image.png


blade-auth错误日志:

2020-06-18 14:10:25.910  INFO 12476 --- [-blade-system-3] o.s.core.cloud.http.OkHttpSlf4jLogger    : --> GET http://172.31.0.10:8106/client/tenant-id?tenantId=000000

2020-06-18 14:10:25.938  INFO 12476 --- [-blade-system-3] o.s.core.cloud.http.OkHttpSlf4jLogger    : <-- 200 OK http://172.31.0.10:8106/client/tenant-id?tenantId=000000 (27ms, unknown-length body)

2020-06-18 14:10:25.941  INFO 12476 --- [ XNIO-1 task-18] o.s.a.s.BladeUserDetailsServiceImpl      : username is =========oRrdQt-jkAvGWXjGXKhJpSZZOzfs

2020-06-18 14:10:25.945  INFO 12476 --- [ix-blade-user-4] o.s.core.cloud.http.OkHttpSlf4jLogger    : --> GET http://172.31.0.10:8102/member_client/member-user-info?queryParam=oRrdQt-jkAvGWXjGXKhJpSZZOzfs

2020-06-18 14:10:30.944 ERROR 12476 --- [ HystrixTimer-1] o.s.core.cloud.feign.BladeFeignFallback  : BladeFeignFallback:[org.springblade.system.user.feign.IMemberUserClient.memberUserInfo] serviceId:[blade-user] message:[null]

2020-06-18 14:10:30.945  INFO 12476 --- [ XNIO-1 task-18] o.s.a.s.BladeUserDetailsServiceImpl      : 调用耗时为:============5003

2020-06-18 14:10:30.946  INFO 12476 --- [ XNIO-1 task-18] o.s.a.s.BladeUserDetailsServiceImpl      : result is ========={"code":500,"success":false,"data":null,"msg":null}

2020-06-18 14:10:30.948 ERROR 12476 --- [ XNIO-1 task-18] o.s.s.o.provider.endpoint.TokenEndpoint  : Handling error: UsernameNotFoundException, null


org.springframework.security.core.userdetails.UsernameNotFoundException: null

at org.springblade.auth.service.BladeUserDetailsServiceImpl.loadUserByUsername(BladeUserDetailsServiceImpl.java:134) ~[classes!/:na]

at org.springblade.auth.service.BladeUserDetailsServiceImpl.loadUserByUsername(BladeUserDetailsServiceImpl.java:52) ~[classes!/:na]

at org.springframework.security.core.userdetails.UserDetailsByNameServiceWrapper.loadUserDetails(UserDetailsByNameServiceWrapper.java:68) ~[spring-security-core-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]

at org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationProvider.authenticate(PreAuthenticatedAuthenticationProvider.java:103) ~[spring-security-web-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]

at org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:175) ~[spring-security-core-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]

at org.springframework.security.oauth2.provider.token.DefaultTokenServices.refreshAccessToken(DefaultTokenServices.java:150) ~[spring-security-oauth2-2.3.5.RELEASE.jar!/:na]

at org.springframework.security.oauth2.provider.refresh.RefreshTokenGranter.getAccessToken(RefreshTokenGranter.java:47) ~[spring-security-oauth2-2.3.5.RELEASE.jar!/:na]

at org.springframework.security.oauth2.provider.token.AbstractTokenGranter.grant(AbstractTokenGranter.java:67) ~[spring-security-oauth2-2.3.5.RELEASE.jar!/:na]

at org.springframework.security.oauth2.provider.CompositeTokenGranter.grant(CompositeTokenGranter.java:38) ~[spring-security-oauth2-2.3.5.RELEASE.jar!/:na]

at org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerEndpointsConfigurer$4.grant(AuthorizationServerEndpointsConfigurer.java:583) ~[spring-security-oauth2-2.3.5.RELEASE.jar!/:na]

at org.springframework.security.oauth2.provider.CompositeTokenGranter.grant(CompositeTokenGranter.java:38) ~[spring-security-oauth2-2.3.5.RELEASE.jar!/:na]

at org.springframework.security.oauth2.provider.endpoint.TokenEndpoint.postAccessToken(TokenEndpoint.java:132) ~[spring-security-oauth2-2.3.5.RELEASE.jar!/:na]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_11]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_11]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_11]

at java.lang.reflect.Method.invoke(Method.java:483) ~[na:1.8.0_11]

at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190) ~[spring-web-5.1.15.RELEASE.jar!/:5.1.15.RELEASE]

at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138) ~[spring-web-5.1.15.RELEASE.jar!/:5.1.15.RELEASE]

at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:105) ~[spring-webmvc-5.1.15.RELEASE.jar!/:5.1.15.RELEASE]

at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:893) ~[spring-webmvc-5.1.15.RELEASE.jar!/:5.1.15.RELEASE]

at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:798) ~[spring-webmvc-5.1.15.RELEASE.jar!/:5.1.15.RELEASE]

at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-5.1.15.RELEASE.jar!/:5.1.15.RELEASE]

at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040) ~[spring-webmvc-5.1.15.RELEASE.jar!/:5.1.15.RELEASE]

at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943) ~[spring-webmvc-5.1.15.RELEASE.jar!/:5.1.15.RELEASE]

at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) [spring-webmvc-5.1.15.RELEASE.jar!/:5.1.15.RELEASE]

at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909) [spring-webmvc-5.1.15.RELEASE.jar!/:5.1.15.RELEASE]

at javax.servlet.http.HttpServlet.service(HttpServlet.java:665) [javax.servlet-api-4.0.1.jar!/:4.0.1]

at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) [spring-webmvc-5.1.15.RELEASE.jar!/:5.1.15.RELEASE]

at javax.servlet.http.HttpServlet.service(HttpServlet.java:750) [javax.servlet-api-4.0.1.jar!/:4.0.1]

at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74) [undertow-servlet-2.0.30.Final.jar!/:2.0.30.Final]

at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129) [undertow-servlet-2.0.30.Final.jar!/:2.0.30.Final]

at org.springblade.core.tool.request.BladeRequestFilter.doFilter(BladeRequestFilter.java:49) [blade-core-tool-2.5.1.RELEASE.jar!/:na]

at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) [undertow-servlet-2.0.30.Final.jar!/:2.0.30.Final]

at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) [undertow-servlet-2.0.30.Final.jar!/:2.0.30.Final]

at org.springframework.boot.actuate.web.trace.servlet.HttpTraceFilter.doFilterInternal(HttpTraceFilter.java:88) [spring-boot-actuator-2.1.14.RELEASE.jar!/:2.1.14.RELEASE]

at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.1.15.RELEASE.jar!/:5.1.15.RELEASE]

at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) [undertow-servlet-2.0.30.Final.jar!/:2.0.30.Final]

at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) [undertow-servlet-2.0.30.Final.jar!/:2.0.30.Final]

at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:320) [spring-security-web-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]

at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127) [spring-security-web-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]

at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91) [spring-security-web-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]

at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]

at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:119) [spring-security-web-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]

at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]

at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:137) [spring-security-web-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]

at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]

at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111) [spring-security-web-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]

at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]

at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:170) [spring-security-web-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]

at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]

at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63) [spring-security-web-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]

at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]

at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilterInternal(BasicAuthenticationFilter.java:215) [spring-security-web-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]

at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.1.15.RELEASE.jar!/:5.1.15.RELEASE]

at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]

at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:200) [spring-security-web-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]

at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]

at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:116) [spring-security-web-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]

at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]

at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:74) [spring-security-web-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]

at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.1.15.RELEASE.jar!/:5.1.15.RELEASE]

at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]

at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105) [spring-security-web-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]

at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]

at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56) [spring-security-web-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]

at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.1.15.RELEASE.jar!/:5.1.15.RELEASE]

at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) [spring-security-web-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]

at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:215) [spring-security-web-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]

at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178) [spring-security-web-5.1.10.RELEASE.jar!/:5.1.10.RELEASE]

at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:358) [spring-web-5.1.15.RELEASE.jar!/:5.1.15.RELEASE]

at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:271) [spring-web-5.1.15.RELEASE.jar!/:5.1.15.RELEASE]

at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) [undertow-servlet-2.0.30.Final.jar!/:2.0.30.Final]

at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) [undertow-servlet-2.0.30.Final.jar!/:2.0.30.Final]

at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) [spring-web-5.1.15.RELEASE.jar!/:5.1.15.RELEASE]

at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.1.15.RELEASE.jar!/:5.1.15.RELEASE]

at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) [undertow-servlet-2.0.30.Final.jar!/:2.0.30.Final]

at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) [undertow-servlet-2.0.30.Final.jar!/:2.0.30.Final]

at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) [spring-web-5.1.15.RELEASE.jar!/:5.1.15.RELEASE]

at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.1.15.RELEASE.jar!/:5.1.15.RELEASE]

at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) [undertow-servlet-2.0.30.Final.jar!/:2.0.30.Final]

at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) [undertow-servlet-2.0.30.Final.jar!/:2.0.30.Final]

at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:94) [spring-web-5.1.15.RELEASE.jar!/:5.1.15.RELEASE]

at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.1.15.RELEASE.jar!/:5.1.15.RELEASE]

at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) [undertow-servlet-2.0.30.Final.jar!/:2.0.30.Final]

at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) [undertow-servlet-2.0.30.Final.jar!/:2.0.30.Final]

at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.filterAndRecordMetrics(WebMvcMetricsFilter.java:114) [spring-boot-actuator-2.1.14.RELEASE.jar!/:2.1.14.RELEASE]

at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:104) [spring-boot-actuator-2.1.14.RELEASE.jar!/:2.1.14.RELEASE]

at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.1.15.RELEASE.jar!/:5.1.15.RELEASE]

at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) [undertow-servlet-2.0.30.Final.jar!/:2.0.30.Final]

at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) [undertow-servlet-2.0.30.Final.jar!/:2.0.30.Final]

at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) [spring-web-5.1.15.RELEASE.jar!/:5.1.15.RELEASE]

at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) [spring-web-5.1.15.RELEASE.jar!/:5.1.15.RELEASE]

at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) [undertow-servlet-2.0.30.Final.jar!/:2.0.30.Final]

at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) [undertow-servlet-2.0.30.Final.jar!/:2.0.30.Final]

at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84) [undertow-servlet-2.0.30.Final.jar!/:2.0.30.Final]

at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62) [undertow-servlet-2.0.30.Final.jar!/:2.0.30.Final]

at io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:68) [undertow-servlet-2.0.30.Final.jar!/:2.0.30.Final]

at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) [undertow-servlet-2.0.30.Final.jar!/:2.0.30.Final]

at io.undertow.servlet.handlers.RedirectDirHandler.handleRequest(RedirectDirHandler.java:68) [undertow-servlet-2.0.30.Final.jar!/:2.0.30.Final]

at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:132) [undertow-servlet-2.0.30.Final.jar!/:2.0.30.Final]

at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57) [undertow-servlet-2.0.30.Final.jar!/:2.0.30.Final]

at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-2.0.30.Final.jar!/:2.0.30.Final]

at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46) [undertow-core-2.0.30.Final.jar!/:2.0.30.Final]

at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64) [undertow-servlet-2.0.30.Final.jar!/:2.0.30.Final]

at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60) [undertow-core-2.0.30.Final.jar!/:2.0.30.Final]

at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77) [undertow-servlet-2.0.30.Final.jar!/:2.0.30.Final]

at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43) [undertow-core-2.0.30.Final.jar!/:2.0.30.Final]

at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-2.0.30.Final.jar!/:2.0.30.Final]

at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-2.0.30.Final.jar!/:2.0.30.Final]

at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:269) [undertow-servlet-2.0.30.Final.jar!/:2.0.30.Final]

at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:78) [undertow-servlet-2.0.30.Final.jar!/:2.0.30.Final]

at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:133) [undertow-servlet-2.0.30.Final.jar!/:2.0.30.Final]

at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:130) [undertow-servlet-2.0.30.Final.jar!/:2.0.30.Final]

at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48) [undertow-servlet-2.0.30.Final.jar!/:2.0.30.Final]

at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43) [undertow-servlet-2.0.30.Final.jar!/:2.0.30.Final]

at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:249) [undertow-servlet-2.0.30.Final.jar!/:2.0.30.Final]

at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:78) [undertow-servlet-2.0.30.Final.jar!/:2.0.30.Final]

at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:99) [undertow-servlet-2.0.30.Final.jar!/:2.0.30.Final]

at io.undertow.server.Connectors.executeRootHandler(Connectors.java:376) [undertow-core-2.0.30.Final.jar!/:2.0.30.Final]

at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:830) [undertow-core-2.0.30.Final.jar!/:2.0.30.Final]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_11]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_11]

at java.lang.Thread.run(Thread.java:745) [na:1.8.0_11]


2020-06-18 14:10:31.636  INFO 12476 --- [189.209.89_8848] c.a.n.client.config.impl.ClientWorker    : get changedGroupKeys:[]

2020-06-18 14:10:35.876  INFO 12476 --- [ix-blade-user-4] o.s.core.cloud.http.OkHttpSlf4jLogger    : <-- 200 OK http://172.31.0.10:8102/member_client/member-user-info?queryParam=oRrdQt-jkAvGWXjGXKhJpSZZOzfs (9931ms, unknown-length body)




blade-user日志:

2020-06-18 14:10:25.969  INFO 12867 --- [ XNIO-1 task-11] o.s.core.log.aspect.RequestLogAspect     : 


================  Request Start  ================

===> GET: /member_client/member-user-info Parameters: {"queryParam":"oRrdQt-jkAvGWXjGXKhJpSZZOzfs"}

===Headers===  Authorization: Basic c2FiZXI6c2FiZXJfc2VjcmV0

===Headers===  Accept: */*

===Headers===  Connection: Keep-Alive

===Headers===  User-Agent: okhttp/3.14.5

===Headers===  Host: 172.31.0.10:8102

===Headers===  Accept-Encoding: gzip

================   Request End   ================



==============  Sql Start  ==============

Execute ID  :org.springblade.system.user.mapper.MemberUserMapper.getMemberUserInfoByAccount

Execute SQL :SELECT * FROM hy_member_user WHERE account = ? AND is_deleted = 0

Execute Time:2 ms

==============  Sql  End   ==============


2020-06-18 14:10:35.874  INFO 12867 --- [ XNIO-1 task-11] o.s.core.log.aspect.RequestLogAspect     : 


================  Response Start  ================

===Result===  {"code":200,"success":true,"data":{"oauthId":null,"user":null,"permissions":null,"roles":["app-user"],"memberUser":{"id":"1273494236315865089","createUser":"-1","createDept":"-1","createTime":"2020-06-18 13:54:21","updateUser":"-1","updateTime":"2020-06-18 13:54:21","status":1,"isDeleted":0,"tenantId":"000000","userId":"1273494236282310658","oneId":null,"account":"oRrdQt-jkAvGWXjGXKhJpSZZOzfs","phone":"OUY3MTZBN0Y0QThCMzM4OTZBNDhFNjc5NTZCOTAxOTI3MjFDNjM5QTkwQTc0Q0EwMzZGMzEzOUQyNjkwRjM1OA==","password":null,"userType":0,"internal":1,"email":null,"nickName":null,"realName":null,"avatar":null,"sex":0,"birthday":null,"authStatus":1,"extend1":null,"extend2":null,"extend3":null,"extend4":null,"extend5":null,"extend6":null,"extend7":null,"extend8":null,"extend9":null,"extend10":null},"member":true},"msg":"操作成功"}

<=== GET: /member_client/member-user-info (9904 ms)

================   Response End   ================

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


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

2.5.1   Centos7 

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


五、若有更多详细信息,请在下面提供。


2条回答
  •  smallchill
    smallchill (楼主)
    2020-06-19 14:26

    本地环境可以调用那应该就说明不是代码问题了,你需要区分各个不同场景的一些配置。

    比如你需要去这个类org.springblade.system.user.feign.IMemberUserClient.memberUserInfo打一下日志看看输出的是什么

    比如你需要检查一下加密解密的密钥是否正确,因为我看你传递的username是加密串

提交回复