SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/E:/PRJ_J2EE/PrjFlexJava/WebContent/WEB-INF/lib/activemq-all-5.14.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/E:/PRJ_J2EE/PrjFlexJava/WebContent/WEB-INF/lib/slf4j-log4j12-1.4.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
ERROR StatusLogger Unable to locate a logging implementation, using SimpleLogger
2023-05-19 09:01:51,714 WARN com.alibaba.nacos.client.logging.NacosLogging - Load Log4j Configuration of Nacos fail, message: org/apache/logging/log4j/core/LoggerContext
2023-05-19 09:01:51,727 INFO com.alibaba.nacos.client.utils.ParamUtil - [settings] [req-serv] nacos-server port:8848
2023-05-19 09:01:51,728 INFO com.alibaba.nacos.client.utils.ParamUtil - [settings] [http-client] connect timeout:1000
2023-05-19 09:01:51,889 INFO com.alibaba.nacos.client.utils.ParamUtil - PER_TASK_CONFIG_SIZE: 3000.0
2023-05-19 09:01:53,018 INFO com.alibaba.nacos.client.identify.CredentialWatcher - null No credential found
2023-05-19 09:01:53,047 INFO com.alibaba.nacos.client.config.impl.LocalConfigInfoProcessor - LOCAL_SNAPSHOT_PATH:C:\Users\Administrator\nacos\config
2023-05-19 09:01:53,064 INFO com.alibaba.nacos.common.remote.client - [RpcClientFactory] create a new rpc client of 8bfa5929-ca5e-4af3-9c92-facf9956b065_config-0
2023-05-19 09:01:53,569 INFO org.reflections.Reflections - Reflections took 375 ms to scan 1 urls, producing 3 keys and 6 values
2023-05-19 09:01:53,789 INFO org.reflections.Reflections - Reflections took 131 ms to scan 1 urls, producing 4 keys and 9 values
2023-05-19 09:01:53,863 INFO org.reflections.Reflections - Reflections took 68 ms to scan 1 urls, producing 3 keys and 10 values
2023-05-19 09:01:55,162 INFO org.reflections.Reflections - Reflections took 1280 ms to scan 384 urls, producing 0 keys and 0 values
2023-05-19 09:01:55,211 INFO org.reflections.Reflections - Reflections took 43 ms to scan 1 urls, producing 1 keys and 5 values
2023-05-19 09:01:55,256 INFO org.reflections.Reflections - Reflections took 35 ms to scan 1 urls, producing 1 keys and 7 values
2023-05-19 09:01:55,310 INFO org.reflections.Reflections - Reflections took 40 ms to scan 1 urls, producing 2 keys and 8 values
2023-05-19 09:01:56,075 INFO org.reflections.Reflections - Reflections took 752 ms to scan 384 urls, producing 0 keys and 0 values
2023-05-19 09:01:56,082 INFO com.alibaba.nacos.common.remote.client - [8bfa5929-ca5e-4af3-9c92-facf9956b065_config-0] RpcClient init label, labels = {module=config, Vipserver-Tag=null, source=sdk, Amory-Tag=null, Location-Tag=null, taskId=0, AppName=unknown}
2023-05-19 09:01:56,084 INFO com.alibaba.nacos.common.remote.client - [8bfa5929-ca5e-4af3-9c92-facf9956b065_config-0] Register server push request handler:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$$Lambda$86/1519736165
2023-05-19 09:01:56,085 INFO com.alibaba.nacos.common.remote.client - [8bfa5929-ca5e-4af3-9c92-facf9956b065_config-0] Register server push request handler:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$$Lambda$87/1653844940
2023-05-19 09:01:56,087 INFO com.alibaba.nacos.common.remote.client - [8bfa5929-ca5e-4af3-9c92-facf9956b065_config-0] Registry connection listener to current client:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$1
2023-05-19 09:01:56,090 INFO com.alibaba.nacos.common.remote.client - [8bfa5929-ca5e-4af3-9c92-facf9956b065_config-0] RpcClient init, ServerListFactory = com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$2
2023-05-19 09:01:56,137 INFO com.alibaba.nacos.common.remote.client - [8bfa5929-ca5e-4af3-9c92-facf9956b065_config-0] Try to connect to server on start up, server: {serverIp = 'localhost', server main port = 8848}
2023-05-19 09:01:56,450 DEBUG com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.internal.logging.InternalLoggerFactory - Using SLF4J as the default logging framework
2023-05-19 09:01:56,452 DEBUG com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent - Platform: Windows
2023-05-19 09:01:56,458 DEBUG com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent0 - -Dio.netty.noUnsafe: false
2023-05-19 09:01:56,458 DEBUG com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent0 - Java version: 8
2023-05-19 09:01:56,462 DEBUG com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.theUnsafe: available
2023-05-19 09:01:56,465 DEBUG com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.copyMemory: available
2023-05-19 09:01:56,466 DEBUG com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent0 - java.nio.Buffer.address: available
2023-05-19 09:01:56,468 DEBUG com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent0 - direct buffer constructor: available
2023-05-19 09:01:56,471 DEBUG com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent0 - java.nio.Bits.unaligned: available, true
2023-05-19 09:01:56,471 DEBUG com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent0 - jdk.internal.misc.Unsafe.allocateUninitializedArray(int): unavailable prior to Java9
2023-05-19 09:01:56,471 DEBUG com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent0 - java.nio.DirectByteBuffer.<init>(long, int): available
2023-05-19 09:01:56,471 DEBUG com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent - sun.misc.Unsafe: available
2023-05-19 09:01:56,473 DEBUG com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent - -Dio.netty.tmpdir: C:\Users\ADMINI~1\AppData\Local\Temp (java.io.tmpdir)
2023-05-19 09:01:56,473 DEBUG com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent - -Dio.netty.bitMode: 64 (sun.arch.data.model)
2023-05-19 09:01:56,477 DEBUG com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent - -Dio.netty.maxDirectMemory: 3745513472 bytes
2023-05-19 09:01:56,477 DEBUG com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent - -Dio.netty.uninitializedArrayAllocationThreshold: -1
2023-05-19 09:01:56,481 DEBUG com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.internal.CleanerJava6 - java.nio.ByteBuffer.cleaner(): available
2023-05-19 09:01:56,482 DEBUG com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent - -Dio.netty.noPreferDirect: false
2023-05-19 09:01:56,664 DEBUG com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.channel.MultithreadEventLoopGroup - -Dio.netty.eventLoopThreads: 16
2023-05-19 09:01:56,737 DEBUG com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.internal.InternalThreadLocalMap - -Dio.netty.threadLocalMap.stringBuilder.initialSize: 1024
2023-05-19 09:01:56,738 DEBUG com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.internal.InternalThreadLocalMap - -Dio.netty.threadLocalMap.stringBuilder.maxSize: 4096
2023-05-19 09:01:56,773 DEBUG com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.channel.nio.NioEventLoop - -Dio.netty.noKeySetOptimization: false
2023-05-19 09:01:56,773 DEBUG com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.channel.nio.NioEventLoop - -Dio.netty.selectorAutoRebuildThreshold: 512
2023-05-19 09:01:56,814 DEBUG com.alibaba.nacos.shaded.io.grpc.netty.shaded.io.netty.util.internal.PlatformDependent - org.jctools-core.MpscChunkedArrayQueue: available
2023-05-19 09:01:57,458 WARN com.alibaba.nacos.common.remote.client - [8bfa5929-ca5e-4af3-9c92-facf9956b065_config-0] Fail to connect to server on start up, error message = com/fasterxml/jackson/annotation/JsonView, start up retry times left: 2
2023-05-19 09:01:57,459 INFO com.alibaba.nacos.common.remote.client - [8bfa5929-ca5e-4af3-9c92-facf9956b065_config-0] Try to connect to server on start up, server: {serverIp = 'localhost', server main port = 8848}
2023-05-19 09:01:57,462 WARN com.alibaba.nacos.common.remote.client - [8bfa5929-ca5e-4af3-9c92-facf9956b065_config-0] Fail to connect to server on start up, error message = Could not initialize class com.alibaba.nacos.common.remote.client.grpc.GrpcUtils, start up retry times left: 1
2023-05-19 09:01:57,462 INFO com.alibaba.nacos.common.remote.client - [8bfa5929-ca5e-4af3-9c92-facf9956b065_config-0] Try to connect to server on start up, server: {serverIp = 'localhost', server main port = 8848}
2023-05-19 09:01:57,464 WARN com.alibaba.nacos.common.remote.client - [8bfa5929-ca5e-4af3-9c92-facf9956b065_config-0] Fail to connect to server on start up, error message = Could not initialize class com.alibaba.nacos.common.remote.client.grpc.GrpcUtils, start up retry times left: 0
2023-05-19 09:01:57,465 INFO com.alibaba.nacos.common.remote.client - [8bfa5929-ca5e-4af3-9c92-facf9956b065_config-0] Try to reconnect to a new server, server is not appointed, will choose a random server.
2023-05-19 09:01:57,468 INFO com.alibaba.nacos.common.remote.client - [8bfa5929-ca5e-4af3-9c92-facf9956b065_config-0] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$ConnectResetRequestHandler
2023-05-19 09:01:57,470 INFO com.alibaba.nacos.common.remote.client - [8bfa5929-ca5e-4af3-9c92-facf9956b065_config-0] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$$Lambda$95/1967355409
2023-05-19 09:01:57,678 INFO com.alibaba.nacos.client.config.impl.Limiter - limitTime:5.0
2023-05-19 09:01:57,793 ERROR com.alibaba.nacos.common.remote.client - Send request fail, request = ConfigQueryRequest{headers={charset=UTF-8, Client-AppName=unknown, Client-RequestToken=9e4da66af9fbf84481ff152e3f505b82, Client-RequestTS=1684458117473, exConfigInfo=true, notify=false, Timestamp=1684458117477}, requestId='null'}, retryTimes = 0, errorMessage = Client not connected, current status:STARTING
2023-05-19 09:01:57,893 ERROR com.alibaba.nacos.common.remote.client - Send request fail, request = ConfigQueryRequest{headers={charset=UTF-8, Client-AppName=unknown, Client-RequestToken=9e4da66af9fbf84481ff152e3f505b82, Client-RequestTS=1684458117473, exConfigInfo=true, notify=false, Timestamp=1684458117477}, requestId='null'}, retryTimes = 1, errorMessage = Client not connected, current status:STARTING
2023-05-19 09:01:57,993 ERROR com.alibaba.nacos.common.remote.client - Send request fail, request = ConfigQueryRequest{headers={charset=UTF-8, Client-AppName=unknown, Client-RequestToken=9e4da66af9fbf84481ff152e3f505b82, Client-RequestTS=1684458117473, exConfigInfo=true, notify=false, Timestamp=1684458117477}, requestId='null'}, retryTimes = 2, errorMessage = Client not connected, current status:STARTING
2023-05-19 09:01:57,995 WARN com.alibaba.nacos.client.config.NacosConfigService - [config_rpc_client] [get-config] get from server error, dataId=application-dev.yml, group=DEFAULT_GROUP, tenant=, msg=ErrCode:-401, ErrMsg:Client not connected, current status:STARTING
2023-05-19 09:01:57,997 WARN com.alibaba.nacos.client.config.NacosConfigService - [config_rpc_client] [get-config] get snapshot ok, dataId=application-dev.yml, group=DEFAULT_GROUP, tenant=, config=
null
2023-05-19 09:01:58,013 INFO com.alibaba.nacos.client.config.impl.ClientWorker - [config_rpc_client] [subscribe] application-dev.yml+DEFAULT_GROUP
Exception in thread "main" java.lang.NoClassDefFoundError: io/prometheus/client/Gauge
at com.alibaba.nacos.client.monitor.MetricsMonitor.<clinit>(MetricsMonitor.java:29)
at com.alibaba.nacos.client.config.impl.ClientWorker.addCacheDataIfAbsent(ClientWorker.java:376)
at com.alibaba.nacos.client.config.impl.ClientWorker.addTenantListeners(ClientWorker.java:168)
at com.alibaba.nacos.client.config.NacosConfigService.addListener(NacosConfigService.java:107)
at nacos.ConfigExample.main(ConfigExample.java:74)
Caused by: java.lang.ClassNotFoundException: io.prometheus.client.Gauge
at java.net.URLClassLoader.findClass(URLClassLoader.java:387)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
... 5 more
2023-05-19 09:01:58,022 WARN com.alibaba.nacos.common.http.HttpClientBeanHolder - [HttpClientBeanHolder] Start destroying common HttpClient
2023-05-19 09:01:58,023 WARN com.alibaba.nacos.common.notify.NotifyCenter - [NotifyCenter] Start destroying Publisher
2023-05-19 09:01:58,023 WARN com.alibaba.nacos.common.notify.NotifyCenter - [NotifyCenter] Destruction of the end
2023-05-19 09:01:58,025 WARN com.alibaba.nacos.common.http.HttpClientBeanHolder - [HttpClientBeanHolder] Destruction of the end
==
https://mvnrepository.com/artifact/io.prometheus/simpleclient
<dependency>
<groupId>io.prometheus</groupId>
<artifactId>simpleclient</artifactId>
<version>0.16.0</version>
</dependency>
https://repo1.maven.org/maven2/io/prometheus/simpleclient/0.15.0/simpleclient-0.15.0.jar