skywalking 实现收集基于虚拟机环境 dubbo微服务链路跟踪案例
一、环境准备
1.1、准备三台虚机
172.16.88.191 skywalking-agent-04 zookeeper 172.16.88.192 skywalking-agent-05 dubbo-server 172.16.88.193 skywalking-agent-06 dubbo-client
二、安装配置zookeeper注册中心
2.1、安装java环境
[root@skywalking-agent-04 ~]# apt-get update && apt-get install -y openjdk-11-jdk
[root@skywalking-agent-04 ~]# java -version
openjdk version "11.0.16" 2022-07-19
OpenJDK Runtime Environment (build 11.0.16+8-post-Ubuntu-0ubuntu120.04)
OpenJDK 64-Bit Server VM (build 11.0.16+8-post-Ubuntu-0ubuntu120.04, mixed mode, sharing)
[root@skywalking-agent-04 ~]#
2.2、下载zookeeper服务并配置zookeeper服务
[root@skywalking-agent-04 ~]# wget https://dlcdn.apache.org/zookeeper/zookeeper-3.6.3/apache-zookeeper-3.6.3-bin.tar.gz
[root@skywalking-agent-04 ~]# mkdir /apps
[root@skywalking-agent-04 ~]# tar -xf apache-zookeeper-3.6.3-bin.tar.gz -C /apps
[root@skywalking-agent-04 conf]# cd /apps/apache-zookeeper-3.6.3-bin/conf
[root@skywalking-agent-04 conf]# cp zoo_sample.cfg zoo.cfg
[root@skywalking-agent-04 conf]# vi zoo.cfg
[root@skywalking-agent-04 conf]# egrep -v "^$|^#" zoo.cfg
tickTime=2000
initLimit=10
syncLimit=5
dataDir=/data/zookeeper
clientPort=2181
[root@skywalking-agent-04 conf]
[root@skywalking-agent-04 conf]# mkdir -p /data/zookeeper
2.3、运行zookeeper服务
[root@skywalking-agent-04 ~]# /apps/apache-zookeeper-3.6.3-bin/bin/zkServer.sh start
/usr/bin/java
ZooKeeper JMX enabled by default
Using config: /apps/apache-zookeeper-3.6.3-bin/bin/../conf/zoo.cfg
Starting zookeeper ... STARTED
[root@skywalking-agent-04 ~]# /apps/apache-zookeeper-3.6.3-bin/bin/zkServer.sh status
/usr/bin/java
ZooKeeper JMX enabled by default
Using config: /apps/apache-zookeeper-3.6.3-bin/bin/../conf/zoo.cfg
Client port found: 2181. Client address: localhost. Client SSL: false.
Mode: standalone
[root@skywalking-agent-04 ~]#
[root@skywalking-agent-04 ~]# netstat -tnlp
Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.1:6011 0.0.0.0:* LISTEN 1287/sshd: root@pts tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 672/systemd-resolve tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 836/sshd: /usr/sbin tcp6 0 0 ::1:6011 :::* LISTEN 1287/sshd: root@pts tcp6 0 0 :::2181 :::* LISTEN 5887/java tcp6 0 0 :::8080 :::* LISTEN 5887/java tcp6 0 0 :::37301 :::* LISTEN 5887/java tcp6 0 0 :::22 :::* LISTEN 836/sshd: /usr/sbin
三、配置dubbo sever端
3.1、安装配置java环境
[root@skywalking-agent-05 ~]# apt-get update && apt-get install -y openjdk-11-jdk
3.2、配置skywalking agent端
[root@skywalking-agent-05 ~]# wget https://archive.apache.org/dist/skywalking/java-agent/8.8.0/apache-skywalking-java-agent-8.8.0.tgz
[root@skywalking-agent-05 ~]# mkdir /data
[root@skywalking-agent-05 ~]# tar -xf apache-skywalking-java-agent-8.8.0.tgz -C /data
[root@skywalking-agent-05 ~]# vim /data/skywalking-agent/config/agent.config
18 agent.namespace=${SW_AGENT_NAMESPACE:dubbo }21 agent.service_name=${SW_AGENT_NAME:dubbo-server1} 93 collector.backend_service=${SW_AGENT_COLLECTOR_BACKEND_SERVICES:172.16.88.187:11800}
3.3、上传dubbo微服务server包
[root@skywalking-agent-05 ~]# mkdir /apps
[root@skywalking-agent-05 ~]# ll -h /apps/
total 35M drwxr-xr-x 2 root root 4.0K Oct 3 08:33 ./ drwxr-xr-x 21 root root 4.0K Oct 3 08:28 ../-rw-r--r-- 1 root root 14M Oct 3 08:34 dubbo-server.jar
3.4、配置hosts解析
echo "172.16.88.191 skywalking-agent-04 zookeeper1" >> /etc/hosts
3.5、启动dubbo server端
[root@skywalking-agent-05 ~]# java -javaagent:/data/skywalking-agent/skywalking-agent.jar -jar /apps/dubbo-server.jar
DEBUG 2022-10-03 08:38:59:665 main AgentPackagePath : The beacon class location is jar:file:/data/skywalking-agent/skywalking-agent.jar!/org/apache/skywalking/apm/agent/core/boot/AgentPackagePath.class. INFO 2022-10-03 08:38:59:668 main SnifferConfigInitializer : Config file found in /data/skywalking-agent/config/agent.config. . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v1.3.1.RELEASE) 2022-10-03 08:39:03.285 INFO 6036 --- [ main] com.od.dubbotest.Application : Starting Application v0.0.1-SNAPSHOT on skywalking-agent-05 with PID 6036 (/apps/dubbo-server.jar started by root in /root) 2022-10-03 08:39:03.289 INFO 6036 --- [ main] com.od.dubbotest.Application : No active profile set, falling back to default profiles: default 2022-10-03 08:39:03.322 INFO 6036 --- [ main] o.s.b.f.xml.XmlBeanDefinitionReader : Loading XML bean definitions from URL [jar:file:/apps/dubbo-server.jar!/spring-config.xml] log4j:WARN No appenders could be found for logger (com.alibaba.dubbo.common.logger.LoggerFactory). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. 2022-10-03 08:39:03.862 INFO 6036 --- [ main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@176be934: startup date [Mon Oct 03 08:39:03 UTC 2022]; root of context hierarchy WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils$1 (jar:file:/apps/dubbo-server.jar!/lib/spring-core-4.2.4.RELEASE.jar!/) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) WARNING: Please consider reporting this to the maintainers of org.springframework.cglib.core.ReflectUtils$1 WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release 2022-10-03 08:39:04.695 INFO 6036 --- [ main] o.s.b.f.c.PropertyPlaceholderConfigurer : Loading properties file from class path resource [config.properties] [5.948s][warning][exceptions] Class java.lang.Class in throws clause of method com.alibaba.dubbo.rpc.Invoker com.alibaba.dubbo.rpc.Protocol$Adpative.refer(java.lang.Class, com.alibaba.dubbo.common.URL) is not a subtype of class java.lang.Throwable [5.948s][warning][exceptions] Class com.alibaba.dubbo.rpc.Invoker in throws clause of method com.alibaba.dubbo.rpc.Exporter com.alibaba.dubbo.rpc.Protocol$Adpative.export(com.alibaba.dubbo.rpc.Invoker) is not a subtype of class java.lang.Throwable [5.963s][warning][exceptions] Class java.lang.Object in throws clause of method com.alibaba.dubbo.rpc.Invoker com.alibaba.dubbo.rpc.ProxyFactory$Adpative.getInvoker(java.lang.Object, java.lang.Class, com.alibaba.dubbo.common.URL) is not a subtype of class java.lang.Throwable [5.963s][warning][exceptions] Class com.alibaba.dubbo.rpc.Invoker in throws clause of method java.lang.Object com.alibaba.dubbo.rpc.ProxyFactory$Adpative.getProxy(com.alibaba.dubbo.rpc.Invoker) is not a subtype of class java.lang.Throwable [6.159s][warning][exceptions] Class com.alibaba.dubbo.rpc.cluster.Directory in throws clause of method com.alibaba.dubbo.rpc.Invoker com.alibaba.dubbo.rpc.cluster.Cluster$Adpative.join(com.alibaba.dubbo.rpc.cluster.Directory) is not a subtype of class java.lang.Throwable [6.187s][warning][exceptions] Class com.alibaba.dubbo.common.URL in throws clause of method com.alibaba.dubbo.remoting.Server com.alibaba.dubbo.remoting.Transporter$Adpative.bind(com.alibaba.dubbo.common.URL, com.alibaba.dubbo.remoting.ChannelHandler) is not a subtype of class java.lang.Throwable [6.187s][warning][exceptions] Class com.alibaba.dubbo.common.URL in throws clause of method com.alibaba.dubbo.remoting.Client com.alibaba.dubbo.remoting.Transporter$Adpative.connect(com.alibaba.dubbo.common.URL, com.alibaba.dubbo.remoting.ChannelHandler) is not a subtype of class java.lang.Throwable 2022-10-03 08:39:05.567 INFO 6036 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:zookeeper.version=3.4.6-1569965, built on 02/20/2014 09:09 GMT 2022-10-03 08:39:05.567 INFO 6036 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:host.name=skywalking-agent-05 2022-10-03 08:39:05.567 INFO 6036 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:java.version=11.0.16 2022-10-03 08:39:05.567 INFO 6036 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:java.vendor=Ubuntu 2022-10-03 08:39:05.567 INFO 6036 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:java.home=/usr/lib/jvm/java-11-openjdk-amd64 2022-10-03 08:39:05.567 INFO 6036 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:java.class.path=/apps/dubbo-server.jar 2022-10-03 08:39:05.567 INFO 6036 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:java.library.path=/usr/java/packages/lib:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib 2022-10-03 08:39:05.567 INFO 6036 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:java.io.tmpdir=/tmp 2022-10-03 08:39:05.568 INFO 6036 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:java.compiler=<NA> 2022-10-03 08:39:05.568 INFO 6036 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:os.name=Linux 2022-10-03 08:39:05.568 INFO 6036 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:os.arch=amd64 2022-10-03 08:39:05.568 INFO 6036 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:os.version=5.4.0-122-generic 2022-10-03 08:39:05.568 INFO 6036 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:user.name=root 2022-10-03 08:39:05.568 INFO 6036 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:user.home=/root 2022-10-03 08:39:05.568 INFO 6036 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:user.dir=/root 2022-10-03 08:39:05.570 INFO 6036 --- [ main] org.apache.zookeeper.ZooKeeper : Initiating client connection, connectString=zookeeper1:2181 sessionTimeout=30000 watcher=org.I0Itec.zkclient.ZkClient@6473026a 2022-10-03 08:39:05.601 INFO 6036 --- [-agent-04:2181)] org.apache.zookeeper.ClientCnxn : Opening socket connection to server skywalking-agent-04/172.16.88.191:2181. Will not attempt to authenticate using SASL (unknown error) 2022-10-03 08:39:05.603 INFO 6036 --- [-agent-04:2181)] org.apache.zookeeper.ClientCnxn : Socket connection established to skywalking-agent-04/172.16.88.191:2181, initiating session 2022-10-03 08:39:05.650 INFO 6036 --- [-agent-04:2181)] org.apache.zookeeper.ClientCnxn : Session establishment complete on server skywalking-agent-04/172.16.88.191:2181, sessionid = 0x10000151ef50000, negotiated timeout = 30000 2022-10-03 08:39:06.276 INFO 6036 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup 2022-10-03 08:39:06.396 INFO 6036 --- [ main] com.od.dubbotest.Application : Started Application in 3.978 seconds (JVM running for 7.226) Dubbo server started Dubbo 服务端已经启动
3.6、验证dubbo是否注册到zookeeper
下载zoolnspector客户端工具
https://link.csdn.net/?target=https%3A%2F%2Fissues.apache.org%2Fjira%2Fsecure%2Fattachment%2F12436620%2FZooInspector.zip
解压运行jar程序
配置zookeeper客户端连接
四、配置dubbo-clinet端
4.1、安装配置java环境
[root@skywalking-agent-06 ~]# apt-get update && apt-get install -y openjdk-11-jdk
[root@skywalking-agent-06 ~]# java -version
openjdk version "11.0.16" 2022-07-19
OpenJDK Runtime Environment (build 11.0.16+8-post-Ubuntu-0ubuntu120.04)
OpenJDK 64-Bit Server VM (build 11.0.16+8-post-Ubuntu-0ubuntu120.04, mixed mode, sharing)
[root@skywalking-agent-06 ~]#
4.2、上传dubbo-client.jar包
[root@skywalking-agent-06 ~]# mkdir /apps
[root@skywalking-agent-06 ~]# cd /apps/
[root@skywalking-agent-06 apps]# ll -h
total 21M drwxr-xr-x 2 root root 4.0K Oct 3 09:01 ./ drwxr-xr-x 20 root root 4.0K Oct 3 09:00 ../ -rw-r--r-- 1 root root 21M Oct 3 09:01 dubbo-client.jar
4.3、配置hosts解析
[root@skywalking-agent-06 apps]# vi /etc/hosts
[root@skywalking-agent-06 apps]# cat /etc/hosts
127.0.0.1 localhost 127.0.1.1 magedu # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters 172.16.88.191 zookeeper1 172.16.88.191 zookeeper2 172.16.88.191 zookeeper3
4.5、同步skywalking-agent安装包
[root@skywalking-agent-06 ~]# mkdir /data
[root@skywalking-agent-05 ~]# scp -r /data/skywalking-agent/ root@172.16.88.193:/data
[root@skywalking-agent-06 ~]# vim /data/skywalking-agent/config/agent.config
18 agent.namespace=${SW_AGENT_NAMESPACE:dubbo } 21 agent.service_name=${SW_AGENT_NAME:dubbo-client1} 93 collector.backend_service=${SW_AGENT_COLLECTOR_BACKEND_SERVICES:172.16.88.187:11800}
4.6、启动dubbo client端程序
[root@skywalking-agent-06 ~]# java -javaagent:/data/skywalking-agent/skywalking-agent.jar -jar /apps/dubbo-client.jar
DEBUG 2022-10-03 09:16:06:465 main AgentPackagePath : The beacon class location is jar:file:/data/skywalking-agent/skywalking-agent.jar!/org/apache/skywalking/apm/agent/core/boot/AgentPackagePath.class. INFO 2022-10-03 09:16:06:468 main SnifferConfigInitializer : Config file found in /data/skywalking-agent/config/agent.config. . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v1.3.1.RELEASE) 2022-10-03 09:16:10.868 INFO 30921 --- [ main] com.od.dubbotest.Application : Starting Application v0.0.1-SNAPSHOT on skywalking-agent-06 with PID 30921 (/apps/dubbo-client.jar started by root in /root) 2022-10-03 09:16:10.872 INFO 30921 --- [ main] com.od.dubbotest.Application : No active profile set, falling back to default profiles: default 2022-10-03 09:16:10.906 INFO 30921 --- [ main] o.s.b.f.xml.XmlBeanDefinitionReader : Loading XML bean definitions from URL [jar:file:/apps/dubbo-client.jar!/spring-config.xml] 2022-10-03 09:16:11.470 INFO 30921 --- [ main] c.a.dubbo.common.logger.LoggerFactory : using logger: com.alibaba.dubbo.common.logger.log4j.Log4jLoggerAdapter 2022-10-03 09:16:11.542 INFO 30921 --- [ main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@663ad26d: startup date [Mon Oct 03 09:16:11 UTC 2022]; root of context hierarchy 2022-10-03 09:16:12.508 INFO 30921 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Overriding bean definition for bean 'beanNameViewResolver' with a different definition: replacing [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration$WhitelabelErrorViewConfiguration; factoryMethodName=beanNameViewResolver; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/web/ErrorMvcAutoConfiguration$WhitelabelErrorViewConfiguration.class]] with [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter; factoryMethodName=beanNameViewResolver; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter.class]] WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils$1 (jar:file:/apps/dubbo-client.jar!/lib/spring-core-4.2.4.RELEASE.jar!/) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) WARNING: Please consider reporting this to the maintainers of org.springframework.cglib.core.ReflectUtils$1 WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release 2022-10-03 09:16:12.837 INFO 30921 --- [ main] o.s.b.f.c.PropertyPlaceholderConfigurer : Loading properties file from class path resource [config.properties] [7.257s][warning][exceptions] Class java.lang.Class in throws clause of method com.alibaba.dubbo.rpc.Invoker com.alibaba.dubbo.rpc.Protocol$Adpative.refer(java.lang.Class, com.alibaba.dubbo.common.URL) is not a subtype of class java.lang.Throwable [7.257s][warning][exceptions] Class com.alibaba.dubbo.rpc.Invoker in throws clause of method com.alibaba.dubbo.rpc.Exporter com.alibaba.dubbo.rpc.Protocol$Adpative.export(com.alibaba.dubbo.rpc.Invoker) is not a subtype of class java.lang.Throwable [7.281s][warning][exceptions] Class com.alibaba.dubbo.rpc.cluster.Directory in throws clause of method com.alibaba.dubbo.rpc.Invoker com.alibaba.dubbo.rpc.cluster.Cluster$Adpative.join(com.alibaba.dubbo.rpc.cluster.Directory) is not a subtype of class java.lang.Throwable [7.298s][warning][exceptions] Class com.alibaba.dubbo.rpc.Invoker in throws clause of method java.lang.Object com.alibaba.dubbo.rpc.ProxyFactory$Adpative.getProxy(com.alibaba.dubbo.rpc.Invoker) is not a subtype of class java.lang.Throwable [7.298s][warning][exceptions] Class java.lang.Object in throws clause of method com.alibaba.dubbo.rpc.Invoker com.alibaba.dubbo.rpc.ProxyFactory$Adpative.getInvoker(java.lang.Object, java.lang.Class, com.alibaba.dubbo.common.URL) is not a subtype of class java.lang.Throwable 2022-10-03 09:16:13.246 INFO 30921 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'dubbo-demo-consumer' of type [class com.alibaba.dubbo.config.ApplicationConfig] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2022-10-03 09:16:13.253 INFO 30921 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'com.alibaba.dubbo.config.RegistryConfig' of type [class com.alibaba.dubbo.config.RegistryConfig] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2022-10-03 09:16:13.254 INFO 30921 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'helloService' of type [class com.alibaba.dubbo.config.spring.ReferenceBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2022-10-03 09:16:13.300 INFO 30921 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [class org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$1039837d] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2022-10-03 09:16:13.464 WARN 30921 --- [ main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tomcatEmbeddedServletContainerFactory' defined in class path resource [org/springframework/boot/autoconfigure/web/EmbeddedServletContainerAutoConfiguration$EmbeddedTomcat.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.boot.autoconfigure.web.ServerProperties org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration.properties; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverProperties' defined in class path resource [org/springframework/boot/autoconfigure/web/ServerPropertiesAutoConfiguration.class]: Initialization of bean failed; nested exception is javax.validation.ValidationException: Unable to instantiate Configuration. 2022-10-03 09:16:13.473 ERROR 30921 --- [ main] o.s.boot.SpringApplication : Application startup failed org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tomcatEmbeddedServletContainerFactory' defined in class path resource [org/springframework/boot/autoconfigure/web/EmbeddedServletContainerAutoConfiguration$EmbeddedTomcat.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.boot.autoconfigure.web.ServerProperties org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration.properties; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverProperties' defined in class path resource [org/springframework/boot/autoconfigure/web/ServerPropertiesAutoConfiguration.class]: Initialization of bean failed; nested exception is javax.validation.ValidationException: Unable to instantiate Configuration. at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:133) ~[spring-boot-1.3.1.RELEASE.jar!/:1.3.1.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:532) ~[spring-context-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118) ~[spring-boot-1.3.1.RELEASE.jar!/:1.3.1.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:764) ~[spring-boot-1.3.1.RELEASE.jar!/:1.3.1.RELEASE] at org.springframework.boot.SpringApplication.doRun(SpringApplication.java:357) ~[spring-boot-1.3.1.RELEASE.jar!/:1.3.1.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:305) ~[spring-boot-1.3.1.RELEASE.jar!/:1.3.1.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1124) ~[spring-boot-1.3.1.RELEASE.jar!/:1.3.1.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1113) ~[spring-boot-1.3.1.RELEASE.jar!/:1.3.1.RELEASE] at com.od.dubbotest.Application.main(Application.java:13) ~[dubbo-client.jar!/:0.0.1-SNAPSHOT] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[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:566) ~[na:na] at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:53) ~[dubbo-client.jar!/:na] at java.base/java.lang.Thread.run(Thread.java:829) ~[na:na] Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tomcatEmbeddedServletContainerFactory' defined in class path resource [org/springframework/boot/autoconfigure/web/EmbeddedServletContainerAutoConfiguration$EmbeddedTomcat.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.boot.autoconfigure.web.ServerProperties org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration.properties; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverProperties' defined in class path resource [org/springframework/boot/autoconfigure/web/ServerPropertiesAutoConfiguration.class]: Initialization of bean failed; nested exception is javax.validation.ValidationException: Unable to instantiate Configuration. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.getEmbeddedServletContainerFactory(EmbeddedWebApplicationContext.java:195) ~[spring-boot-1.3.1.RELEASE.jar!/:1.3.1.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:158) ~[spring-boot-1.3.1.RELEASE.jar!/:1.3.1.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:130) ~[spring-boot-1.3.1.RELEASE.jar!/:1.3.1.RELEASE] ... 14 common frames omitted Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.boot.autoconfigure.web.ServerProperties org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration.properties; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverProperties' defined in class path resource [org/springframework/boot/autoconfigure/web/ServerPropertiesAutoConfiguration.class]: Initialization of bean failed; nested exception is javax.validation.ValidationException: Unable to instantiate Configuration. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:368) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1123) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1018) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:534) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1170) ~[spring-context-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] at org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizerBeanPostProcessor.getCustomizers(EmbeddedServletContainerCustomizerBeanPostProcessor.java:77) ~[spring-boot-1.3.1.RELEASE.jar!/:1.3.1.RELEASE] at org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizerBeanPostProcessor.postProcessBeforeInitialization(EmbeddedServletContainerCustomizerBeanPostProcessor.java:67) ~[spring-boot-1.3.1.RELEASE.jar!/:1.3.1.RELEASE] at org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizerBeanPostProcessor.postProcessBeforeInitialization(EmbeddedServletContainerCustomizerBeanPostProcessor.java:54) ~[spring-boot-1.3.1.RELEASE.jar!/:1.3.1.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] ... 22 common frames omitted Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.boot.autoconfigure.web.ServerProperties org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration.properties; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverProperties' defined in class path resource [org/springframework/boot/autoconfigure/web/ServerPropertiesAutoConfiguration.class]: Initialization of bean failed; nested exception is javax.validation.ValidationException: Unable to instantiate Configuration. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:573) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] ... 46 common frames omitted Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverProperties' defined in class path resource [org/springframework/boot/autoconfigure/web/ServerPropertiesAutoConfiguration.class]: Initialization of bean failed; nested exception is javax.validation.ValidationException: Unable to instantiate Configuration. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1192) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1116) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1014) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:545) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] ... 48 common frames omitted Caused by: javax.validation.ValidationException: Unable to instantiate Configuration. at javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:279) ~[validation-api-1.1.0.Final.jar!/:na] at org.springframework.validation.beanvalidation.LocalValidatorFactoryBean.afterPropertiesSet(LocalValidatorFactoryBean.java:223) ~[spring-context-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor$LocalValidatorFactory.run(ConfigurationPropertiesBindingPostProcessor.java:424) ~[spring-boot-1.3.1.RELEASE.jar!/:1.3.1.RELEASE] at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.getValidator(ConfigurationPropertiesBindingPostProcessor.java:361) ~[spring-boot-1.3.1.RELEASE.jar!/:1.3.1.RELEASE] at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.determineValidator(ConfigurationPropertiesBindingPostProcessor.java:344) ~[spring-boot-1.3.1.RELEASE.jar!/:1.3.1.RELEASE] at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.postProcessBeforeInitialization(ConfigurationPropertiesBindingPostProcessor.java:303) ~[spring-boot-1.3.1.RELEASE.jar!/:1.3.1.RELEASE] at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.postProcessBeforeInitialization(ConfigurationPropertiesBindingPostProcessor.java:275) ~[spring-boot-1.3.1.RELEASE.jar!/:1.3.1.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] ... 57 common frames omitted Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1 at org.hibernate.validator.internal.util.Version.getJavaRelease(Version.java:36) ~[hibernate-validator-5.2.2.Final.jar!/:5.2.2.Final] at org.hibernate.validator.internal.engine.ConfigurationImpl.<init>(ConfigurationImpl.java:120) ~[hibernate-validator-5.2.2.Final.jar!/:5.2.2.Final] at org.hibernate.validator.internal.engine.ConfigurationImpl.<init>(ConfigurationImpl.java:96) ~[hibernate-validator-5.2.2.Final.jar!/:5.2.2.Final] at org.hibernate.validator.HibernateValidator.createGenericConfiguration(HibernateValidator.java:31) ~[hibernate-validator-5.2.2.Final.jar!/:5.2.2.Final] at javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:276) ~[validation-api-1.1.0.Final.jar!/:na] ... 66 common frames omitted 2022-10-03 09:16:13.476 INFO 30921 --- [ main] .b.l.ClasspathLoggingApplicationListener : Application failed to start with classpath: [jar:file:/apps/dubbo-client.jar!/, jar:file:/apps/dubbo-client.jar!/lib/dubbo-api-0.0.1-SNAPSHOT.jar!/, jar:file:/apps/dubbo-client.jar!/lib/spring-boot-starter-web-1.3.1.RELEASE.jar!/, jar:file:/apps/dubbo-client.jar!/lib/spring-boot-starter-1.3.1.RELEASE.jar!/, jar:file:/apps/dubbo-client.jar!/lib/spring-boot-1.3.1.RELEASE.jar!/, jar:file:/apps/dubbo-client.jar!/lib/spring-boot-autoconfigure-1.3.1.RELEASE.jar!/, jar:file:/apps/dubbo-client.jar!/lib/spring-boot-starter-logging-1.3.1.RELEASE.jar!/, jar:file:/apps/dubbo-client.jar!/lib/logback-classic-1.1.3.jar!/, jar:file:/apps/dubbo-client.jar!/lib/logback-core-1.1.3.jar!/, jar:file:/apps/dubbo-client.jar!/lib/jcl-over-slf4j-1.7.13.jar!/, jar:file:/apps/dubbo-client.jar!/lib/jul-to-slf4j-1.7.13.jar!/, jar:file:/apps/dubbo-client.jar!/lib/log4j-over-slf4j-1.7.13.jar!/, jar:file:/apps/dubbo-client.jar!/lib/snakeyaml-1.16.jar!/, jar:file:/apps/dubbo-client.jar!/lib/spring-boot-starter-tomcat-1.3.1.RELEASE.jar!/, jar:file:/apps/dubbo-client.jar!/lib/tomcat-embed-core-8.0.30.jar!/, jar:file:/apps/dubbo-client.jar!/lib/tomcat-embed-el-8.0.30.jar!/, jar:file:/apps/dubbo-client.jar!/lib/tomcat-embed-logging-juli-8.0.30.jar!/, jar:file:/apps/dubbo-client.jar!/lib/tomcat-embed-websocket-8.0.30.jar!/, jar:file:/apps/dubbo-client.jar!/lib/spring-boot-starter-validation-1.3.1.RELEASE.jar!/, jar:file:/apps/dubbo-client.jar!/lib/hibernate-validator-5.2.2.Final.jar!/, jar:file:/apps/dubbo-client.jar!/lib/validation-api-1.1.0.Final.jar!/, jar:file:/apps/dubbo-client.jar!/lib/jboss-logging-3.3.0.Final.jar!/, jar:file:/apps/dubbo-client.jar!/lib/classmate-1.1.0.jar!/, jar:file:/apps/dubbo-client.jar!/lib/jackson-databind-2.6.4.jar!/, jar:file:/apps/dubbo-client.jar!/lib/jackson-annotations-2.6.4.jar!/, jar:file:/apps/dubbo-client.jar!/lib/jackson-core-2.6.4.jar!/, jar:file:/apps/dubbo-client.jar!/lib/spring-web-4.2.4.RELEASE.jar!/, jar:file:/apps/dubbo-client.jar!/lib/spring-aop-4.2.4.RELEASE.jar!/, jar:file:/apps/dubbo-client.jar!/lib/spring-context-4.2.4.RELEASE.jar!/, jar:file:/apps/dubbo-client.jar!/lib/spring-webmvc-4.2.4.RELEASE.jar!/, jar:file:/apps/dubbo-client.jar!/lib/spring-expression-4.2.4.RELEASE.jar!/, jar:file:/apps/dubbo-client.jar!/lib/hamcrest-core-1.3.jar!/, jar:file:/apps/dubbo-client.jar!/lib/spring-core-4.2.4.RELEASE.jar!/, jar:file:/apps/dubbo-client.jar!/lib/spring-tx-4.2.4.RELEASE.jar!/, jar:file:/apps/dubbo-client.jar!/lib/spring-beans-4.2.4.RELEASE.jar!/, jar:file:/apps/dubbo-client.jar!/lib/spring-jdbc-4.2.4.RELEASE.jar!/, jar:file:/apps/dubbo-client.jar!/lib/aopalliance-1.0.jar!/, jar:file:/apps/dubbo-client.jar!/lib/aspectjrt-1.6.9.jar!/, jar:file:/apps/dubbo-client.jar!/lib/aspectjweaver-1.6.9.jar!/, jar:file:/apps/dubbo-client.jar!/lib/dubbo-2.5.3.jar!/, jar:file:/apps/dubbo-client.jar!/lib/javassist-3.18.1-GA.jar!/, jar:file:/apps/dubbo-client.jar!/lib/netty-3.2.5.Final.jar!/, jar:file:/apps/dubbo-client.jar!/lib/slf4j-api-1.7.13.jar!/, jar:file:/apps/dubbo-client.jar!/lib/log4j-1.2.17.jar!/, jar:file:/apps/dubbo-client.jar!/lib/jline-0.9.94.jar!/, jar:file:/apps/dubbo-client.jar!/lib/zkclient-0.7.jar!/, jar:file:/apps/dubbo-client.jar!/lib/zookeeper-3.4.6.jar!/, jar:file:/apps/dubbo-client.jar!/lib/netty-3.7.0.Final.jar!/, jar:file:/apps/dubbo-client.jar!/lib/junit-4.11.jar!/] java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:53) at java.base/java.lang.Thread.run(Thread.java:829) Caused by: org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tomcatEmbeddedServletContainerFactory' defined in class path resource [org/springframework/boot/autoconfigure/web/EmbeddedServletContainerAutoConfiguration$EmbeddedTomcat.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.boot.autoconfigure.web.ServerProperties org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration.properties; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverProperties' defined in class path resource [org/springframework/boot/autoconfigure/web/ServerPropertiesAutoConfiguration.class]: Initialization of bean failed; nested exception is javax.validation.ValidationException: Unable to instantiate Configuration. at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:133) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:532) at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:764) at org.springframework.boot.SpringApplication.doRun(SpringApplication.java:357) at org.springframework.boot.SpringApplication.run(SpringApplication.java:305) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1124) at org.springframework.boot.SpringApplication.run(SpringApplication.java:1113) at com.od.dubbotest.Application.main(Application.java:13) ... 6 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tomcatEmbeddedServletContainerFactory' defined in class path resource [org/springframework/boot/autoconfigure/web/EmbeddedServletContainerAutoConfiguration$EmbeddedTomcat.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.boot.autoconfigure.web.ServerProperties org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration.properties; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverProperties' defined in class path resource [org/springframework/boot/autoconfigure/web/ServerPropertiesAutoConfiguration.class]: Initialization of bean failed; nested exception is javax.validation.ValidationException: Unable to instantiate Configuration. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.getEmbeddedServletContainerFactory(EmbeddedWebApplicationContext.java:195) at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:158) at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:130) ... 14 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.boot.autoconfigure.web.ServerProperties org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration.properties; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverProperties' defined in class path resource [org/springframework/boot/autoconfigure/web/ServerPropertiesAutoConfiguration.class]: Initialization of bean failed; nested exception is javax.validation.ValidationException: Unable to instantiate Configuration. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:368) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1123) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1018) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:534) at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1170) at org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizerBeanPostProcessor.getCustomizers(EmbeddedServletContainerCustomizerBeanPostProcessor.java:77) at org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizerBeanPostProcessor.postProcessBeforeInitialization(EmbeddedServletContainerCustomizerBeanPostProcessor.java:67) at org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizerBeanPostProcessor.postProcessBeforeInitialization(EmbeddedServletContainerCustomizerBeanPostProcessor.java:54) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545) ... 22 more Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.boot.autoconfigure.web.ServerProperties org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration.properties; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverProperties' defined in class path resource [org/springframework/boot/autoconfigure/web/ServerPropertiesAutoConfiguration.class]: Initialization of bean failed; nested exception is javax.validation.ValidationException: Unable to instantiate Configuration. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:573) at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331) ... 46 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverProperties' defined in class path resource [org/springframework/boot/autoconfigure/web/ServerPropertiesAutoConfiguration.class]: Initialization of bean failed; nested exception is javax.validation.ValidationException: Unable to instantiate Configuration. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1192) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1116) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1014) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:545) ... 48 more Caused by: javax.validation.ValidationException: Unable to instantiate Configuration. at javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:279) at org.springframework.validation.beanvalidation.LocalValidatorFactoryBean.afterPropertiesSet(LocalValidatorFactoryBean.java:223) at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor$LocalValidatorFactory.run(ConfigurationPropertiesBindingPostProcessor.java:424) at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.getValidator(ConfigurationPropertiesBindingPostProcessor.java:361) at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.determineValidator(ConfigurationPropertiesBindingPostProcessor.java:344) at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.postProcessBeforeInitialization(ConfigurationPropertiesBindingPostProcessor.java:303) at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.postProcessBeforeInitialization(ConfigurationPropertiesBindingPostProcessor.java:275) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:408) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545) ... 57 more Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1 at org.hibernate.validator.internal.util.Version.getJavaRelease(Version.java:36) at org.hibernate.validator.internal.engine.ConfigurationImpl.<init>(ConfigurationImpl.java:120) at org.hibernate.validator.internal.engine.ConfigurationImpl.<init>(ConfigurationImpl.java:96) at org.hibernate.validator.HibernateValidator.createGenericConfiguration(HibernateValidator.java:31) at javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:276) ... 66 more 2022-10-03 09:16:13.487 INFO 30921 --- [bboShutdownHook] com.alibaba.dubbo.config.AbstractConfig : [DUBBO] Run shutdown hook now., dubbo version: 2.5.3, current host: 127.0.0.1 2022-10-03 09:16:13.490 INFO 30921 --- [bboShutdownHook] c.a.d.r.support.AbstractRegistryFactory : [DUBBO] Close all registries [], dubbo version: 2.5.3, current host: 127.0.0.1 [root@skywalking-agent-06 ~]#
此处运行报错,解决办法,删除11版本jdk,换成8版本jdk
[root@skywalking-agent-06 ~]# apt autoremove openjdk-11-jdk
[root@skywalking-agent-06 ~]# apt remove openjdk-11-jdk
[root@skywalking-agent-06 ~]# apt install openjdk-8-jdk -y
[root@skywalking-agent-06 ~]# java -version
openjdk version "1.8.0_342"
OpenJDK Runtime Environment (build 1.8.0_342-8u342-b07-0ubuntu1~20.04-b07)
OpenJDK 64-Bit Server VM (build 25.342-b07, mixed mode)
[root@skywalking-agent-06 ~]#
[root@skywalking-agent-06 ~]# java -javaagent:/data/skywalking-agent/skywalking-agent.jar -jar /apps/dubbo-client.jar
DEBUG 2022-10-03 09:24:59:409 main AgentPackagePath : The beacon class location is jar:file:/data/skywalking-agent/skywalking-agent.jar!/org/apache/skywalking/apm/agent/core/boot/AgentPackagePath.class. INFO 2022-10-03 09:24:59:413 main SnifferConfigInitializer : Config file found in /data/skywalking-agent/config/agent.config. . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v1.3.1.RELEASE) 2022-10-03 09:25:08.683 INFO 35099 --- [ main] com.od.dubbotest.Application : Starting Application v0.0.1-SNAPSHOT on skywalking-agent-06 with PID 35099 (/apps/dubbo-client.jar started by root in /root) 2022-10-03 09:25:08.686 INFO 35099 --- [ main] com.od.dubbotest.Application : No active profile set, falling back to default profiles: default 2022-10-03 09:25:08.713 INFO 35099 --- [ main] o.s.b.f.xml.XmlBeanDefinitionReader : Loading XML bean definitions from URL [jar:file:/apps/dubbo-client.jar!/spring-config.xml] 2022-10-03 09:25:09.160 INFO 35099 --- [ main] c.a.dubbo.common.logger.LoggerFactory : using logger: com.alibaba.dubbo.common.logger.log4j.Log4jLoggerAdapter 2022-10-03 09:25:09.218 INFO 35099 --- [ main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@16d4a197: startup date [Mon Oct 03 09:25:09 UTC 2022]; root of context hierarchy 2022-10-03 09:25:10.363 INFO 35099 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Overriding bean definition for bean 'beanNameViewResolver' with a different definition: replacing [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration$WhitelabelErrorViewConfiguration; factoryMethodName=beanNameViewResolver; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/web/ErrorMvcAutoConfiguration$WhitelabelErrorViewConfiguration.class]] with [Root bean: class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter; factoryMethodName=beanNameViewResolver; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter.class]] 2022-10-03 09:25:10.863 INFO 35099 --- [ main] o.s.b.f.c.PropertyPlaceholderConfigurer : Loading properties file from class path resource [config.properties] 2022-10-03 09:25:11.191 INFO 35099 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'dubbo-demo-consumer' of type [class com.alibaba.dubbo.config.ApplicationConfig] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2022-10-03 09:25:11.198 INFO 35099 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'com.alibaba.dubbo.config.RegistryConfig' of type [class com.alibaba.dubbo.config.RegistryConfig] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2022-10-03 09:25:11.199 INFO 35099 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'helloService' of type [class com.alibaba.dubbo.config.spring.ReferenceBean] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2022-10-03 09:25:11.246 INFO 35099 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [class org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$a7a7ac44] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2022-10-03 09:25:11.948 INFO 35099 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8080 (http) 2022-10-03 09:25:11.967 INFO 35099 --- [ main] o.apache.catalina.core.StandardService : Starting service Tomcat 2022-10-03 09:25:11.968 INFO 35099 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.0.30 2022-10-03 09:25:12.130 INFO 35099 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext 2022-10-03 09:25:12.131 INFO 35099 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 2919 ms 2022-10-03 09:25:12.508 INFO 35099 --- [ost-startStop-1] o.s.b.c.e.ServletRegistrationBean : Mapping servlet: 'dispatcherServlet' to [/] 2022-10-03 09:25:12.514 INFO 35099 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/*] 2022-10-03 09:25:12.515 INFO 35099 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/*] 2022-10-03 09:25:12.515 INFO 35099 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean : Mapping filter: 'httpPutFormContentFilter' to: [/*] 2022-10-03 09:25:12.515 INFO 35099 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean : Mapping filter: 'requestContextFilter' to: [/*] 2022-10-03 09:25:12.706 INFO 35099 --- [zookeeper3:2181] org.I0Itec.zkclient.ZkEventThread : Starting ZkClient event thread. 2022-10-03 09:25:12.718 INFO 35099 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:zookeeper.version=3.4.6-1569965, built on 02/20/2014 09:09 GMT 2022-10-03 09:25:12.719 INFO 35099 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:host.name=skywalking-agent-06 2022-10-03 09:25:12.719 INFO 35099 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:java.version=1.8.0_342 2022-10-03 09:25:12.719 INFO 35099 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:java.vendor=Private Build 2022-10-03 09:25:12.719 INFO 35099 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:java.home=/usr/lib/jvm/java-8-openjdk-amd64/jre 2022-10-03 09:25:12.719 INFO 35099 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:java.class.path=/apps/dubbo-client.jar:/data/skywalking-agent/skywalking-agent.jar 2022-10-03 09:25:12.719 INFO 35099 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:java.library.path=/usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib 2022-10-03 09:25:12.719 INFO 35099 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:java.io.tmpdir=/tmp 2022-10-03 09:25:12.720 INFO 35099 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:java.compiler=<NA> 2022-10-03 09:25:12.720 INFO 35099 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:os.name=Linux 2022-10-03 09:25:12.720 INFO 35099 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:os.arch=amd64 2022-10-03 09:25:12.720 INFO 35099 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:os.version=5.4.0-122-generic 2022-10-03 09:25:12.720 INFO 35099 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:user.name=root 2022-10-03 09:25:12.720 INFO 35099 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:user.home=/root 2022-10-03 09:25:12.721 INFO 35099 --- [ main] org.apache.zookeeper.ZooKeeper : Client environment:user.dir=/root 2022-10-03 09:25:12.722 INFO 35099 --- [ main] org.apache.zookeeper.ZooKeeper : Initiating client connection, connectString=zookeeper1:2181,zookeeper2:2181,zookeeper3:2181 sessionTimeout=30000 watcher=org.I0Itec.zkclient.ZkClient@15f02249 2022-10-03 09:25:12.745 INFO 35099 --- [ main] org.I0Itec.zkclient.ZkClient : Waiting for keeper state SyncConnected 2022-10-03 09:25:12.753 INFO 35099 --- [ookeeper1:2181)] org.apache.zookeeper.ClientCnxn : Opening socket connection to server zookeeper1/172.16.88.191:2181. Will not attempt to authenticate using SASL (unknown error) 2022-10-03 09:25:12.754 INFO 35099 --- [ookeeper1:2181)] org.apache.zookeeper.ClientCnxn : Socket connection established to zookeeper1/172.16.88.191:2181, initiating session 2022-10-03 09:25:12.769 INFO 35099 --- [ookeeper1:2181)] org.apache.zookeeper.ClientCnxn : Session establishment complete on server zookeeper1/172.16.88.191:2181, sessionid = 0x10000151ef50006, negotiated timeout = 30000 2022-10-03 09:25:12.773 INFO 35099 --- [ain-EventThread] org.I0Itec.zkclient.ZkClient : zookeeper state changed (SyncConnected) 2022-10-03 09:25:12.808 INFO 35099 --- [ main] c.a.d.r.zookeeper.ZookeeperRegistry : [DUBBO] Register: consumer://172.16.88.193/com.od.dubbotest.api.HelloService?application=dubbo-demo-consumer&category=consumers&check=false&dubbo=2.5.3&interface=com.od.dubbotest.api.HelloService&methods=hello&pid=35099&side=consumer×tamp=1664789112591, dubbo version: 2.5.3, current host: 172.16.88.193 2022-10-03 09:25:12.857 INFO 35099 --- [ main] c.a.d.r.zookeeper.ZookeeperRegistry : [DUBBO] Subscribe: consumer://172.16.88.193/com.od.dubbotest.api.HelloService?application=dubbo-demo-consumer&category=providers,configurators,routers&dubbo=2.5.3&interface=com.od.dubbotest.api.HelloService&methods=hello&pid=35099&side=consumer×tamp=1664789112591, dubbo version: 2.5.3, current host: 172.16.88.193 2022-10-03 09:25:12.903 INFO 35099 --- [ main] c.a.d.r.zookeeper.ZookeeperRegistry : [DUBBO] Notify urls for subscribe url consumer://172.16.88.193/com.od.dubbotest.api.HelloService?application=dubbo-demo-consumer&category=providers,configurators,routers&dubbo=2.5.3&interface=com.od.dubbotest.api.HelloService&methods=hello&pid=35099&side=consumer×tamp=1664789112591, urls: [dubbo://172.16.88.192:20880/com.od.dubbotest.api.HelloService?anyhost=true&application=dubbo-demo-service&dubbo=2.5.3&interface=com.od.dubbotest.api.HelloService&methods=hello&pid=6036&side=provider×tamp=1664786345185, dubbo://172.16.88.192:20880/com.od.dubbotest.api.HelloService?anyhost=true&application=dubbo-demo-service&dubbo=2.5.3&interface=com.od.dubbotest.api.HelloService&methods=hello&pid=6036&side=provider×tamp=1664786346316, empty://172.16.88.193/com.od.dubbotest.api.HelloService?application=dubbo-demo-consumer&category=configurators&dubbo=2.5.3&interface=com.od.dubbotest.api.HelloService&methods=hello&pid=35099&side=consumer×tamp=1664789112591, empty://172.16.88.193/com.od.dubbotest.api.HelloService?application=dubbo-demo-consumer&category=routers&dubbo=2.5.3&interface=com.od.dubbotest.api.HelloService&methods=hello&pid=35099&side=consumer×tamp=1664789112591], dubbo version: 2.5.3, current host: 172.16.88.193 2022-10-03 09:25:13.197 INFO 35099 --- [ main] c.a.d.remoting.transport.AbstractClient : [DUBBO] Successed connect to server /172.16.88.192:20880 from NettyClient 172.16.88.193 using dubbo version 2.5.3, channel is NettyChannel [channel=[id: 0x35400039, /172.16.88.193:34372 => /172.16.88.192:20880]], dubbo version: 2.5.3, current host: 172.16.88.193 2022-10-03 09:25:13.198 INFO 35099 --- [ main] c.a.d.remoting.transport.AbstractClient : [DUBBO] Start NettyClient skywalking-agent-06/172.16.88.193 connect to the server /172.16.88.192:20880, dubbo version: 2.5.3, current host: 172.16.88.193 2022-10-03 09:25:13.418 INFO 35099 --- [ main] com.alibaba.dubbo.config.AbstractConfig : [DUBBO] Refer dubbo service com.od.dubbotest.api.HelloService from url zookeeper://zookeeper1:2181/com.alibaba.dubbo.registry.RegistryService?anyhost=true&application=dubbo-demo-consumer&check=false&dubbo=2.5.3&interface=com.od.dubbotest.api.HelloService&methods=hello&pid=35099&side=consumer×tamp=1664789112591, dubbo version: 2.5.3, current host: 172.16.88.193 2022-10-03 09:25:13.943 INFO 35099 --- [ main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@16d4a197: startup date [Mon Oct 03 09:25:09 UTC 2022]; root of context hierarchy 2022-10-03 09:25:14.064 INFO 35099 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/bj]}" onto public java.lang.String com.od.dubbotest.action.BjAction.say(java.lang.String) 2022-10-03 09:25:14.065 INFO 35099 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/hello]}" onto public java.lang.String com.od.dubbotest.action.HelloAction.say(java.lang.String) 2022-10-03 09:25:14.067 INFO 35099 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) 2022-10-03 09:25:14.067 INFO 35099 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest) 2022-10-03 09:25:14.102 INFO 35099 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] 2022-10-03 09:25:14.102 INFO 35099 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] 2022-10-03 09:25:14.153 INFO 35099 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] 2022-10-03 09:25:14.347 INFO 35099 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup 2022-10-03 09:25:14.427 INFO 35099 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8080 (http) 2022-10-03 09:25:14.433 INFO 35099 --- [ main] com.od.dubbotest.Application : Started Application in 7.181 seconds (JVM running for 15.44) Dubbo client started Dubbo 消费者端启动
4.7、验证dubbo client端页面
4.8、传参测试
五、验证skywalking服务端dubbo微服务采集
5.1、查看Global面板
5.2、查看Service面板
5.3、查看instance面板
5.4、查看拓扑图
5.5、结合前面部署的服务展示效果
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 【杭电多校比赛记录】2025“钉耙编程”中国大学生算法设计春季联赛(1)