:: 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-03-16 15:06:06.176 INFO 19224 — [ main] org.reflections.Reflections : Reflections took 18 ms to scan 1 urls, producing 4 keys and 9 values
2022-03-16 15:06:06.198 INFO 19224 — [ main] org.reflections.Reflections : Reflections took 19 ms to scan 1 urls, producing 3 keys and 10 values
2022-03-16 15:06:06.415 INFO 19224 — [ main] org.reflections.Reflections : Reflections took 213 ms to scan 284 urls, producing 0 keys and 0 values
2022-03-16 15:06:06.427 INFO 19224 — [ main] org.reflections.Reflections : Reflections took 11 ms to scan 1 urls, producing 1 keys and 5 values
2022-03-16 15:06:06.438 INFO 19224 — [ main] org.reflections.Reflections : Reflections took 7 ms to scan 1 urls, producing 1 keys and 7 values
2022-03-16 15:06:06.449 INFO 19224 — [ main] org.reflections.Reflections : Reflections took 8 ms to scan 1 urls, producing 2 keys and 8 values
2022-03-16 15:06:06.615 INFO 19224 — [ main] org.reflections.Reflections : Reflections took 162 ms to scan 284 urls, producing 0 keys and 0 values
2022-03-16 15:06:18.046 WARN 19224 — [ main] c.a.c.n.c.NacosPropertySourceBuilder : Ignore the empty nacos configuration and get it based on dataId[inte-dmall] & group[DEFAULT_GROUP]
2022-03-16 15:06:18.355 WARN 19224 — [ main] c.a.c.n.c.NacosPropertySourceBuilder : Ignore the empty nacos configuration and get it based on dataId[inte-dmall.yaml] & group[DEFAULT_GROUP]
2022-03-16 15:06:18.677 INFO 19224 — [ main] b.c.PropertySourceBootstrapConfiguration : Located property source: [BootstrapPropertySource {name=‘bootstrapProperties-inte-dmall-dev.yaml,DEFAULT_GROUP’}, BootstrapPropertySource {name=‘bootstrapProperties-inte-dmall.yaml,DEFAULT_GROUP’}, BootstrapPropertySource {name=‘bootstrapProperties-inte-dmall,DEFAULT_GROUP’}, BootstrapPropertySource {name=‘bootstrapProperties-blade-dev.yaml,DEFAULT_GROUP’}, BootstrapPropertySource {name=‘bootstrapProperties-blade.yaml,DEFAULT_GROUP’}]
2022-03-16 15:06:18.734 INFO 19224 — [ main] com.inte.dmall.DmallApplication : The following profiles are active: dev
2022-03-16 15:06:19.338 WARN 19224 — [ 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]
2022-03-16 15:06:19.923 ERROR 19224 — [t.remote.worker] c.a.n.c.remote.client.grpc.GrpcClient : Server check fail, please check server localhost ,port 9848 is available , error ={}
java.util.concurrent.TimeoutException: Waited 3000 milliseconds (plus 4100 nanoseconds delay) for com.alibaba.nacos.shaded.io.grpc.stub.ClientCalls
KaTeX parse error: Expected '}', got 'EOF' at end of input: ….ProtoLiteUtils
MessageMarshaller@58a84a12, responseMarshaller=com.alibaba.nacos.shaded.io.grpc.protobuf.lite.ProtoLiteUtils
M
e
s
s
a
g
e
M
a
r
s
h
a
l
l
e
r
@
e
7
0
0
e
b
a
,
s
c
h
e
m
a
D
e
s
c
r
i
p
t
o
r
=
c
o
m
.
a
l
i
b
a
b
a
.
n
a
c
o
s
.
a
p
i
.
g
r
p
c
.
a
u
t
o
.
R
e
q
u
e
s
t
G
r
p
c
RequestMethodDescriptorSupplier@6436e181}}}}}]]
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:146)
at com.alibaba.nacos.common.remote.client.grpc.GrpcClient.connectToServer(GrpcClient.java:268)
at com.alibaba.nacos.common.remote.client.RpcClient.reconnect(RpcClient.java:528)
at com.alibaba.nacos.common.remote.client.RpcClient
201(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor
2
0
1
(
S
c
h
e
d
u
l
e
d
T
h
r
e
a
d
P
o
o
l
E
x
e
c
u
t
o
r
.
j
a
v
a
:
1
8
0
)
a
t
j
a
v
a
.
u
t
i
l
.
c
o
n
c
u
r
r
e
n
t
.
S
c
h
e
d
u
l
e
d
T
h
r
e
a
d
P
o
o
l
E
x
e
c
u
t
o
r
ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
2022-03-16 15:06:21.037 INFO 19224 — [ main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
2022-03-16 15:06:21.042 INFO 19224 — [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2022-03-16 15:06:21.092 INFO 19224 — [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 28ms. Found 0 Redis repository interfaces.
2022-03-16 15:06:21.249 WARN 19224 — [ main] o.s.boot.actuate.endpoint.EndpointId : Endpoint ID ‘service-registry’ contains invalid characters, please migrate to a valid format.
2022-03-16 15:06:21.277 WARN 19224 — [ main] o.s.boot.actuate.endpoint.EndpointId : Endpoint ID ‘hystrix.stream’ contains invalid characters, please migrate to a valid format.
2022-03-16 15:06:21.435 WARN 19224 — [ main] o.m.s.mapper.ClassPathMapperScanner : Skipping MapperFactoryBean with name ‘bladeMapper’ and ‘org.springblade.core.mp.mapper.BladeMapper’ mapperInterface. Bean already defined with the same name!
2022-03-16 15:06:21.620 INFO 19224 — [ main] o.s.cloud.context.scope.GenericScope : BeanFactory id=399ef8a1-48cc-372b-b320-b1e06a5af761
2022-03-16 15:06:21.626 INFO 19224 — [ main] s.c.l.p.BladePropertySourcePostProcessor : BladePropertySourcePostProcessor init.
2022-03-16 15:06:21.626 INFO 19224 — [ main] s.c.l.p.BladePropertySourcePostProcessor : BladePropertySourcePostProcessor process @BladePropertySource bean.
2022-03-16 15:06:23.160 ERROR 19224 — [t.remote.worker] c.a.n.c.remote.client.grpc.GrpcClient : Server check fail, please check server localhost ,port 9848 is available , error ={}
java.util.concurrent.TimeoutException: Waited 3000 milliseconds (plus 113 milliseconds, 559500 nanoseconds delay) for com.alibaba.nacos.shaded.io.grpc.stub.ClientCalls
KaTeX parse error: Expected '}', got 'EOF' at end of input: ….ProtoLiteUtils
MessageMarshaller@58a84a12, responseMarshaller=com.alibaba.nacos.shaded.io.grpc.protobuf.lite.ProtoLiteUtils
M
e
s
s
a
g
e
M
a
r
s
h
a
l
l
e
r
@
e
7
0
0
e
b
a
,
s
c
h
e
m
a
D
e
s
c
r
i
p
t
o
r
=
c
o
m
.
a
l
i
b
a
b
a
.
n
a
c
o
s
.
a
p
i
.
g
r
p
c
.
a
u
t
o
.
R
e
q
u
e
s
t
G
r
p
c
RequestMethodDescriptorSupplier@6436e181}}}}}]]
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:146)
at com.alibaba.nacos.common.remote.client.grpc.GrpcClient.connectToServer(GrpcClient.java:268)
at com.alibaba.nacos.common.remote.client.RpcClient.reconnect(RpcClient.java:528)
at com.alibaba.nacos.common.remote.client.RpcClient
201(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor
2
0
1
(
S
c
h
e
d
u
l
e
d
T
h
r
e
a
d
P
o
o
l
E
x
e
c
u
t
o
r
.
j
a
v
a
:
1
8
0
)
a
t
j
a
v
a
.
u
t
i
l
.
c
o
n
c
u
r
r
e
n
t
.
S
c
h
e
d
u
l
e
d
T
h
r
e
a
d
P
o
o
l
E
x
e
c
u
t
o
r
ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
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
2022-03-16 15:06:23.879 WARN 19224 — [ main] io.undertow.websockets.jsr : UT026010: Buffer pool was not set on WebSocketDeploymentInfo, the default pool will be used
2022-03-16 15:06:23.942 INFO 19224 — [ main] io.undertow.servlet : Initializing Spring embedded WebApplicationContext
2022-03-16 15:06:23.943 INFO 19224 — [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 5168 ms
2022-03-16 15:06:24.285 WARN 19224 — [ main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources.
2022-03-16 15:06:24.286 INFO 19224 — [ 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.
2022-03-16 15:06:24.305 INFO 19224 — [ main] c.netflix.config.DynamicPropertyFactory : DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration@685e5967
2022-03-16 15:06:24.614 INFO 19224 — [ main] o.s.b.a.e.web.ServletEndpointRegistrar : Registered ‘/actuator/hystrix.stream’ to hystrix.stream-actuator-endpoint
2022-03-16 15:06:25.017 INFO 19224 — [ main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource
2022-03-16 15:06:26.408 ERROR 19224 — [t.remote.worker] c.a.n.c.remote.client.grpc.GrpcClient : Server check fail, please check server localhost ,port 9848 is available , error ={}
java.util.concurrent.TimeoutException: Waited 3000 milliseconds (plus 455000 nanoseconds delay) for com.alibaba.nacos.shaded.io.grpc.stub.ClientCalls
KaTeX parse error: Expected '}', got 'EOF' at end of input: ….ProtoLiteUtils
MessageMarshaller@58a84a12, responseMarshaller=com.alibaba.nacos.shaded.io.grpc.protobuf.lite.ProtoLiteUtils
M
e
s
s
a
g
e
M
a
r
s
h
a
l
l
e
r
@
e
7
0
0
e
b
a
,
s
c
h
e
m
a
D
e
s
c
r
i
p
t
o
r
=
c
o
m
.
a
l
i
b
a
b
a
.
n
a
c
o
s
.
a
p
i
.
g
r
p
c
.
a
u
t
o
.
R
e
q
u
e
s
t
G
r
p
c
RequestMethodDescriptorSupplier@6436e181}}}}}]]
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:146)
at com.alibaba.nacos.common.remote.client.grpc.GrpcClient.connectToServer(GrpcClient.java:268)
at com.alibaba.nacos.common.remote.client.RpcClient.reconnect(RpcClient.java:528)
at com.alibaba.nacos.common.remote.client.RpcClient
201(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor
2
0
1
(
S
c
h
e
d
u
l
e
d
T
h
r
e
a
d
P
o
o
l
E
x
e
c
u
t
o
r
.
j
a
v
a
:
1
8
0
)
a
t
j
a
v
a
.
u
t
i
l
.
c
o
n
c
u
r
r
e
n
t
.
S
c
h
e
d
u
l
e
d
T
h
r
e
a
d
P
o
o
l
E
x
e
c
u
t
o
r
ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
启动报错,先用telnet 去拼nacos的ip和端口,看是否通,nacos会平移三个端口
如果通,还是启动报错,本地安装nacos,重启服务,服务能启动成功。证明是本地连接外部nacos异常。
最后定位问题,网卡端口冲突,我安装了一个远程连接公司的工具,貌似网卡被破坏了。卸载之后,多重启几次电脑,问题解决。
:: 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 values2022-0
记录
一下,springcloud,在使用feign调用
微服务
的时候,出现异常
java
.util.concurrent.TimeoutException: nul,
这个时候,一般是配置熔断器的问题,
熔断hystrix默认超时的时间为1秒,如果超过这个时间,就会抛出以上异常,这个时候,需要设置禁用超时时间,或者加大超时时间。操作如下:
在application.yml中设置熔断的检测时间:(...
【
nacos
启动错误】Server check fail, please check server localhost ,port 9848 is available , error ={}
Mac m1电脑Docker安装
nacos
2.x
电脑mac m1,使用官方的1.4.1版本的
nacos
启动时报错,找不到,于是替换
nacos
为2.x,采用Docker安装。命令行搜索
nacos
,找到适配Mac m1的镜像
拉去镜像:
打开8848和9848端口
检查yml文件配置是否配置正确✅
查看server-addr是否配置正确,端口号是否为默认的8848,或者其他修改的对应的端口号
Nacos
端口是否映射成功
nacos
2.x版本,
设置熔断器检测时间(默认1秒)
hystrix.command.default.execution.isolation.thread.timeoutInMill
ise
conds
: 5000
关闭熔断器超时检测时间功能,也就是不超时
hystrix.command.default.
Python服务将检测异常
Go客户端将通过与Python服务器通信
在gRPC我们定义了一个原型文件,在其中定义了要发送的消息和RPC方法。 我们的方法Detect使用OutliersRequest消息类型作为输入,并使用OutliersResponse消息类型作为输出。 OutliersRequest消息类型是Metric的列表/切片,而OutliersResponse消息类型是找到离群值的索引的列表/切片。
创建一个virtualenv python3 -m venv venv
激活它source venv/bin/activate
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...
今天接手一个“写的很复杂”的代码。多线程请求,有时候就会丢失返回值。
程序是这样设定的,请求执行后自动执行重写的complete()方法,把数值写入全局变量map中,之后对map进行操作。
其中的代码很复杂,就不贴上来了。map中偶尔会缺失数据,但不报错。
后来我把complete()方法提取到主线程执行后,occur
ed
TimeoutException。
第一时间想到的是client设
moncatcn: