auth授权模块启动报错

Blade 未结 1 813
qzg
qzg 剑童 2021-12-17 08:02

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

1. mvn clean install 全部success

2. nacos 启动正常,配置文件导入

3. 启动auth模块 报错


二、你期待的结果是 授权模块启动异常

      异常 Caused by: java.lang.ClassNotFoundException: com.sun.xml.bind.v2.runtime.Location

              Caused by: java.util.zip.ZipException: error reading zip file

三、你正在使用的是bladex 

                    2.8.2.RELEASE
                 win10
                 java jdk 1.8
                   

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

K:\soft\x64\jdk1.8.0_162\bin\java.exe -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:57800,suspend=y,server=n -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -javaagent:C:\Users\Administrator\AppData\Local\JetBrains\IntelliJIdea2020.1\captureAgent\debugger-agent.jar -Dfile.encoding=UTF-8 -classpath "I:\Program Files\JetBrains\IntelliJ IDEA 2020.1.3\lib\idea_rt.jar" com.intellij.rt.execution.CommandLineWrapper C:\Users\Administrator\AppData\Local\Temp\idea_classpath1343726376 org.springblade.auth.AuthApplication

Connected to the target VM, address: '127.0.0.1:57800', transport: 'socket'

----启动中,读取到的环境变量:[dev],jar地址:[/J:/idea/9.bladex/BladeX/blade-auth/target/classes/]----

                   ______  _             _       ___   ___

                   | ___ \| |           | |      \  \ /  /

                   | |_/ /| |  __ _   __| |  ___  \  V  /

                   | ___ \| | / _` | / _` | / _ \   > <

                   | |_/ /| || (_| || (_| ||  __/ /  .  \

                   \____/ |_| \__,_| \__,_| \___|/__/ \__\


:: BladeX 2.8.2.RELEASE :: blade-auth:dev :: Running SpringBoot 2.3.12.RELEASE :: 


2021-12-17 07:56:51.373  INFO 21536 --- [           main] c.a.n.c.c.impl.LocalConfigInfoProcessor  : LOCAL_SNAPSHOT_PATH:C:\Users\Administrator\nacos\config

2021-12-17 07:56:51.378  INFO 21536 --- [           main] com.alibaba.nacos.common.remote.client   : [RpcClientFactory] create a new rpc client of a9ee1184-5a7e-4ce8-b939-5813f005ff92_config-0

2021-12-17 07:56:51.462  INFO 21536 --- [           main] org.reflections.Reflections              : Reflections took 51 ms to scan 1 urls, producing 3 keys and 6 values 

2021-12-17 07:56:51.506  INFO 21536 --- [           main] org.reflections.Reflections              : Reflections took 21 ms to scan 1 urls, producing 4 keys and 9 values 

2021-12-17 07:56:51.523  INFO 21536 --- [           main] org.reflections.Reflections              : Reflections took 14 ms to scan 1 urls, producing 3 keys and 10 values 

2021-12-17 07:56:51.833  INFO 21536 --- [           main] org.reflections.Reflections              : Reflections took 305 ms to scan 295 urls, producing 0 keys and 0 values 

2021-12-17 07:56:51.848  INFO 21536 --- [           main] org.reflections.Reflections              : Reflections took 14 ms to scan 1 urls, producing 1 keys and 5 values 

2021-12-17 07:56:51.876  INFO 21536 --- [           main] org.reflections.Reflections              : Reflections took 18 ms to scan 1 urls, producing 1 keys and 7 values 

2021-12-17 07:56:51.914  INFO 21536 --- [           main] org.reflections.Reflections              : Reflections took 33 ms to scan 1 urls, producing 2 keys and 8 values 

2021-12-17 07:56:52.261  INFO 21536 --- [           main] org.reflections.Reflections              : Reflections took 343 ms to scan 295 urls, producing 0 keys and 0 values 

2021-12-17 07:56:52.264  INFO 21536 --- [           main] com.alibaba.nacos.common.remote.client   : [a9ee1184-5a7e-4ce8-b939-5813f005ff92_config-0]RpcClient init label, labels={module=config, Vipserver-Tag=null, source=sdk, Amory-Tag=null, Location-Tag=null, taskId=0, AppName=unknown}

2021-12-17 07:56:52.265  INFO 21536 --- [           main] com.alibaba.nacos.common.remote.client   : [a9ee1184-5a7e-4ce8-b939-5813f005ff92_config-0]Register server push request handler:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$$Lambda$271/827099978

2021-12-17 07:56:52.266  INFO 21536 --- [           main] com.alibaba.nacos.common.remote.client   : [a9ee1184-5a7e-4ce8-b939-5813f005ff92_config-0]Register server push request handler:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$$Lambda$272/651698411

2021-12-17 07:56:52.267  INFO 21536 --- [           main] com.alibaba.nacos.common.remote.client   : [a9ee1184-5a7e-4ce8-b939-5813f005ff92_config-0]Registry connection listener to current client:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$1

2021-12-17 07:56:52.268  INFO 21536 --- [           main] com.alibaba.nacos.common.remote.client   : [a9ee1184-5a7e-4ce8-b939-5813f005ff92_config-0]RpcClient init, ServerListFactory =com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$2

2021-12-17 07:56:52.286  INFO 21536 --- [           main] com.alibaba.nacos.common.remote.client   : [a9ee1184-5a7e-4ce8-b939-5813f005ff92_config-0] Try to connect to server on start up, server: {serverIp='127.0.0.1', server main port=8848}

2021-12-17 07:56:54.157  INFO 21536 --- [           main] com.alibaba.nacos.common.remote.client   : [a9ee1184-5a7e-4ce8-b939-5813f005ff92_config-0] Success to connect to server [127.0.0.1:8848] on start up,connectionId=1639699013899_127.0.0.1_55756

2021-12-17 07:56:54.158  INFO 21536 --- [t.remote.worker] com.alibaba.nacos.common.remote.client   : [a9ee1184-5a7e-4ce8-b939-5813f005ff92_config-0]Notify connected event to listeners.

2021-12-17 07:56:54.159  INFO 21536 --- [t.remote.worker] c.a.n.client.config.impl.ClientWorker    : [a9ee1184-5a7e-4ce8-b939-5813f005ff92_config-0] Connected,notify listen context...

2021-12-17 07:56:54.159  INFO 21536 --- [           main] com.alibaba.nacos.common.remote.client   : [a9ee1184-5a7e-4ce8-b939-5813f005ff92_config-0]Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$ConnectResetRequestHandler

2021-12-17 07:56:54.160  INFO 21536 --- [           main] com.alibaba.nacos.common.remote.client   : [a9ee1184-5a7e-4ce8-b939-5813f005ff92_config-0]Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$4

2021-12-17 07:56:54.300  INFO 21536 --- [           main] c.a.nacos.client.config.impl.Limiter     : limitTime:5.0

2021-12-17 07:56:54.341  INFO 21536 --- [           main] c.a.nacos.client.config.utils.JvmUtil    : isMultiInstance:false

2021-12-17 07:56:54.415  WARN 21536 --- [           main] c.a.c.n.c.NacosPropertySourceBuilder     : Ignore the empty nacos configuration and get it based on dataId[blade-auth] & group[DEFAULT_GROUP]

2021-12-17 07:56:54.421  WARN 21536 --- [           main] c.a.c.n.c.NacosPropertySourceBuilder     : Ignore the empty nacos configuration and get it based on dataId[blade-auth.yaml] & group[DEFAULT_GROUP]

2021-12-17 07:56:54.430  WARN 21536 --- [           main] c.a.c.n.c.NacosPropertySourceBuilder     : Ignore the empty nacos configuration and get it based on dataId[blade-auth-dev.yaml] & group[DEFAULT_GROUP]

2021-12-17 07:56:54.431  INFO 21536 --- [           main] b.c.PropertySourceBootstrapConfiguration : Located property source: [BootstrapPropertySource {name='bootstrapProperties-blade-auth-dev.yaml,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-blade-auth.yaml,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-blade-auth,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-blade-dev.yaml,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-blade.yaml,DEFAULT_GROUP'}]

2021-12-17 07:56:54.437  INFO 21536 --- [           main] org.springblade.auth.AuthApplication     : The following profiles are active: dev

2021-12-17 07:56:54.692  WARN 21536 --- [           main] o.s.c.c.u.SpringFactoryImportSelector    : More than one implementation of @EnableCircuitBreaker (now relying on @Conditionals to pick one): [org.springframework.cloud.netflix.hystrix.HystrixCircuitBreakerConfiguration, com.alibaba.cloud.sentinel.custom.SentinelCircuitBreakerConfiguration]

2021-12-17 07:56:57.476  INFO 21536 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!

2021-12-17 07:56:57.479  INFO 21536 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.

2021-12-17 07:56:57.532  INFO 21536 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 23ms. Found 0 Redis repository interfaces.

2021-12-17 07:56:57.665  WARN 21536 --- [           main] o.s.boot.actuate.endpoint.EndpointId     : Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format.

2021-12-17 07:56:57.694  WARN 21536 --- [           main] o.s.boot.actuate.endpoint.EndpointId     : Endpoint ID 'hystrix.stream' contains invalid characters, please migrate to a valid format.

2021-12-17 07:56:57.847  WARN 21536 --- [           main] o.m.s.mapper.ClassPathMapperScanner      : No MyBatis mapper was found in '[org.springblade.auth]' package. Please check your configuration.

2021-12-17 07:56:58.080  INFO 21536 --- [           main] o.s.cloud.context.scope.GenericScope     : BeanFactory id=34f49c5d-09db-38ae-8462-53457bb07a7b

2021-12-17 07:56:58.085  INFO 21536 --- [           main] s.c.l.p.BladePropertySourcePostProcessor : BladePropertySourcePostProcessor init.

2021-12-17 07:56:58.085  INFO 21536 --- [           main] s.c.l.p.BladePropertySourcePostProcessor : BladePropertySourcePostProcessor process @BladePropertySource bean.

2021-12-17 07:56:58.858  INFO 21536 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'spring.cloud.sentinel-com.alibaba.cloud.sentinel.SentinelProperties' of type [com.alibaba.cloud.sentinel.SentinelProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

INFO: Sentinel log output type is: file

INFO: Sentinel log charset is: utf-8

INFO: Sentinel log base directory is: C:\Users\Administrator\logs\csp\

INFO: Sentinel log name use pid is: false

2021-12-17 07:56:59.128  INFO 21536 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'com.alibaba.cloud.sentinel.custom.SentinelAutoConfiguration' of type [com.alibaba.cloud.sentinel.custom.SentinelAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2021-12-17 07:56:59.524  WARN 21536 --- [           main] io.undertow.websockets.jsr               : UT026010: Buffer pool was not set on WebSocketDeploymentInfo, the default pool will be used

2021-12-17 07:56:59.571  INFO 21536 --- [           main] io.undertow.servlet                      : Initializing Spring embedded WebApplicationContext

2021-12-17 07:56:59.571  INFO 21536 --- [           main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 5096 ms

2021-12-17 07:56:59.816  WARN 21536 --- [           main] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.

2021-12-17 07:56:59.816  INFO 21536 --- [           main] c.n.c.sources.URLConfigurationSource     : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.

2021-12-17 07:56:59.831  INFO 21536 --- [           main] c.netflix.config.DynamicPropertyFactory  : DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration@2c6efee3

2021-12-17 07:57:00.042  INFO 21536 --- [           main] o.s.b.a.e.web.ServletEndpointRegistrar   : Registered '/actuator/hystrix.stream' to hystrix.stream-actuator-endpoint

2021-12-17 07:57:00.110  INFO 21536 --- [           main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource

2021-12-17 07:57:00.795  INFO 21536 --- [           main] com.alibaba.druid.pool.DruidDataSource   : {dataSource-1} inited

2021-12-17 07:57:01.721  WARN 21536 --- [           main] o.s.c.openfeign.FeignClientFactoryBean   : The provided URL is empty. Will try picking an instance via load-balancing.

2021-12-17 07:57:02.133  WARN 21536 --- [           main] o.s.c.openfeign.FeignClientFactoryBean   : The provided URL is empty. Will try picking an instance via load-balancing.

2021-12-17 07:57:02.926  WARN 21536 --- [           main] o.s.s.o.p.t.s.JwtAccessTokenConverter    : Unable to create an RSA verifier from verifierKey (ignoreable if using MAC)

2021-12-17 07:57:03.632  INFO 21536 --- [           main] c.a.c.s.SentinelWebAutoConfiguration     : [Sentinel Starter] register SentinelWebInterceptor with urlPatterns: [/**].

2021-12-17 07:57:03.651  INFO 21536 --- [           main] .c.c.v.BladeRequestMappingHandlerMapping : Mapped "{ /oauth/callback/{source}}" onto org.springblade.auth.endpoint.BladeSocialEndpoint#login(String, AuthCallback)

2021-12-17 07:57:03.652  INFO 21536 --- [           main] .c.c.v.BladeRequestMappingHandlerMapping : Mapped "{ /oauth/render/{source}}" onto org.springblade.auth.endpoint.BladeSocialEndpoint#renderAuth(String, HttpServletResponse)

2021-12-17 07:57:03.652  INFO 21536 --- [           main] .c.c.v.BladeRequestMappingHandlerMapping : Mapped "{ /oauth/revoke/{source}/{token}}" onto org.springblade.auth.endpoint.BladeSocialEndpoint#revokeAuth(String, String)

2021-12-17 07:57:03.652  INFO 21536 --- [           main] .c.c.v.BladeRequestMappingHandlerMapping : Mapped "{ /oauth/refresh/{source}}" onto org.springblade.auth.endpoint.BladeSocialEndpoint#refreshAuth(String, String)

2021-12-17 07:57:03.652  INFO 21536 --- [           main] .c.c.v.BladeRequestMappingHandlerMapping : Mapped "{GET /oauth/clear-cache}" onto org.springblade.auth.endpoint.BladeTokenEndPoint#clearCache()

2021-12-17 07:57:03.652  INFO 21536 --- [           main] .c.c.v.BladeRequestMappingHandlerMapping : Mapped "{GET /oauth/logout}" onto org.springblade.auth.endpoint.BladeTokenEndPoint#logout()

2021-12-17 07:57:03.652  INFO 21536 --- [           main] .c.c.v.BladeRequestMappingHandlerMapping : Mapped "{GET /oauth/captcha}" onto org.springblade.auth.endpoint.BladeTokenEndPoint#captcha()

2021-12-17 07:57:03.652  INFO 21536 --- [           main] .c.c.v.BladeRequestMappingHandlerMapping : Mapped "{GET /oauth/user-info}" onto org.springblade.auth.endpoint.BladeTokenEndPoint#currentUser(Authentication)

2021-12-17 07:57:03.652  INFO 21536 --- [           main] .c.c.v.BladeRequestMappingHandlerMapping : Mapped "{ /swagger-resources/configuration/security}" onto springfox.documentation.swagger.web.ApiResourceController#securityConfiguration()

2021-12-17 07:57:03.652  INFO 21536 --- [           main] .c.c.v.BladeRequestMappingHandlerMapping : Mapped "{ /swagger-resources/configuration/ui}" onto springfox.documentation.swagger.web.ApiResourceController#uiConfiguration()

2021-12-17 07:57:03.652  INFO 21536 --- [           main] .c.c.v.BladeRequestMappingHandlerMapping : Mapped "{ /swagger-resources}" onto springfox.documentation.swagger.web.ApiResourceController#swaggerResources()

2021-12-17 07:57:03.652  INFO 21536 --- [           main] .c.c.v.BladeRequestMappingHandlerMapping : Mapped "{ /error}" onto org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#error(HttpServletRequest)

2021-12-17 07:57:03.652  INFO 21536 --- [           main] .c.c.v.BladeRequestMappingHandlerMapping : Mapped "{ /error, produces [text/html]}" onto org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#errorHtml(HttpServletRequest, HttpServletResponse)

2021-12-17 07:57:04.036  INFO 21536 --- [           main] com.alibaba.nacos.client.naming          : initializer namespace from System Property :null

2021-12-17 07:57:04.037  INFO 21536 --- [           main] com.alibaba.nacos.client.naming          : initializer namespace from System Environment :null

2021-12-17 07:57:04.037  INFO 21536 --- [           main] com.alibaba.nacos.client.naming          : initializer namespace from System Property :null

2021-12-17 07:57:04.067  INFO 21536 --- [           main] com.alibaba.nacos.common.remote.client   : [RpcClientFactory] create a new rpc client of 23da61a6-4709-4935-aea4-654967ebdfda

2021-12-17 07:57:04.067  INFO 21536 --- [           main] com.alibaba.nacos.common.remote.client   : [23da61a6-4709-4935-aea4-654967ebdfda]RpcClient init label, labels={module=naming, source=sdk}

2021-12-17 07:57:04.068  INFO 21536 --- [           main] com.alibaba.nacos.common.remote.client   : [23da61a6-4709-4935-aea4-654967ebdfda]RpcClient init, ServerListFactory =com.alibaba.nacos.client.naming.core.ServerListManager

2021-12-17 07:57:04.069  INFO 21536 --- [           main] com.alibaba.nacos.common.remote.client   : [23da61a6-4709-4935-aea4-654967ebdfda] Try to connect to server on start up, server: {serverIp='127.0.0.1', server main port=8848}

2021-12-17 07:57:04.200  INFO 21536 --- [           main] com.alibaba.nacos.common.remote.client   : [23da61a6-4709-4935-aea4-654967ebdfda] Success to connect to server [127.0.0.1:8848] on start up,connectionId=1639699024075_127.0.0.1_54938

2021-12-17 07:57:04.200  INFO 21536 --- [           main] com.alibaba.nacos.common.remote.client   : [23da61a6-4709-4935-aea4-654967ebdfda]Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$ConnectResetRequestHandler

2021-12-17 07:57:04.200  INFO 21536 --- [           main] com.alibaba.nacos.common.remote.client   : [23da61a6-4709-4935-aea4-654967ebdfda]Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$4

2021-12-17 07:57:04.202  INFO 21536 --- [           main] com.alibaba.nacos.common.remote.client   : [23da61a6-4709-4935-aea4-654967ebdfda]Register server push request handler:com.alibaba.nacos.client.naming.remote.gprc.NamingPushRequestHandler

2021-12-17 07:57:04.202  INFO 21536 --- [           main] com.alibaba.nacos.common.remote.client   : [23da61a6-4709-4935-aea4-654967ebdfda]Registry connection listener to current client:com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcConnectionEventListener

2021-12-17 07:57:04.495  INFO 21536 --- [           main] o.s.b.a.e.web.EndpointLinksResolver      : Exposing 22 endpoint(s) beneath base path '/actuator'

2021-12-17 07:57:04.794  WARN 21536 --- [           main] c.n.c.sources.URLConfigurationSource     : No URLs will be polled as dynamic configuration sources.

2021-12-17 07:57:04.794  INFO 21536 --- [           main] c.n.c.sources.URLConfigurationSource     : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.

2021-12-17 07:57:04.921  INFO 21536 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'applicationTaskExecutor'

2021-12-17 07:57:05.149  INFO 21536 --- [           main] o.s.s.c.ThreadPoolTaskScheduler          : Initializing ExecutorService 'Nacos-Watch-Task-Scheduler'

2021-12-17 07:57:05.879  INFO 21536 --- [           main] f.a.AutowiredAnnotationBeanPostProcessor : Inconsistent constructor declaration on bean with name 'org.springblade.core.launch.server.ServerInfo': single autowire-marked constructor flagged as optional - this constructor is effectively required since there is no default constructor to fall back to: public org.springblade.core.launch.server.ServerInfo(org.springframework.boot.autoconfigure.web.ServerProperties)

2021-12-17 07:57:06.055  INFO 21536 --- [           main] pertySourcedRequestMappingHandlerMapping : Mapped URL path [/v2/api-docs] onto method [springfox.documentation.swagger2.web.Swagger2ControllerWebMvc#getDocumentation(String, HttpServletRequest)]

2021-12-17 07:57:46.070  WARN 21536 --- [           main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springSecurityFilterChain' defined in class path resource [org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.servlet.Filter]: Factory method 'springSecurityFilterChain' threw exception; nested exception is java.lang.NoClassDefFoundError: com/sun/xml/bind/v2/runtime/Location

2021-12-17 07:57:46.071  INFO 21536 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Shutting down ExecutorService 'applicationTaskExecutor'

2021-12-17 07:57:46.087  INFO 21536 --- [           main] com.alibaba.nacos.client.naming          : com.alibaba.nacos.client.naming.cache.ServiceInfoHolder do shutdown begin

2021-12-17 07:57:46.087  INFO 21536 --- [           main] com.alibaba.nacos.client.naming          : com.alibaba.nacos.client.naming.backups.FailoverReactor do shutdown begin

2021-12-17 07:57:46.087  INFO 21536 --- [           main] com.alibaba.nacos.client.naming          : com.alibaba.nacos.client.naming.backups.FailoverReactor do shutdown stop

2021-12-17 07:57:46.087  INFO 21536 --- [           main] com.alibaba.nacos.client.naming          : com.alibaba.nacos.client.naming.cache.ServiceInfoHolder do shutdown stop

2021-12-17 07:57:46.087  INFO 21536 --- [           main] com.alibaba.nacos.client.naming          : com.alibaba.nacos.client.naming.remote.NamingClientProxyDelegate do shutdown begin

2021-12-17 07:57:46.087  INFO 21536 --- [           main] com.alibaba.nacos.client.naming          : com.alibaba.nacos.client.naming.core.ServiceInfoUpdateService do shutdown begin

2021-12-17 07:57:46.087  INFO 21536 --- [           main] com.alibaba.nacos.client.naming          : com.alibaba.nacos.client.naming.core.ServiceInfoUpdateService do shutdown stop

2021-12-17 07:57:46.087  INFO 21536 --- [           main] com.alibaba.nacos.client.naming          : com.alibaba.nacos.client.naming.core.ServerListManager do shutdown begin

2021-12-17 07:57:46.087  WARN 21536 --- [           main] com.alibaba.nacos.client.naming          : [NamingHttpClientManager] Start destroying NacosRestTemplate

2021-12-17 07:57:46.087  WARN 21536 --- [           main] com.alibaba.nacos.client.naming          : [NamingHttpClientManager] Destruction of the end

2021-12-17 07:57:46.087  INFO 21536 --- [           main] com.alibaba.nacos.client.naming          : com.alibaba.nacos.client.naming.core.ServerListManager do shutdown stop

2021-12-17 07:57:46.087  INFO 21536 --- [           main] com.alibaba.nacos.client.naming          : com.alibaba.nacos.client.naming.remote.http.NamingHttpClientProxy do shutdown begin

2021-12-17 07:57:46.088  INFO 21536 --- [           main] com.alibaba.nacos.client.naming          : com.alibaba.nacos.client.naming.beat.BeatReactor do shutdown begin

2021-12-17 07:57:46.088  INFO 21536 --- [           main] com.alibaba.nacos.client.naming          : com.alibaba.nacos.client.naming.beat.BeatReactor do shutdown stop

2021-12-17 07:57:46.088  WARN 21536 --- [           main] com.alibaba.nacos.client.naming          : [NamingHttpClientManager] Start destroying NacosRestTemplate

2021-12-17 07:57:46.088  WARN 21536 --- [           main] com.alibaba.nacos.client.naming          : [NamingHttpClientManager] Destruction of the end

2021-12-17 07:57:46.088  INFO 21536 --- [           main] c.a.n.client.identify.CredentialWatcher  : [null] CredentialWatcher is stopped

2021-12-17 07:57:46.088  INFO 21536 --- [           main] c.a.n.client.identify.CredentialService  : [null] CredentialService is freed

2021-12-17 07:57:46.088  INFO 21536 --- [           main] com.alibaba.nacos.client.naming          : com.alibaba.nacos.client.naming.remote.http.NamingHttpClientProxy do shutdown stop

2021-12-17 07:57:46.088  INFO 21536 --- [           main] com.alibaba.nacos.common.remote.client   : Shutdown rpc client ,set status to shutdown

2021-12-17 07:57:46.088  INFO 21536 --- [           main] com.alibaba.nacos.common.remote.client   : Shutdown  client event executor java.util.concurrent.ScheduledThreadPoolExecutor@6236beac[Running, pool size = 2, active threads = 2, queued tasks = 0, completed tasks = 0]

2021-12-17 07:57:46.088  INFO 21536 --- [           main] com.alibaba.nacos.common.remote.client   : Close current connection 1639699024075_127.0.0.1_54938

2021-12-17 07:57:46.090  INFO 21536 --- [ent-executor-11] c.a.n.c.remote.client.grpc.GrpcClient    : [1639699024075_127.0.0.1_54938]Ignore complete event,isRunning:false,isAbandon=false

2021-12-17 07:57:46.095  INFO 21536 --- [           main] c.a.n.c.remote.client.grpc.GrpcClient    : Shutdown grpc executor java.util.concurrent.ThreadPoolExecutor@7cff1930[Running, pool size = 3, active threads = 0, queued tasks = 0, completed tasks = 12]

2021-12-17 07:57:46.100  INFO 21536 --- [           main] com.alibaba.nacos.client.naming          : com.alibaba.nacos.client.naming.remote.NamingClientProxyDelegate do shutdown stop

2021-12-17 07:57:46.136  INFO 21536 --- [           main] com.alibaba.druid.pool.DruidDataSource   : {dataSource-1} closing ...

2021-12-17 07:57:46.148  INFO 21536 --- [           main] com.alibaba.druid.pool.DruidDataSource   : {dataSource-1} closed

2021-12-17 07:57:46.173  INFO 21536 --- [           main] ConditionEvaluationReportLoggingListener : 


Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.

2021-12-17 07:57:46.233 ERROR 21536 --- [           main] o.s.boot.SpringApplication               : Application run failed


org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springSecurityFilterChain' defined in class path resource [org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.servlet.Filter]: Factory method 'springSecurityFilterChain' threw exception; nested exception is java.lang.NoClassDefFoundError: com/sun/xml/bind/v2/runtime/Location

at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:485) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1341) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1181) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:556) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:311) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:897) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:879) ~[spring-context-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:551) ~[spring-context-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143) ~[spring-boot-2.3.12.RELEASE.jar:2.3.12.RELEASE]

at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:755) ~[spring-boot-2.3.12.RELEASE.jar:2.3.12.RELEASE]

at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747) ~[spring-boot-2.3.12.RELEASE.jar:2.3.12.RELEASE]

at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:402) ~[spring-boot-2.3.12.RELEASE.jar:2.3.12.RELEASE]

at org.springframework.boot.SpringApplication.run(SpringApplication.java:312) ~[spring-boot-2.3.12.RELEASE.jar:2.3.12.RELEASE]

at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:140) [spring-boot-2.3.12.RELEASE.jar:2.3.12.RELEASE]

at org.springblade.core.launch.BladeApplication.run(BladeApplication.java:50) [blade-core-launch-2.8.2.RELEASE.jar:na]

at org.springblade.auth.AuthApplication.main(AuthApplication.java:35) [classes/:na]

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

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

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

at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_162]

at com.intellij.rt.execution.CommandLineWrapper.main(CommandLineWrapper.java:64) [idea_rt.jar:na]

Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.servlet.Filter]: Factory method 'springSecurityFilterChain' threw exception; nested exception is java.lang.NoClassDefFoundError: com/sun/xml/bind/v2/runtime/Location

at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:652) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]

... 27 common frames omitted

Caused by: java.lang.NoClassDefFoundError: com/sun/xml/bind/v2/runtime/Location

at java.lang.Class.getDeclaredMethods0(Native Method) ~[na:1.8.0_162]

at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) ~[na:1.8.0_162]

at java.lang.Class.getDeclaredMethod(Class.java:2128) ~[na:1.8.0_162]

at com.sun.xml.bind.v2.model.impl.Utils$1.run(Utils.java:50) ~[jaxb-runtime-2.3.4.jar:2.3.4]

at com.sun.xml.bind.v2.model.impl.Utils$1.run(Utils.java:46) ~[jaxb-runtime-2.3.4.jar:2.3.4]

at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_162]

at com.sun.xml.bind.v2.model.impl.Utils.<clinit>(Utils.java:45) ~[jaxb-runtime-2.3.4.jar:2.3.4]

at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.<init>(RuntimeModelBuilder.java:62) ~[jaxb-runtime-2.3.4.jar:2.3.4]

at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:434) ~[jaxb-runtime-2.3.4.jar:2.3.4]

at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:282) ~[jaxb-runtime-2.3.4.jar:2.3.4]

at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:109) ~[jaxb-runtime-2.3.4.jar:2.3.4]

at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1142) ~[jaxb-runtime-2.3.4.jar:2.3.4]

at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:144) ~[jaxb-runtime-2.3.4.jar:2.3.4]

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

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

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

at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_162]

at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:247) ~[na:1.8.0_162]

at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:234) ~[na:1.8.0_162]

at javax.xml.bind.ContextFinder.find(ContextFinder.java:441) ~[na:1.8.0_162]

at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:641) ~[na:1.8.0_162]

at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:584) ~[na:1.8.0_162]

at org.springframework.security.oauth2.http.converter.jaxb.AbstractJaxbMessageConverter.<init>(AbstractJaxbMessageConverter.java:59) ~[spring-security-oauth2-2.3.5.RELEASE.jar:na]

at org.springframework.security.oauth2.http.converter.jaxb.JaxbOAuth2ExceptionMessageConverter.<init>(JaxbOAuth2ExceptionMessageConverter.java:21) ~[spring-security-oauth2-2.3.5.RELEASE.jar:na]

at org.springframework.security.oauth2.provider.error.DefaultOAuth2ExceptionRenderer.geDefaultMessageConverters(DefaultOAuth2ExceptionRenderer.java:117) ~[spring-security-oauth2-2.3.5.RELEASE.jar:na]

at org.springframework.security.oauth2.provider.error.DefaultOAuth2ExceptionRenderer.<init>(DefaultOAuth2ExceptionRenderer.java:53) ~[spring-security-oauth2-2.3.5.RELEASE.jar:na]

at org.springframework.security.oauth2.provider.error.AbstractOAuth2SecurityExceptionHandler.<init>(AbstractOAuth2SecurityExceptionHandler.java:42) ~[spring-security-oauth2-2.3.5.RELEASE.jar:na]

at org.springframework.security.oauth2.provider.error.OAuth2AccessDeniedHandler.<init>(OAuth2AccessDeniedHandler.java:32) ~[spring-security-oauth2-2.3.5.RELEASE.jar:na]

at org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerSecurityConfigurer.<init>(AuthorizationServerSecurityConfigurer.java:60) ~[spring-security-oauth2-2.3.5.RELEASE.jar:na]

at org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerSecurityConfiguration.configure(AuthorizationServerSecurityConfiguration.java:74) ~[spring-security-oauth2-2.3.5.RELEASE.jar:na]

at org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter.getHttp(WebSecurityConfigurerAdapter.java:231) ~[spring-security-config-5.3.9.RELEASE.jar:5.3.9.RELEASE]

at org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter.init(WebSecurityConfigurerAdapter.java:322) ~[spring-security-config-5.3.9.RELEASE.jar:5.3.9.RELEASE]

at org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter.init(WebSecurityConfigurerAdapter.java:94) ~[spring-security-config-5.3.9.RELEASE.jar:5.3.9.RELEASE]

at org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerSecurityConfiguration$$EnhancerBySpringCGLIB$$8143bc11.init(<generated>) ~[spring-security-oauth2-2.3.5.RELEASE.jar:na]

at org.springframework.security.config.annotation.AbstractConfiguredSecurityBuilder.init(AbstractConfiguredSecurityBuilder.java:370) ~[spring-security-config-5.3.9.RELEASE.jar:5.3.9.RELEASE]

at org.springframework.security.config.annotation.AbstractConfiguredSecurityBuilder.doBuild(AbstractConfiguredSecurityBuilder.java:324) ~[spring-security-config-5.3.9.RELEASE.jar:5.3.9.RELEASE]

at org.springframework.security.config.annotation.AbstractSecurityBuilder.build(AbstractSecurityBuilder.java:41) ~[spring-security-config-5.3.9.RELEASE.jar:5.3.9.RELEASE]

at org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration.springSecurityFilterChain(WebSecurityConfiguration.java:104) ~[spring-security-config-5.3.9.RELEASE.jar:5.3.9.RELEASE]

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

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

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

at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_162]

at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]

... 28 common frames omitted

Caused by: java.lang.ClassNotFoundException: com.sun.xml.bind.v2.runtime.Location

at java.net.URLClassLoader$1.run(URLClassLoader.java:370) ~[na:1.8.0_162]

at java.net.URLClassLoader$1.run(URLClassLoader.java:362) ~[na:1.8.0_162]

at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_162]

at java.net.URLClassLoader.findClass(URLClassLoader.java:361) ~[na:1.8.0_162]

at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_162]

at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_162]

... 71 common frames omitted

Caused by: java.util.zip.ZipException: error reading zip file

at java.util.zip.ZipFile.read(Native Method) ~[na:1.8.0_162]

at java.util.zip.ZipFile.access$1400(ZipFile.java:60) ~[na:1.8.0_162]

at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:734) ~[na:1.8.0_162]

at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:434) ~[na:1.8.0_162]

at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158) ~[na:1.8.0_162]

at sun.misc.Resource.getBytes(Resource.java:124) ~[na:1.8.0_162]

at java.net.URLClassLoader.defineClass(URLClassLoader.java:462) ~[na:1.8.0_162]

at java.net.URLClassLoader.access$100(URLClassLoader.java:73) ~[na:1.8.0_162]

at java.net.URLClassLoader$1.run(URLClassLoader.java:368) ~[na:1.8.0_162]

... 76 common frames omitted


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

1条回答
  • 你检查一下 要用jdk8启动

    作者追问:2021-12-17 09:23


    我以为是jdk问题,下载新jdk 8一样的问题

    image.png

    0 讨论(0)
提交回复