apache / dubbo

The java implementation of Apache Dubbo. An RPC and microservice framework.
https://dubbo.apache.org/
Apache License 2.0
40.39k stars 26.41k forks source link

dubbo3.0启动报空指针 #12147

Open zcc102305803 opened 1 year ago

zcc102305803 commented 1 year ago

项目用的是springboot+dubbo3.0.8+zookeeper3.4.9 启动时候报错

2023-04-19 22:21:20.274 [restartedMain] INFO  o.a.d.r.c.m.MetadataServiceNameMapping 125 -  [DUBBO] Local cache mapping is empty, dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.280 [restartedMain] INFO  o.a.d.r.c.ServiceDiscoveryRegistry 299 -  [DUBBO] Trying to subscribe from apps boot-user-service-provider for service key itfinspread.service.zk.ZMainService, , dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.282 [restartedMain-EventThread] INFO  o.a.d.r.c.ServiceDiscoveryRegistry$DefaultMappingListener 361 -  [DUBBO] Received mapping notification from meta server, {serviceKey: itfinspread.service.zk.ZMainService, apps: [boot-user-service-provider]}, dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.282 [restartedMain-EventThread] INFO  o.a.d.r.c.ServiceDiscoveryRegistry$DefaultMappingListener 374 -  [DUBBO] Mapping of service itfinspread.service.zk.ZMainServicechanged from null to [boot-user-service-provider], dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.333 [restartedMain] INFO  o.a.d.r.c.e.l.ServiceInstancesChangedListener 311 -  [DUBBO] Received instance notification, serviceName: boot-user-service-provider, instances: 1, dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.347 [NettyClientWorker-1-2] INFO  o.a.d.r.t.netty4.NettyClientHandler 62 -  [DUBBO] The connection of /192.168.1.40:56707 -> /192.168.1.40:20881 is established., dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.347 [restartedMain] INFO  o.a.d.r.transport.AbstractClient 223 -  [DUBBO] Successfully connect to server /192.168.1.40:20881 from NettyClient 192.168.1.40 using dubbo version 3.0.8, channel is NettyChannel [channel=[id: 0x56dce12b, L:/192.168.1.40:56707 - R:/192.168.1.40:20881]], dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.348 [restartedMain] INFO  o.a.d.r.transport.AbstractClient 76 -  [DUBBO] Start NettyClient /192.168.1.40 connect to the server /192.168.1.40:20881, dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.441 [restartedMain] INFO  o.a.d.r.t.netty4.NettyChannel 201 -  [DUBBO] Close netty channel [id: 0x56dce12b, L:/192.168.1.40:56707 - R:/192.168.1.40:20881], dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.442 [restartedMain] INFO  o.a.d.r.c.e.l.ServiceInstancesChangedListener 344 -  [DUBBO] 1 unique working revisions: 1cd0a666c273a76cdd67317e0e847e52 , dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.444 [NettyClientWorker-1-2] INFO  o.a.d.r.t.netty4.NettyClientHandler 76 -  [DUBBO] The connection of /192.168.1.40:56707 -> /192.168.1.40:20881 is disconnected., dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.496 [restartedMain] INFO  o.a.d.r.c.ServiceDiscoveryRegistryDirectory 226 -  [DUBBO] Refreshed invoker size 1, dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.498 [restartedMain] ERROR o.a.d.c.deploy.DefaultModuleDeployer 391 -  [DUBBO] Dubbo Module[1.1.1] refer catch error., dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.498 [restartedMain-EventThread] INFO  o.a.d.r.c.ServiceDiscoveryRegistry 299 -  [DUBBO] Trying to subscribe from apps boot-user-service-provider for service key itfinspread.service.zk.ZMainService, , dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.500 [restartedMain-EventThread] INFO  o.a.d.r.c.ServiceDiscoveryRegistryDirectory 226 -  [DUBBO] Refreshed invoker size 1, dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.500 [restartedMain] ERROR o.a.d.c.deploy.DefaultModuleDeployer 266 -  [DUBBO] Dubbo Module[1.1.1] start failed: java.lang.NullPointerException, dubbo version: 3.0.8, current host: 192.168.1.40
java.lang.NullPointerException: null
    at org.apache.dubbo.config.utils.SimpleReferenceCache.destroyReference(SimpleReferenceCache.java:263)
    at org.apache.dubbo.config.utils.SimpleReferenceCache.destroy(SimpleReferenceCache.java:215)
    at org.apache.dubbo.config.utils.SimpleReferenceCache.destroy(SimpleReferenceCache.java:239)
    at org.apache.dubbo.config.deploy.DefaultModuleDeployer.lambda$referServices$6(DefaultModuleDeployer.java:392)
    at java.util.concurrent.ConcurrentHashMap$ValuesView.forEach(ConcurrentHashMap.java:4705)
    at org.apache.dubbo.config.deploy.DefaultModuleDeployer.referServices(DefaultModuleDeployer.java:367)
    at org.apache.dubbo.config.deploy.DefaultModuleDeployer.start(DefaultModuleDeployer.java:154)
    at org.apache.dubbo.config.spring.context.DubboDeployApplicationListener.onContextRefreshedEvent(DubboDeployApplicationListener.java:111)
    at org.apache.dubbo.config.spring.context.DubboDeployApplicationListener.onApplicationEvent(DubboDeployApplicationListener.java:100)
    at org.apache.dubbo.config.spring.context.DubboDeployApplicationListener.onApplicationEvent(DubboDeployApplicationListener.java:45)
    at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
    at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
    at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
    at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:404)
    at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:361)
    at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:898)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:554)
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143)
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:755)
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747)
    at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:402)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:312)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1247)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1236)
    at itfinspread.ComsumerApplication.main(ComsumerApplication.java:18)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)
