添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

使用若依的微服务项目时,在本地启动项目时报错如下:

java.util.concurrent.TimeoutException: Waited 3000 milliseconds (plus 2 milliseconds, 351400 nanoseconds delay) for com.alibaba.nacos.shaded.io.grpc.stub.ClientCalls$GrpcFuture@1c6e0a08[status=PENDING, info=[GrpcFuture{clientCall={delegate={delegate=ClientCallImpl{method=MethodDescriptor{fullMethodName=Request/request, type=UNARY, idempotent=false, safe=false, sampledToLocalTracing=true, requestMarshaller=com.alibaba.nacos.shaded.io.grpc.protobuf.lite.ProtoLiteUtils$MessageMarshaller@4351171a, responseMarshaller=com.alibaba.nacos.shaded.io.grpc.protobuf.lite.ProtoLiteUtils$MessageMarshaller@3c2772d1, schemaDescriptor=com.alibaba.nacos.api.grpc.auto.RequestGrpc$RequestMethodDescriptorSupplier@37d00a23}}}}}]]
at com.alibaba.nacos.shaded.com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:508)
at com.alibaba.nacos.common.remote.client.grpc.GrpcClient.serverCheck(GrpcClient.java:148)
at com.alibaba.nacos.common.remote.client.grpc.GrpcClient.connectToServer(GrpcClient.java:264)
at com.alibaba.nacos.common.remote.client.RpcClient.start(RpcClient.java:390)
at com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient.ensureRpcClient(ClientWorker.java:885)
at com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient.getOneRunningClient(ClientWorker.java:1044)
at com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient.queryConfig(ClientWorker.java:940)
at com.alibaba.nacos.client.config.impl.ClientWorker.getServerConfig(ClientWorker.java:397)
at com.alibaba.nacos.client.config.NacosConfigService.getConfigInner(NacosConfigService.java:166)
at com.alibaba.nacos.client.config.NacosConfigService.getConfig(NacosConfigService.java:94)
at com.alibaba.cloud.nacos.client.NacosPropertySourceBuilder.loadNacosData(NacosPropertySourceBuilder.java:85)
at com.alibaba.cloud.nacos.client.NacosPropertySourceBuilder.build(NacosPropertySourceBuilder.java:73)
at com.alibaba.cloud.nacos.client.NacosPropertySourceLocator.loadNacosPropertySource(NacosPropertySourceLocator.java:199)
at com.alibaba.cloud.nacos.client.NacosPropertySourceLocator.loadNacosDataIfPresent(NacosPropertySourceLocator.java:186)
at com.alibaba.cloud.nacos.client.NacosPropertySourceLocator.loadNacosConfiguration(NacosPropertySourceLocator.java:158)
at com.alibaba.cloud.nacos.client.NacosPropertySourceLocator.loadSharedConfiguration(NacosPropertySourceLocator.java:116)
at com.alibaba.cloud.nacos.client.NacosPropertySourceLocator.locate(NacosPropertySourceLocator.java:101)
at org.springframework.cloud.bootstrap.config.PropertySourceLocator.locateCollection(PropertySourceLocator.java:51)
at org.springframework.cloud.bootstrap.config.PropertySourceLocator.locateCollection(PropertySourceLocator.java:47)
at org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration.initialize(PropertySourceBootstrapConfiguration.java:95)
at org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:618)
at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:385)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:306)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1317)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1306)
at com.ruoyi.gateway.RuoYiGatewayApplication.main(RuoYiGatewayApplication.java:17)

但是服务可以正常使用,为了解决这个报错,在网上搜索一番,发现都不是我这个问题,特此记录一下:

若依的微服务默认导的nacos依赖版本是

<alibaba.nacos.version>2.0.4</alibaba.nacos.version>

而我本地使用的是2.0.3,将版本修改为本地nacos版本后解决了问题。

