一、该问题的重现步骤是什么?
1. 把blade-auth模块编译打成jar包
2. java -jar blade-auth.jar命令能正常启动,但是没在nacos上注册。启动这个命令前 本地需要启动nacos,不然也报错。
3.想加上nacos信息一起启动,这样可以看到服务在nacos上的注册情况。加了nacos启动后报错
二、你期待的结果是什么?实际看到的又是什么?
三、你正在使用的是什么产品,什么版本?在什么操作系统上?
四、请提供详细的错误堆栈信息,这很重要。
2024-11-13T14:27:17.148+08:00 INFO 25032 --- [blade-auth] [ main] c.t.connector.http11.Http11NioProtocol : Pausing ProtocolHandler ["http-nio-8100"] 2024-11-13T14:27:17.149+08:00 INFO 25032 --- [blade-auth] [ main] c.t.container.core.StandardService : Stopping service [TongWeb] 2024-11-13T14:27:17.165+08:00 INFO 25032 --- [blade-auth] [ main] c.t.connector.http11.Http11NioProtocol : Stopping ProtocolHandler ["http-nio-8100"] 2024-11-13T14:27:17.170+08:00 INFO 25032 --- [blade-auth] [ main] c.t.connector.http11.Http11NioProtocol : Destroying ProtocolHandler ["http-nio-8100"] 2024-11-13T14:27:17.179+08:00 WARN 25032 --- [blade-auth] [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Failed to start bean 'webServerStartStop' 2024-11-13T14:27:17.187+08:00 INFO 25032 --- [blade-auth] [ main] com.alibaba.nacos.client.naming : com.alibaba.nacos.client.naming.cache.ServiceInfoHolder do shutdown begin 2024-11-13T14:27:17.187+08:00 INFO 25032 --- [blade-auth] [ main] com.alibaba.nacos.client.naming : com.alibaba.nacos.client.naming.backups.FailoverReactor do shutdown begin 2024-11-13T14:27:17.187+08:00 INFO 25032 --- [blade-auth] [ main] com.alibaba.nacos.client.naming : com.alibaba.nacos.client.naming.backups.FailoverReactor do shutdown stop 2024-11-13T14:27:17.188+08:00 INFO 25032 --- [blade-auth] [ main] com.alibaba.nacos.client.naming : com.alibaba.nacos.client.naming.cache.ServiceInfoHolder do shutdown stop 2024-11-13T14:27:17.188+08:00 INFO 25032 --- [blade-auth] [ main] com.alibaba.nacos.client.naming : com.alibaba.nacos.client.naming.remote.NamingClientProxyDelegate do shutdown begin 2024-11-13T14:27:17.189+08:00 INFO 25032 --- [blade-auth] [ main] com.alibaba.nacos.client.naming : com.alibaba.nacos.client.naming.core.ServiceInfoUpdateService do shutdown begin 2024-11-13T14:27:17.189+08:00 INFO 25032 --- [blade-auth] [ main] com.alibaba.nacos.client.naming : com.alibaba.nacos.client.naming.core.ServiceInfoUpdateService do shutdown stop 2024-11-13T14:27:17.189+08:00 INFO 25032 --- [blade-auth] [ main] com.alibaba.nacos.client.naming : com.alibaba.nacos.client.naming.core.ServerListManager do shutdown begin 2024-11-13T14:27:17.190+08:00 WARN 25032 --- [blade-auth] [ main] com.alibaba.nacos.client.naming : [NamingHttpClientManager] Start destroying NacosRestTemplate 2024-11-13T14:27:17.190+08:00 WARN 25032 --- [blade-auth] [ main] com.alibaba.nacos.client.naming : [NamingHttpClientManager] Destruction of the end 2024-11-13T14:27:17.190+08:00 INFO 25032 --- [blade-auth] [ main] com.alibaba.nacos.client.naming : com.alibaba.nacos.client.naming.core.ServerListManager do shutdown stop 2024-11-13T14:27:17.190+08:00 INFO 25032 --- [blade-auth] [ main] com.alibaba.nacos.client.naming : com.alibaba.nacos.client.naming.remote.http.NamingHttpClientProxy do shutdown begin 2024-11-13T14:27:17.190+08:00 WARN 25032 --- [blade-auth] [ main] com.alibaba.nacos.client.naming : [NamingHttpClientManager] Start destroying NacosRestTemplate 2024-11-13T14:27:17.192+08:00 WARN 25032 --- [blade-auth] [ main] com.alibaba.nacos.client.naming : [NamingHttpClientManager] Destruction of the end 2024-11-13T14:27:17.192+08:00 INFO 25032 --- [blade-auth] [ main] com.alibaba.nacos.client.naming : com.alibaba.nacos.client.naming.remote.http.NamingHttpClientProxy do shutdown stop 2024-11-13T14:27:17.193+08:00 INFO 25032 --- [blade-auth] [ main] com.alibaba.nacos.client.naming : Shutdown naming grpc client proxy for uuid->7b7e89dc-ade9-45c3-b8f9-106f3cfe0ea4 2024-11-13T14:27:17.193+08:00 INFO 25032 --- [blade-auth] [ main] com.alibaba.nacos.client.naming : Shutdown grpc redo service executor java.util.concurrent.ScheduledThreadPoolExecutor@7590b28f[Running, pool size = 1, active threads = 0, queued tasks = 1, completed tasks = 4] 2024-11-13T14:27:17.193+08:00 INFO 25032 --- [blade-auth] [ main] com.alibaba.nacos.common.remote.client : Shutdown rpc client, set status to shutdown 2024-11-13T14:27:17.193+08:00 INFO 25032 --- [blade-auth] [ main] com.alibaba.nacos.common.remote.client : Shutdown client event executor java.util.concurrent.ScheduledThreadPoolExecutor@6cb0ab1e[Running, pool size = 2, active threads = 2, queued tasks = 0, completed tasks = 0] 2024-11-13T14:27:17.194+08:00 INFO 25032 --- [blade-auth] [ main] c.a.n.c.remote.client.grpc.GrpcClient : Shutdown grpc executor java.util.concurrent.ThreadPoolExecutor@6bb500fa[Running, pool size = 12, active threads = 0, queued tasks = 0, completed tasks = 14] 2024-11-13T14:27:17.194+08:00 ERROR 25032 --- [blade-auth] [remote.worker.1] c.a.n.c.remote.client.grpc.GrpcClient : Server check fail, please check server 172.0.0.1 ,port 9848 is available , error ={} java.lang.InterruptedException: null at com.alibaba.nacos.shaded.com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:460) ~[nacos-client-2.3.2.jar!/:na] at com.alibaba.nacos.common.remote.client.grpc.GrpcClient.serverCheck(GrpcClient.java:243) ~[nacos-client-2.3.2.jar!/:na] at com.alibaba.nacos.common.remote.client.grpc.GrpcClient.connectToServer(GrpcClient.java:367) ~[nacos-client-2.3.2.jar!/:na] at com.alibaba.nacos.common.remote.client.RpcClient.reconnect(RpcClient.java:502) ~[nacos-client-2.3.2.jar!/:na] at com.alibaba.nacos.common.remote.client.RpcClient.lambda$start$1(RpcClient.java:329) ~[nacos-client-2.3.2.jar!/:na] at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) ~[na:na] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[na:na] at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) ~[na:na] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[na:na] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[na:na] at java.base/java.lang.Thread.run(Thread.java:842) ~[na:na] 2024-11-13T14:27:17.194+08:00 INFO 25032 --- [blade-auth] [ main] com.alibaba.nacos.client.naming : shutdown and remove naming rpc client for uuid ->7b7e89dc-ade9-45c3-b8f9-106f3cfe0ea4 2024-11-13T14:27:17.195+08:00 INFO 25032 --- [blade-auth] [ main] c.a.n.c.a.r.identify.CredentialWatcher : [null] CredentialWatcher is stopped 2024-11-13T14:27:17.195+08:00 INFO 25032 --- [blade-auth] [ main] c.a.n.c.a.r.identify.CredentialService : [null] CredentialService is freed 2024-11-13T14:27:17.195+08:00 ERROR 25032 --- [blade-auth] [remote.worker.1] c.a.n.s.i.g.internal.ManagedChannelImpl : [Channel<21>: (172.0.0.1:9848)] Uncaught exception in the SynchronizationContext. Panic! com.alibaba.nacos.shaded.io.grpc.StatusRuntimeException: UNKNOWN: Uncaught exception in the SynchronizationContext. Re-thrown. at com.alibaba.nacos.shaded.io.grpc.Status.asRuntimeException(Status.java:529) ~[nacos-client-2.3.2.jar!/:na] at com.alibaba.nacos.shaded.io.grpc.internal.RetriableStream$1.uncaughtException(RetriableStream.java:75) ~[nacos-client-2.3.2.jar!/:na] at com.alibaba.nacos.shaded.io.grpc.SynchronizationContext.drain(SynchronizationContext.java:96) ~[nacos-client-2.3.2.jar!/:na] at com.alibaba.nacos.shaded.io.grpc.SynchronizationContext.execute(SynchronizationContext.java:126) ~[nacos-client-2.3.2.jar!/:na] at com.alibaba.nacos.shaded.io.grpc.internal.RetriableStream.safeCloseMasterListener(RetriableStream.java:825) ~[nacos-client-2.3.2.jar!/:na] at com.alibaba.nacos.shaded.io.grpc.internal.RetriableStream.cancel(RetriableStream.java:516) ~[nacos-client-2.3.2.jar!/:na] at com.alibaba.nacos.shaded.io.grpc.internal.ManagedChannelImpl$UncommittedRetriableStreamsRegistry.onShutdownNow(ManagedChannelImpl.java:1397) ~[nacos-client-2.3.2.jar!/:na] at com.alibaba.nacos.shaded.io.grpc.internal.ManagedChannelImpl$RealChannel$1RealChannelShutdownNow.run(ManagedChannelImpl.java:1053) ~[nacos-client-2.3.2.jar!/:na] at com.alibaba.nacos.shaded.io.grpc.SynchronizationContext.drain(SynchronizationContext.java:94) ~[nacos-client-2.3.2.jar!/:na] at com.alibaba.nacos.shaded.io.grpc.SynchronizationContext.execute(SynchronizationContext.java:126) ~[nacos-client-2.3.2.jar!/:na] at com.alibaba.nacos.shaded.io.grpc.internal.ManagedChannelImpl$RealChannel.shutdownNow(ManagedChannelImpl.java:1057) ~[nacos-client-2.3.2.jar!/:na] at com.alibaba.nacos.shaded.io.grpc.internal.ManagedChannelImpl.shutdownNow(ManagedChannelImpl.java:819) ~[nacos-client-2.3.2.jar!/:na] at com.alibaba.nacos.shaded.io.grpc.internal.ManagedChannelImpl.shutdownNow(ManagedChannelImpl.java:119) ~[nacos-client-2.3.2.jar!/:na] at com.alibaba.nacos.shaded.io.grpc.internal.ForwardingManagedChannel.shutdownNow(ForwardingManagedChannel.java:52) ~[nacos-client-2.3.2.jar!/:na] at com.alibaba.nacos.shaded.io.grpc.internal.ManagedChannelOrphanWrapper.shutdownNow(ManagedChannelOrphanWrapper.java:72) ~[nacos-client-2.3.2.jar!/:na] at com.alibaba.nacos.common.remote.client.grpc.GrpcClient.shuntDownChannel(GrpcClient.java:228) ~[nacos-client-2.3.2.jar!/:na] at com.alibaba.nacos.common.remote.client.grpc.GrpcClient.connectToServer(GrpcClient.java:369) ~[nacos-client-2.3.2.jar!/:na] at com.alibaba.nacos.common.remote.client.RpcClient.reconnect(RpcClient.java:502) ~[nacos-client-2.3.2.jar!/:na] at com.alibaba.nacos.common.remote.client.RpcClient.lambda$start$1(RpcClient.java:329) ~[nacos-client-2.3.2.jar!/:na] at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) ~[na:na] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[na:na] at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) ~[na:na] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[na:na] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[na:na] at java.base/java.lang.Thread.run(Thread.java:842) ~[na:na] Caused by: java.util.concurrent.RejectedExecutionException: Task com.alibaba.nacos.shaded.io.grpc.internal.SerializingExecutor@6681a8a5 rejected from java.util.concurrent.ThreadPoolExecutor@6bb500fa[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 14] at java.base/java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2065) ~[na:na] at java.base/java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:833) ~[na:na] at java.base/java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1365) ~[na:na] at com.alibaba.nacos.shaded.io.grpc.internal.SerializingExecutor.schedule(SerializingExecutor.java:102) ~[nacos-client-2.3.2.jar!/:na] at com.alibaba.nacos.shaded.io.grpc.internal.SerializingExecutor.execute(SerializingExecutor.java:95) ~[nacos-client-2.3.2.jar!/:na] at com.alibaba.nacos.shaded.io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.closedInternal(ClientCallImpl.java:743) ~[nacos-client-2.3.2.jar!/:na] at com.alibaba.nacos.shaded.io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.closed(ClientCallImpl.java:683) ~[nacos-client-2.3.2.jar!/:na] at com.alibaba.nacos.shaded.io.grpc.internal.RetriableStream$4.run(RetriableStream.java:830) ~[nacos-client-2.3.2.jar!/:na] at com.alibaba.nacos.shaded.io.grpc.SynchronizationContext.drain(SynchronizationContext.java:94) ~[nacos-client-2.3.2.jar!/:na] ... 22 common frames omitted 2024-11-13T14:27:17.195+08:00 INFO 25032 --- [blade-auth] [ main] com.alibaba.nacos.client.naming : com.alibaba.nacos.client.naming.remote.NamingClientProxyDelegate do shutdown stop 2024-11-13T14:27:17.208+08:00 INFO 25032 --- [blade-auth] [ main] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default' 2024-11-13T14:27:17.211+08:00 INFO 25032 --- [blade-auth] [ main] data-source : HulkPool-1 - Shutdown initiated... 2024-11-13T14:27:17.212+08:00 INFO 25032 --- [blade-auth] [ main] data-source : HulkPool-1 - Close initiated... 2024-11-13T14:27:17.213+08:00 INFO 25032 --- [blade-auth] [ main] data-source : HulkPool-1 - Closed. 2024-11-13T14:27:17.215+08:00 WARN 25032 --- [blade-auth] [ main] o.s.b.f.support.DisposableBeanAdapter : Invocation of close method failed on bean with name 'dataSource': java.lang.NullPointerException: Cannot invoke "java.util.concurrent.ScheduledExecutorService.shutdownNow()" because "this.slowSqlMonitorService" is null 2024-11-13T14:27:17.236+08:00 INFO 25032 --- [blade-auth] [ main] .s.b.a.l.ConditionEvaluationReportLogger : Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled. 2024-11-13T14:27:17.268+08:00 ERROR 25032 --- [blade-auth] [ main] o.s.boot.SpringApplication : Application run failed org.springframework.context.ApplicationContextException: Failed to start bean 'webServerStartStop' at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:288) ~[spring-context-6.1.10.jar!/:6.1.10] at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:469) ~[spring-context-6.1.10.jar!/:6.1.10] at java.base/java.lang.Iterable.forEach(Iterable.java:75) ~[na:na] at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:257) ~[spring-context-6.1.10.jar!/:6.1.10] at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:202) ~[spring-context-6.1.10.jar!/:6.1.10] at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:981) ~[spring-context-6.1.10.jar!/:6.1.10] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:627) ~[spring-context-6.1.10.jar!/:6.1.10] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146) ~[spring-boot-3.2.7.jar!/:3.2.7] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754) ~[spring-boot-3.2.7.jar!/:3.2.7] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:456) ~[spring-boot-3.2.7.jar!/:3.2.7] at org.springframework.boot.SpringApplication.run(SpringApplication.java:335) ~[spring-boot-3.2.7.jar!/:3.2.7] at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:149) ~[spring-boot-3.2.7.jar!/:3.2.7] at org.springblade.core.launch.BladeApplication.run(BladeApplication.java:59) ~[blade-core-launch-4.1.0.RELEASE.jar!/:4.1.0.RELEASE] at org.springblade.auth.AuthApplication.main(AuthApplication.java:44) ~[!/:na] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[na:na] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na] at java.base/java.lang.reflect.Method.invoke(Method.java:568) ~[na:na] at org.springframework.boot.loader.launch.Launcher.launch(Launcher.java:91) ~[blade-auth.jar:na] at org.springframework.boot.loader.launch.Launcher.launch(Launcher.java:53) ~[blade-auth.jar:na] at org.springframework.boot.loader.launch.JarLauncher.main(JarLauncher.java:58) ~[blade-auth.jar:na] Caused by: java.lang.reflect.UndeclaredThrowableException: null at org.springframework.util.ReflectionUtils.rethrowRuntimeException(ReflectionUtils.java:147) ~[spring-core-6.1.10.jar!/:6.1.10] at com.alibaba.cloud.nacos.registry.NacosServiceRegistry.register(NacosServiceRegistry.java:83) ~[spring-cloud-starter-alibaba-nacos-discovery-2023.0.1.0.jar!/:2023.0.1.0] at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.register(AbstractAutoServiceRegistration.java:264) ~[spring-cloud-commons-4.1.3.jar!/:4.1.3] at com.alibaba.cloud.nacos.registry.NacosAutoServiceRegistration.register(NacosAutoServiceRegistration.java:78) ~[spring-cloud-starter-alibaba-nacos-discovery-2023.0.1.0.jar!/:2023.0.1.0] at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.start(AbstractAutoServiceRegistration.java:156) ~[spring-cloud-commons-4.1.3.jar!/:4.1.3] at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.onApplicationEvent(AbstractAutoServiceRegistration.java:119) ~[spring-cloud-commons-4.1.3.jar!/:4.1.3] at org.springframework.cloud.client.serviceregistry.AbstractAutoServiceRegistration.onApplicationEvent(AbstractAutoServiceRegistration.java:49) ~[spring-cloud-commons-4.1.3.jar!/:4.1.3] at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:185) ~[spring-context-6.1.10.jar!/:6.1.10] at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:178) ~[spring-context-6.1.10.jar!/:6.1.10] at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:156) ~[spring-context-6.1.10.jar!/:6.1.10] at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:451) ~[spring-context-6.1.10.jar!/:6.1.10] at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:384) ~[spring-context-6.1.10.jar!/:6.1.10] at org.springframework.boot.web.servlet.context.WebServerStartStopLifecycle.start(WebServerStartStopLifecycle.java:47) ~[spring-boot-3.2.7.jar!/:3.2.7] at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:285) ~[spring-context-6.1.10.jar!/:6.1.10] ... 20 common frames omitted Caused by: com.alibaba.nacos.api.exception.NacosException: Client not connected, current status:STARTING at com.alibaba.nacos.common.remote.client.RpcClient.request(RpcClient.java:644) ~[nacos-client-2.3.2.jar!/:na] at com.alibaba.nacos.common.remote.client.RpcClient.request(RpcClient.java:623) ~[nacos-client-2.3.2.jar!/:na] at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.requestToServer(NamingGrpcClientProxy.java:447) ~[nacos-client-2.3.2.jar!/:na] at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.doRegisterService(NamingGrpcClientProxy.java:250) ~[nacos-client-2.3.2.jar!/:na] at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.registerServiceForEphemeral(NamingGrpcClientProxy.java:145) ~[nacos-client-2.3.2.jar!/:na] at com.alibaba.nacos.client.naming.remote.gprc.NamingGrpcClientProxy.registerService(NamingGrpcClientProxy.java:136) ~[nacos-client-2.3.2.jar!/:na] at com.alibaba.nacos.client.naming.remote.NamingClientProxyDelegate.registerService(NamingClientProxyDelegate.java:95) ~[nacos-client-2.3.2.jar!/:na] at com.alibaba.nacos.client.naming.NacosNamingService.registerInstance(NacosNamingService.java:151) ~[nacos-client-2.3.2.jar!/:na] at com.alibaba.cloud.nacos.registry.NacosServiceRegistry.register(NacosServiceRegistry.java:75) ~[spring-cloud-starter-alibaba-nacos-discovery-2023.0.1.0.jar!/:2023.0.1.0] ... 32 common frames omitted 2024-11-13T14:27:17.306+08:00 INFO 25032 --- [blade-auth] [remote.worker.1] com.alibaba.nacos.common.remote.client : [7b7e89dc-ade9-45c3-b8f9-106f3cfe0ea4] Client is shutdown, stop reconnect to server 2024-11-13T14:27:18.207+08:00 WARN 25032 --- [blade-auth] [ Thread-2] c.a.n.common.http.HttpClientBeanHolder : [HttpClientBeanHolder] Start destroying common HttpClient 2024-11-13T14:27:18.208+08:00 WARN 25032 --- [blade-auth] [ Thread-5] c.a.nacos.common.notify.NotifyCenter : [NotifyCenter] Start destroying Publisher 2024-11-13T14:27:18.208+08:00 WARN 25032 --- [blade-auth] [ Thread-2] c.a.n.common.http.HttpClientBeanHolder : [HttpClientBeanHolder] Destruction of the end
五、若有更多详细信息,请在下面提供。
你之前发的帖子描述都挺简单的,要多考虑几遍才能看懂,但这个帖子是真的看不懂了。麻烦重新组织一下语言再补充说明下吧。
第二点说启动jar包能成功只是没有注册到nacos。然后紧接着又说需要先启动naocs,否则会报错。到底哪个操作报错了?
第三点意思好像是启动了naocs也依旧报错,到底有没有启动成功过?
2、打完jar包后要先启动nacos才能通过java -jar blade-auth.jar才能运行,但是在nacos的服务列表是找不到blade-auth的注册信息的。
3、如果命令中带有nacos信息的启动的话,是启动不了的,报上面的错
java -jar -Xms256m -Xmx512m -Dspring.cloud.nacos.discovery.server-addr=172.0.0.1:8848 -Dspring.cloud.nacos.discovery.namespace=blade -Dspring.cloud.nacos.discovery.group=DEV_GROUP -Dspring.cloud.nacos.config.namespace=blade -Dspring.cloud.nacos.config.group=DEV_GROUP -Dspring.cloud.nacos.username= -Dspring.cloud.nacos.password= blade-auth.jar
我这条命令是想指定naco地址,账号密码,及注册分组
具体错误如下,nacos连接不上导致的问题。注意nacos的8848、9848、9849三个端口是否都对外网开放
2024-11-13T14:27:17.194+08:00 ERROR 25032 --- [blade-auth] [remote.worker.1] c.a.n.c.remote.client.grpc.GrpcClient : Server check fail, please check server 172.0.0.1 ,port 9848 is available , error ={} java.lang.InterruptedException: null
扫一扫访问 Blade技术社区 移动端