2023-04-19 22:21:20.503 [restartedMain] INFO  o.a.d.c.m.ConfigurableMetadataServiceExporter 108 -  [DUBBO] Metadata Service Port hasn't been set will use default protocol defined in protocols., dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.503 [restartedMain] INFO  o.a.d.c.m.ConfigurableMetadataServiceExporter 131 -  [DUBBO] Using dubbo protocol to export metadata service on port -1, dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.527 [restartedMain] WARN  o.apache.dubbo.config.ServiceConfig 829 -  [DUBBO] Use random available port(20880) for protocol dubbo, dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.555 [restartedMain] INFO  o.apache.dubbo.config.ServiceConfig 658 -  [DUBBO] Export dubbo service org.apache.dubbo.metadata.MetadataService to local registry url : injvm://127.0.0.1/org.apache.dubbo.metadata.MetadataService?anyhost=true&application=boot-user-service-comsumer&background=false&bind.ip=192.168.1.40&bind.port=20880&connections=1&delay=0&deprecated=false&dubbo=2.0.2&dynamic=true&executes=100&generic=false&getAndListenInstanceMetadata.1.callback=true&getAndListenInstanceMetadata.return=true&getAndListenInstanceMetadata.sent=true&group=boot-user-service-comsumer&interface=org.apache.dubbo.metadata.MetadataService&methods=getMetadataURL,isMetadataService,getAndListenInstanceMetadata,getExportedURLs,serviceName,getSubscribedURLs,version,getExportedServiceURLs,exportInstanceMetadata,getMetadataInfo,toSortedStrings,getMetadataInfos,getServiceDefinition,getInstanceMetadataChangedListenerMap&pid=4395&qos.enable=false&register=false&release=3.0.8&revision=3.0.8&side=provider&timestamp=1681914080520&version=1.0.0, dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.556 [restartedMain] INFO  o.apache.dubbo.config.ServiceConfig 615 -  [DUBBO] Export dubbo service org.apache.dubbo.metadata.MetadataService to url dubbo://192.168.1.40:20880/org.apache.dubbo.metadata.MetadataService?anyhost=true&application=boot-user-service-comsumer&background=false&bind.ip=192.168.1.40&bind.port=20880&connections=1&delay=0&deprecated=false&dubbo=2.0.2&dynamic=true&executes=100&generic=false&getAndListenInstanceMetadata.1.callback=true&getAndListenInstanceMetadata.return=true&getAndListenInstanceMetadata.sent=true&group=boot-user-service-comsumer&interface=org.apache.dubbo.metadata.MetadataService&methods=getMetadataURL,isMetadataService,getAndListenInstanceMetadata,getExportedURLs,serviceName,getSubscribedURLs,version,getExportedServiceURLs,exportInstanceMetadata,getMetadataInfo,toSortedStrings,getMetadataInfos,getServiceDefinition,getInstanceMetadataChangedListenerMap&pid=4395&qos.enable=false&register=false&release=3.0.8&revision=3.0.8&service-name-mapping=true&side=provider&timestamp=1681914080520&version=1.0.0, dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.556 [restartedMain] INFO  o.a.d.q.protocol.QosProtocolWrapper 107 -  [DUBBO] qos won't be started because it is disabled. Please check dubbo.application.qos.enable is configured either in system property, dubbo.properties or XML/spring-boot configuration., dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.577 [restartedMain] INFO  o.a.d.r.transport.AbstractServer 69 -  [DUBBO] Start NettyServer bind /0.0.0.0:20880, export /192.168.1.40:20880, dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.581 [restartedMain] INFO  o.a.d.r.c.m.MigrationRuleListener 97 -  [DUBBO] Listening for migration rules on dataId boot-user-service-comsumer.migration, group DUBBO_SERVICEDISCOVERY_MIGRATION, dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.585 [restartedMain] INFO  o.apache.dubbo.config.ServiceConfig 615 -  [DUBBO] Export dubbo service org.apache.dubbo.metadata.MetadataService to url dubbo://192.168.1.40:20880/org.apache.dubbo.metadata.MetadataService?anyhost=true&application=boot-user-service-comsumer&background=false&bind.ip=192.168.1.40&bind.port=20880&connections=1&delay=0&deprecated=false&dubbo=2.0.2&dynamic=true&executes=100&generic=false&getAndListenInstanceMetadata.1.callback=true&getAndListenInstanceMetadata.return=true&getAndListenInstanceMetadata.sent=true&group=boot-user-service-comsumer&interface=org.apache.dubbo.metadata.MetadataService&methods=getMetadataURL,isMetadataService,getAndListenInstanceMetadata,getExportedURLs,serviceName,getSubscribedURLs,version,getExportedServiceURLs,exportInstanceMetadata,getMetadataInfo,toSortedStrings,getMetadataInfos,getServiceDefinition,getInstanceMetadataChangedListenerMap&pid=4395&qos.enable=false&register=false&release=3.0.8&revision=3.0.8&service-name-mapping=true&side=provider&timestamp=1681914080520&version=1.0.0, dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.587 [restartedMain] INFO  o.a.d.r.zookeeper.ZookeeperRegistry 356 -  [DUBBO] Subscribe: provider://192.168.1.40:20880/org.apache.dubbo.metadata.MetadataService?anyhost=true&application=boot-user-service-comsumer&background=false&bind.ip=192.168.1.40&bind.port=20880&category=configurators&check=false&connections=1&delay=0&deprecated=false&dubbo=2.0.2&dynamic=true&executes=100&generic=false&getAndListenInstanceMetadata.1.callback=true&getAndListenInstanceMetadata.return=true&getAndListenInstanceMetadata.sent=true&group=boot-user-service-comsumer&interface=org.apache.dubbo.metadata.MetadataService&methods=getMetadataURL,isMetadataService,getAndListenInstanceMetadata,getExportedURLs,serviceName,getSubscribedURLs,version,getExportedServiceURLs,exportInstanceMetadata,getMetadataInfo,toSortedStrings,getMetadataInfos,getServiceDefinition,getInstanceMetadataChangedListenerMap&pid=4395&qos.enable=false&register=false&release=3.0.8&revision=3.0.8&service-name-mapping=true&side=provider&timestamp=1681914080520&version=1.0.0, dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.589 [restartedMain] INFO  o.a.d.r.zookeeper.ZookeeperRegistry 453 -  [DUBBO] Notify urls for subscribe url provider://192.168.1.40:20880/org.apache.dubbo.metadata.MetadataService?anyhost=true&application=boot-user-service-comsumer&background=false&bind.ip=192.168.1.40&bind.port=20880&category=configurators&check=false&connections=1&delay=0&deprecated=false&dubbo=2.0.2&dynamic=true&executes=100&generic=false&getAndListenInstanceMetadata.1.callback=true&getAndListenInstanceMetadata.return=true&getAndListenInstanceMetadata.sent=true&group=boot-user-service-comsumer&interface=org.apache.dubbo.metadata.MetadataService&methods=getMetadataURL,isMetadataService,getAndListenInstanceMetadata,getExportedURLs,serviceName,getSubscribedURLs,version,getExportedServiceURLs,exportInstanceMetadata,getMetadataInfo,toSortedStrings,getMetadataInfos,getServiceDefinition,getInstanceMetadataChangedListenerMap&pid=4395&qos.enable=false&register=false&release=3.0.8&revision=3.0.8&service-name-mapping=true&side=provider&timestamp=1681914080520&version=1.0.0, url size: 1, dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.591 [restartedMain] INFO  o.apache.dubbo.config.ServiceConfig 259 -  [DUBBO] Successfully registered interface application mapping for service boot-user-service-comsumer/org.apache.dubbo.metadata.MetadataService:1.0.0, dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.591 [restartedMain] INFO  o.a.d.c.m.ConfigurableMetadataServiceExporter 69 -  [DUBBO] The MetadataService exports urls : [dubbo://192.168.1.40:20880/org.apache.dubbo.metadata.MetadataService?anyhost=true&application=boot-user-service-comsumer&background=false&bind.ip=192.168.1.40&bind.port=20880&connections=1&delay=0&deprecated=false&dubbo=2.0.2&dynamic=true&executes=100&generic=false&getAndListenInstanceMetadata.1.callback=true&getAndListenInstanceMetadata.return=true&getAndListenInstanceMetadata.sent=true&group=boot-user-service-comsumer&interface=org.apache.dubbo.metadata.MetadataService&methods=getMetadataURL,isMetadataService,getAndListenInstanceMetadata,getExportedURLs,serviceName,getSubscribedURLs,version,getExportedServiceURLs,exportInstanceMetadata,getMetadataInfo,toSortedStrings,getMetadataInfos,getServiceDefinition,getInstanceMetadataChangedListenerMap&pid=4395&qos.enable=false&register=false&release=3.0.8&revision=3.0.8&service-name-mapping=true&side=provider&timestamp=1681914080520&version=1.0.0], dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.591 [restartedMain] INFO  o.a.d.r.c.m.ServiceInstanceMetadataUtils 199 -  [DUBBO] Start registering instance address to registry., dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.597 [restartedMain] WARN  o.a.d.r.c.AbstractServiceDiscovery 92 -  [DUBBO] No valid instance found, stop registering instance address to registry., dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.598 [restartedMain] ERROR o.a.d.c.d.DefaultApplicationDeployer 1005 -  [DUBBO] Dubbo Application[1.1](boot-user-service-comsumer) found failed module: Dubbo Module[1.1.1], dubbo version: 3.0.8, current host: 192.168.1.40
java.lang.NullPointerException: null
    at org.apache.dubbo.config.utils.SimpleReferenceCache.destroyReference(SimpleReferenceCache.java:263)
    at org.apache.dubbo.config.utils.SimpleReferenceCache.destroy(SimpleReferenceCache.java:215)
    at org.apache.dubbo.config.utils.SimpleReferenceCache.destroy(SimpleReferenceCache.java:239)
    at org.apache.dubbo.config.deploy.DefaultModuleDeployer.lambda$referServices$6(DefaultModuleDeployer.java:392)
    at java.util.concurrent.ConcurrentHashMap$ValuesView.forEach(ConcurrentHashMap.java:4705)
    at org.apache.dubbo.config.deploy.DefaultModuleDeployer.referServices(DefaultModuleDeployer.java:367)
    at org.apache.dubbo.config.deploy.DefaultModuleDeployer.start(DefaultModuleDeployer.java:154)
    at org.apache.dubbo.config.spring.context.DubboDeployApplicationListener.onContextRefreshedEvent(DubboDeployApplicationListener.java:111)
    at org.apache.dubbo.config.spring.context.DubboDeployApplicationListener.onApplicationEvent(DubboDeployApplicationListener.java:100)
    at org.apache.dubbo.config.spring.context.DubboDeployApplicationListener.onApplicationEvent(DubboDeployApplicationListener.java:45)
    at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
    at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
    at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
    at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:404)
    at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:361)
    at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:898)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:554)
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143)
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:755)
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747)
    at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:402)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:312)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1247)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1236)
    at itfinspread.ComsumerApplication.main(ComsumerApplication.java:18)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)