java.util.concurrent.TimeoutException: Waited 3000 milliseconds (plus 2 milliseconds, 351400 nanosec 使用若依的微服务项目时,在本地启动项目时报错如下:java.util.concurrent.TimeoutException: Waited 3000 milliseconds (plus 2 milliseconds, 351400 nanoseconds delay)
Request idle tim ed out at 12 3000 ms. That means there was no activity (read or write) for 12 3000 ms and the connection was clos ed . 如果不活动的链接大于123秒的话会自动关闭; 参考:https://stackoverflow.com/questi...
连接nacos异常[NA] fail ed to update serviceName: UAT_GROUP@@**-** Nacos Exception : Request Exception
nacos服务连接异常:Server check fail, please check server 10.8.7.152 ,port 9848 is available , error ={} java.util.concurrent . Timeout Exception : Wait ed 3000 mill ise conds
设置熔断器检测时间(默认1秒) hystrix.command.default.execution.isolation.thread. timeout InMill ise conds : 5000 关闭熔断器超时检测时间功能,也就是不超时 hystrix.command.default.
2021-12-06 14:47:23.427 INFO 69058 --- [ main] org.reflections.Reflections : Reflections took 198 ms to scan 301 urls, producing 0 keys and 0 values 2021-12-06 14:47:23.439 INFO 69058 --- [ main] org.reflections.Reflecti...
:: BladeX 2.9.0.RELEASE :: inte-dmall:dev :: Running SpringBoot 2.3.12.RELEASE :: 2022-03-16 15:06:06.138 INFO 19224 — [ main] org.reflections.Reflections : Reflections took 45 ms to scan 1 urls, producing 3 keys and 6 values 2022-0
今天接手一个“写的很复杂”的代码。多线程请求,有时候就会丢失返回值。 程序是这样设定的,请求执行后自动执行重写的complete()方法,把数值写入全局变量map中,之后对map进行操作。 其中的代码很复杂,就不贴上来了。map中偶尔会缺失数据,但不报错。 后来我把complete()方法提取到主线程执行后,occur ed Timeout Exception 。 第一时间想到的是client设
问题:spark Exception in thread "main" java.util.concurrent . Timeout Exception : Futures tim ed out after [300] 在运行spark任务时,如果提示上述错误,可以分三步逐步排错: 1)首先check你提交任务时的参数,一般情况下提高excutor的个数就可以避免这种错误; 2)若1不行,就得改配置...
java.util.concurrent.TimeoutException: Waited 3000 milliseconds (plus 2 milliseconds, 351400 nanosec 10537 java.util.concurrent.TimeoutException: Waited 3000 milliseconds (plus 2 milliseconds, 351400 nanosec 危险游戏i: [code=java] private Response serverCheck(String ip, int port, RequestFutureStub requestBlockingStub) { try { if (requestBlockingStub == null) { return null; } else { ServerCheckRequest serverCheckRequest = new ServerCheckRequest(); Payload grpcRequest = GrpcUtils.convert(serverCheckRequest); ListenableFuture<Payload> responseFuture = requestBlockingStub.request(grpcRequest); Payload response = (Payload)responseFuture.get(3000L, TimeUnit.MILLISECONDS); return (Response)GrpcUtils.parse(response); } catch (Exception var8) { LoggerUtils.printIfErrorEnabled(LOGGER, "Server check fail, please check server {} ,port {} is available , error ={}", new Object[]{ip, port, var8}); return null; [/code] 2.0.4 2.03 都是写死得3000这两个版本应该都一样得问题 java.util.concurrent.TimeoutException: Waited 3000 milliseconds (plus 2 milliseconds, 351400 nanosec 小李成长记n: 项目在线上运行时刚好好的可能几个小时后就找不到,很奇怪,不知道是什么问题 java.util.concurrent.TimeoutException: Waited 3000 milliseconds (plus 2 milliseconds, 351400 nanosec 小zz同学: 在顶层pom引入一下[code=java] <dependency> <groupId>com.alibaba.nacos</groupId> <artifactId>nacos-client</artifactId> <version>${nacos.client.version}</version> </dependency> [/code] java.util.concurrent.TimeoutException: Waited 3000 milliseconds (plus 2 milliseconds, 351400 nanosec D_wanglufei: 具体在哪我忘了,去pom里面看一下嘛,实在不行全局搜索一下 java.util.concurrent.TimeoutException: Waited 3000 milliseconds (plus 2 milliseconds, 351400 nanosec xiaoyangzhiliu: 那个版本依赖在哪个文件里啊大佬