2023-04-19 22:21:20.603 [restartedMain] INFO  o.a.coyote.http11.Http11NioProtocol 173 - Pausing ProtocolHandler ["http-nio-8081"]
2023-04-19 22:21:20.604 [restartedMain] INFO  o.a.catalina.core.StandardService 173 - Stopping service [Tomcat]
2023-04-19 22:21:20.608 [restartedMain] INFO  o.a.coyote.http11.Http11NioProtocol 173 - Stopping ProtocolHandler ["http-nio-8081"]
2023-04-19 22:21:20.613 [restartedMain] INFO  o.a.coyote.http11.Http11NioProtocol 173 - Destroying ProtocolHandler ["http-nio-8081"]
2023-04-19 22:21:20.615 [restartedMain] INFO  o.s.b.a.l.ConditionEvaluationReportLoggingListener 136 - 

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2023-04-19 22:21:20.618 [restartedMain] INFO  o.a.d.c.deploy.DefaultModuleDeployer 288 -  [DUBBO] Dubbo Module[1.1.1] is stopping., dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.619 [restartedMain] INFO  o.a.d.c.deploy.DefaultModuleDeployer 298 -  [DUBBO] Dubbo Module[1.1.1] has stopped., dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.620 [restartedMain] INFO  o.a.dubbo.rpc.model.FrameworkModel 294 -  [DUBBO] Reset global default application from Dubbo Application[1.1](boot-user-service-comsumer) to null, dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.620 [restartedMain] INFO  o.a.d.c.d.DefaultApplicationDeployer 981 -  [DUBBO] Dubbo Application[1.1](boot-user-service-comsumer) is stopping., dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.620 [restartedMain] INFO  o.a.d.r.support.RegistryManager 98 -  [DUBBO] Close all registries [zookeeper://127.0.0.1:2181/org.apache.dubbo.registry.RegistryService?application=boot-user-service-comsumer&dubbo=2.0.2&interface=org.apache.dubbo.registry.RegistryService&pid=4395&qos.enable=false&release=3.0.8, zookeeper://127.0.0.1:2181/org.apache.dubbo.registry.RegistryService?application=boot-user-service-comsumer&dubbo=2.0.2&interface=org.apache.dubbo.registry.RegistryService&pid=4395&qos.enable=false&release=3.0.8], dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.620 [restartedMain] INFO  o.a.d.r.zookeeper.ZookeeperRegistry 514 -  [DUBBO] Destroy registry:zookeeper://127.0.0.1:2181/org.apache.dubbo.registry.RegistryService?application=boot-user-service-comsumer&dubbo=2.0.2&interface=org.apache.dubbo.registry.RegistryService&pid=4395&qos.enable=false&release=3.0.8, dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.625 [restartedMain] INFO  o.a.d.r.zookeeper.ZookeeperRegistry 523 -  [DUBBO] Destroy unregister url consumer://192.168.1.40/itfinspread.service.zk.ZMainService?application=boot-user-service-comsumer&background=false&category=consumers&check=false&dubbo=2.0.2&interface=itfinspread.service.zk.ZMainService&methods=sayHello&pid=4395&qos.enable=false&release=3.0.8&side=consumer&sticky=false&timestamp=1681914079811, dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.625 [restartedMain] INFO  o.a.d.r.zookeeper.ZookeeperRegistry 371 -  [DUBBO] Unsubscribe: provider://192.168.1.40:20880/org.apache.dubbo.metadata.MetadataService?anyhost=true&application=boot-user-service-comsumer&background=false&bind.ip=192.168.1.40&bind.port=20880&category=configurators&check=false&connections=1&delay=0&deprecated=false&dubbo=2.0.2&dynamic=true&executes=100&generic=false&getAndListenInstanceMetadata.1.callback=true&getAndListenInstanceMetadata.return=true&getAndListenInstanceMetadata.sent=true&group=boot-user-service-comsumer&interface=org.apache.dubbo.metadata.MetadataService&methods=getMetadataURL,isMetadataService,getAndListenInstanceMetadata,getExportedURLs,serviceName,getSubscribedURLs,version,getExportedServiceURLs,exportInstanceMetadata,getMetadataInfo,toSortedStrings,getMetadataInfos,getServiceDefinition,getInstanceMetadataChangedListenerMap&pid=4395&qos.enable=false&register=false&release=3.0.8&revision=3.0.8&service-name-mapping=true&side=provider&timestamp=1681914080520&version=1.0.0, dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.625 [restartedMain] INFO  o.a.d.r.zookeeper.ZookeeperRegistry 539 -  [DUBBO] Destroy unsubscribe url provider://192.168.1.40:20880/org.apache.dubbo.metadata.MetadataService?anyhost=true&application=boot-user-service-comsumer&background=false&bind.ip=192.168.1.40&bind.port=20880&category=configurators&check=false&connections=1&delay=0&deprecated=false&dubbo=2.0.2&dynamic=true&executes=100&generic=false&getAndListenInstanceMetadata.1.callback=true&getAndListenInstanceMetadata.return=true&getAndListenInstanceMetadata.sent=true&group=boot-user-service-comsumer&interface=org.apache.dubbo.metadata.MetadataService&methods=getMetadataURL,isMetadataService,getAndListenInstanceMetadata,getExportedURLs,serviceName,getSubscribedURLs,version,getExportedServiceURLs,exportInstanceMetadata,getMetadataInfo,toSortedStrings,getMetadataInfos,getServiceDefinition,getInstanceMetadataChangedListenerMap&pid=4395&qos.enable=false&register=false&release=3.0.8&revision=3.0.8&service-name-mapping=true&side=provider&timestamp=1681914080520&version=1.0.0, dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.625 [restartedMain] INFO  o.a.d.r.zookeeper.ZookeeperRegistry 371 -  [DUBBO] Unsubscribe: consumer://192.168.1.40/itfinspread.service.zk.ZMainService?application=boot-user-service-comsumer&background=false&category=providers,configurators,routers&check=false&dubbo=2.0.2&interface=itfinspread.service.zk.ZMainService&methods=sayHello&pid=4395&qos.enable=false&release=3.0.8&side=consumer&sticky=false&timestamp=1681914079811, dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.626 [restartedMain] INFO  o.a.d.r.zookeeper.ZookeeperRegistry 539 -  [DUBBO] Destroy unsubscribe url consumer://192.168.1.40/itfinspread.service.zk.ZMainService?application=boot-user-service-comsumer&background=false&category=providers,configurators,routers&check=false&dubbo=2.0.2&interface=itfinspread.service.zk.ZMainService&methods=sayHello&pid=4395&qos.enable=false&release=3.0.8&side=consumer&sticky=false&timestamp=1681914079811, dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.628 [Curator-Framework-0] INFO  o.a.c.f.imps.CuratorFrameworkImpl 821 - backgroundOperationsLoop exiting
2023-04-19 22:21:20.631 [restartedMain-EventThread] INFO  org.apache.zookeeper.ClientCnxn 519 - EventThread shut down for session: 0x100006587630023
2023-04-19 22:21:20.631 [restartedMain] INFO  org.apache.zookeeper.ZooKeeper 684 - Session: 0x100006587630023 closed
2023-04-19 22:21:20.632 [restartedMain] INFO  o.a.d.r.c.e.l.ServiceInstancesChangedListener 439 -  [DUBBO] Destroying instance listener of  [boot-user-service-provider], dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.634 [restartedMain] INFO  o.a.d.r.protocol.dubbo.DubboProtocol 684 -  [DUBBO] Destroying protocol [DubboProtocol] ..., dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.634 [restartedMain] INFO  o.a.d.r.protocol.dubbo.DubboProtocol 697 -  [DUBBO] Closing dubbo server: /192.168.1.40:20880, dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:20.635 [restartedMain] INFO  o.a.d.r.transport.AbstractServer 116 -  [DUBBO] Close NettyServer bind /0.0.0.0:20880, export /192.168.1.40:20880, dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:22.849 [restartedMain] INFO  o.a.d.r.protocol.dubbo.DubboProtocol 739 -  [DUBBO] Close dubbo connect: /192.168.1.40:56705-->/192.168.1.40:20881, dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:22.850 [restartedMain] INFO  o.a.d.r.protocol.dubbo.DubboProtocol 99 -  [DUBBO] Destroy reference: DefaultServiceInstance{serviceName='boot-user-service-provider', host='192.168.1.40', port=20881, enabled=true, healthy=true, metadata={dubbo.endpoints=[{"port":20881,"protocol":"dubbo"}], dubbo.metadata-service.url-params={"connections":"1","version":"1.0.0","dubbo":"2.0.2","release":"3.0.8","side":"provider","port":"20881","protocol":"dubbo"}, dubbo.metadata.revision=1cd0a666c273a76cdd67317e0e847e52, dubbo.metadata.storage-type=local, timestamp=1681913212663}}, service{name='itfinspread.service.zk.ZMainService',group='null',version='null',protocol='dubbo',params={side=provider, application=boot-user-service-provider, release=3.0.8, methods=sayHello, background=false, deprecated=false, dubbo=2.0.2, dynamic=true, interface=itfinspread.service.zk.ZMainService, service-name-mapping=true, generic=false, anyhost=true},}, dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:22.850 [restartedMain] INFO  o.a.d.r.t.netty4.NettyChannel 201 -  [DUBBO] Close netty channel [id: 0xbef45355, L:/192.168.1.40:56705 - R:/192.168.1.40:20881], dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:22.851 [NettyClientWorker-1-1] INFO  o.a.d.r.t.netty4.NettyClientHandler 76 -  [DUBBO] The connection of /192.168.1.40:56705 -> /192.168.1.40:20881 is disconnected., dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:22.852 [restartedMain] INFO  o.a.d.r.protocol.dubbo.DubboProtocol 99 -  [DUBBO] Destroy reference: dubbo://192.168.1.40:20881/itfinspread.service.zk.ZMainService?anyhost=true&application=boot-user-service-provider&background=false&category=providers,configurators,routers&check=false&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&interface=itfinspread.service.zk.ZMainService&methods=sayHello&pid=4395&qos.enable=false&release=3.0.8&service-name-mapping=true&side=provider&sticky=false, dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:22.852 [restartedMain] WARN  o.a.d.r.p.d.ReferenceCountExchangeClient 202 -  [DUBBO] 192.168.1.40:20881 itfinspread.service.zk.ZMainService safe guard client , should not be called ,must have a bug., dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:22.853 [restartedMain] INFO  o.a.d.r.protocol.dubbo.DubboProtocol 113 -  [DUBBO] Unexport service: dubbo://192.168.1.40:20880/org.apache.dubbo.metadata.MetadataService?anyhost=true&application=boot-user-service-comsumer&background=false&bind.ip=192.168.1.40&bind.port=20880&connections=1&delay=0&deprecated=false&dubbo=2.0.2&dynamic=true&executes=100&generic=false&getAndListenInstanceMetadata.1.callback=true&getAndListenInstanceMetadata.return=true&getAndListenInstanceMetadata.sent=true&group=boot-user-service-comsumer&interface=org.apache.dubbo.metadata.MetadataService&methods=getMetadataURL,isMetadataService,getAndListenInstanceMetadata,getExportedURLs,serviceName,getSubscribedURLs,version,getExportedServiceURLs,exportInstanceMetadata,getMetadataInfo,toSortedStrings,getMetadataInfos,getServiceDefinition,getInstanceMetadataChangedListenerMap&pid=4395&qos.enable=false&register=false&release=3.0.8&revision=3.0.8&service-name-mapping=true&side=provider&timestamp=1681914080520&version=1.0.0, dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:22.853 [restartedMain] INFO  o.a.d.r.protocol.injvm.InjvmProtocol 113 -  [DUBBO] Unexport service: injvm://127.0.0.1/org.apache.dubbo.metadata.MetadataService?anyhost=true&application=boot-user-service-comsumer&background=false&bind.ip=192.168.1.40&bind.port=20880&connections=1&delay=0&deprecated=false&dubbo=2.0.2&dynamic=true&executes=100&generic=false&getAndListenInstanceMetadata.1.callback=true&getAndListenInstanceMetadata.return=true&getAndListenInstanceMetadata.sent=true&group=boot-user-service-comsumer&interface=org.apache.dubbo.metadata.MetadataService&methods=getMetadataURL,isMetadataService,getAndListenInstanceMetadata,getExportedURLs,serviceName,getSubscribedURLs,version,getExportedServiceURLs,exportInstanceMetadata,getMetadataInfo,toSortedStrings,getMetadataInfos,getServiceDefinition,getInstanceMetadataChangedListenerMap&pid=4395&qos.enable=false&register=false&release=3.0.8&revision=3.0.8&side=provider&timestamp=1681914080520&version=1.0.0, dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:22.853 [restartedMain] WARN  o.a.d.r.support.RegistryManager 127 -  [DUBBO] All registry instances have been destroyed, failed to fetch any instance. Usually, this means no need to try to do unnecessary redundant resource clearance, all registries has been taken care of., dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:22.854 [restartedMain] INFO  org.apache.dubbo.qos.server.Server 119 -  [DUBBO] qos-server stopped., dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:22.855 [restartedMain] WARN  o.a.d.r.support.RegistryManager 127 -  [DUBBO] All registry instances have been destroyed, failed to fetch any instance. Usually, this means no need to try to do unnecessary redundant resource clearance, all registries has been taken care of., dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:22.855 [restartedMain] INFO  org.apache.dubbo.qos.server.Server 119 -  [DUBBO] qos-server stopped., dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:22.855 [restartedMain] INFO  o.a.d.c.deploy.DefaultModuleDeployer 288 -  [DUBBO] Dubbo Module[1.1.0] is stopping., dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:22.856 [restartedMain] WARN  o.a.d.r.support.RegistryManager 127 -  [DUBBO] All registry instances have been destroyed, failed to fetch any instance. Usually, this means no need to try to do unnecessary redundant resource clearance, all registries has been taken care of., dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:22.856 [restartedMain] WARN  o.a.d.r.support.RegistryManager 127 -  [DUBBO] All registry instances have been destroyed, failed to fetch any instance. Usually, this means no need to try to do unnecessary redundant resource clearance, all registries has been taken care of., dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:22.857 [restartedMain] INFO  o.a.d.c.deploy.DefaultModuleDeployer 298 -  [DUBBO] Dubbo Module[1.1.0] has stopped., dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:22.857 [restartedMain] INFO  o.a.d.c.t.m.DefaultExecutorRepository 283 -  [DUBBO] destroying application executor repository .., dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:22.858 [restartedMain] INFO  o.a.d.c.d.DefaultApplicationDeployer 995 -  [DUBBO] Dubbo Application[1.1](boot-user-service-comsumer) has stopped., dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:22.858 [Curator-Framework-0] INFO  o.a.c.f.imps.CuratorFrameworkImpl 821 - backgroundOperationsLoop exiting
2023-04-19 22:21:22.865 [restartedMain-EventThread] INFO  org.apache.zookeeper.ClientCnxn 519 - EventThread shut down for session: 0x100006587630022
2023-04-19 22:21:22.865 [restartedMain] INFO  org.apache.zookeeper.ZooKeeper 684 - Session: 0x100006587630022 closed
2023-04-19 22:21:22.867 [restartedMain] INFO  o.a.dubbo.rpc.model.FrameworkModel 108 -  [DUBBO] Destroying default framework model: Dubbo Framework[1], dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:22.868 [restartedMain] INFO  o.a.dubbo.rpc.model.FrameworkModel 113 -  [DUBBO] Dubbo Framework[1] is destroying ..., dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:22.868 [restartedMain] INFO  o.a.d.c.d.DefaultApplicationDeployer 981 -  [DUBBO] Dubbo Application[1.0](DUBBO_INTERNAL_APPLICATION) is stopping., dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:22.868 [restartedMain] INFO  o.a.d.r.support.RegistryManager 98 -  [DUBBO] Close all registries [], dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:22.868 [restartedMain] INFO  o.a.d.c.deploy.DefaultModuleDeployer 288 -  [DUBBO] Dubbo Module[1.0.0] is stopping., dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:22.869 [restartedMain] INFO  o.a.d.c.deploy.DefaultModuleDeployer 298 -  [DUBBO] Dubbo Module[1.0.0] has stopped., dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:22.869 [restartedMain] INFO  o.a.d.c.t.m.DefaultExecutorRepository 283 -  [DUBBO] destroying application executor repository .., dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:22.869 [restartedMain] INFO  o.a.d.c.d.DefaultApplicationDeployer 995 -  [DUBBO] Dubbo Application[1.0](DUBBO_INTERNAL_APPLICATION) has stopped., dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:22.869 [restartedMain] INFO  o.a.dubbo.rpc.model.FrameworkModel 129 -  [DUBBO] Dubbo Framework[1] is destroyed, dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:22.870 [restartedMain] INFO  o.a.dubbo.rpc.model.FrameworkModel 313 -  [DUBBO] Reset global default framework from Dubbo Framework[1] to null, dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:22.870 [restartedMain] INFO  o.a.d.c.r.GlobalResourcesRepository 92 -  [DUBBO] Destroying global resources ..., dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:22.873 [restartedMain] INFO  o.a.d.c.r.GlobalResourcesRepository 120 -  [DUBBO] Dubbo is completely destroyed, dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:22.873 [restartedMain] INFO  o.a.d.c.t.m.FrameworkExecutorRepository 175 -  [DUBBO] destroying framework executor repository .., dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:22.874 [restartedMain] INFO  o.a.d.c.s.c.DubboSpringInitializer 78 -  [DUBBO] Unbind Dubbo Module[1.1.1] from spring container: org.springframework.beans.factory.support.DefaultListableBeanFactory@288cae6a, dubbo version: 3.0.8, current host: 192.168.1.40
2023-04-19 22:21:22.878 [restartedMain] INFO  c.alibaba.druid.pool.DruidDataSource 2138 - {dataSource-1} closing ...
2023-04-19 22:21:23.213 [restartedMain] INFO  c.alibaba.druid.pool.DruidDataSource 2211 - {dataSource-1} closed
2023-04-19 22:21:23.213 [restartedMain] INFO  o.s.s.c.ThreadPoolTaskExecutor 218 - Shutting down ExecutorService 'applicationTaskExecutor'
2023-04-19 22:21:23.234 [restartedMain] ERROR o.s.boot.SpringApplication 834 - Application run failed
java.lang.NullPointerException: null
    at org.apache.dubbo.config.utils.SimpleReferenceCache.destroyReference(SimpleReferenceCache.java:263)
    at org.apache.dubbo.config.utils.SimpleReferenceCache.destroy(SimpleReferenceCache.java:215)
    at org.apache.dubbo.config.utils.SimpleReferenceCache.destroy(SimpleReferenceCache.java:239)
    at org.apache.dubbo.config.deploy.DefaultModuleDeployer.lambda$referServices$6(DefaultModuleDeployer.java:392)
    at java.util.concurrent.ConcurrentHashMap$ValuesView.forEach(ConcurrentHashMap.java:4705)
    at org.apache.dubbo.config.deploy.DefaultModuleDeployer.referServices(DefaultModuleDeployer.java:367)
    at org.apache.dubbo.config.deploy.DefaultModuleDeployer.start(DefaultModuleDeployer.java:154)
    at org.apache.dubbo.config.spring.context.DubboDeployApplicationListener.onContextRefreshedEvent(DubboDeployApplicationListener.java:111)
    at org.apache.dubbo.config.spring.context.DubboDeployApplicationListener.onApplicationEvent(DubboDeployApplicationListener.java:100)
    at org.apache.dubbo.config.spring.context.DubboDeployApplicationListener.onApplicationEvent(DubboDeployApplicationListener.java:45)
    at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
    at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
    at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
    at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:404)
    at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:361)
    at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:898)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:554)
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143)
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:755)
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747)
    at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:402)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:312)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1247)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1236)
    at itfinspread.ComsumerApplication.main(ComsumerApplication.java:18)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)

Process finished with exit code 1

目前还不知道是什么问题,请那位大佬能进行解答,这个引入的全部是阿帕奇的,没有引入阿里的 这个空指针只有在 加入注解 @DubboReference才会出现

一下是项目用到的jar包 WX20230419-224656@2x WX20230419-224757@2x WX20230419-224806@2x 以下是配置文件 WX20230419-224959@2x

AlbumenJ commented 1 year ago

Please check the log before. May related with Model reference failed