chenglutao opened a new issue, #11852:
URL: https://github.com/apache/dubbo/issues/11852
dubbo version: 3.1.7
nacos version:2.2.0
yml
`
spring:
application:
name: rpc
server:
port: 9001
dubbo:
application:
name: rpc
qos-enable: true
qos-port: 44444
qos-accept-foreign-ip: false
protocol:
name: dubbo
port: -1
registry:
address: nacos://localhost:8848?username=nacos&password=nacos
config-center:
address: nacos://localhost:8848?username=nacos&password=nacos
metadata-report:
address: nacos://localhost:8848?username=nacos&password=nacos
`
`
spring:
application:
name: consumer
server:
port: 9000
dubbo:
application:
name: consumer
qos-accept-foreign-ip: false
qos-enable: true
qos-port: 33333
scan:
base-packages: com.xxx
protocol:
name: dubbo
port: -1
registry:
address: nacos://localhost:8848?username=nacos&password=nacos
config-center:
address: nacos://localhost:8848?username=nacos&password=nacos
metadata-report:
address: nacos://localhost:8848?username=nacos&password=nacos
`
2023-03-16 16:23:14.063 ERROR 15300 --- [ncesChangeEvent]
.d.r.c.ServiceDiscoveryRegistryDirectory : [DUBBO] Failed to refer invoker for
interface:interface
com.modules.service.DemoService,url:(DefaultServiceInstance{serviceName='rpc',
host='172.0.4.184', port=9001, enabled=true, healthy=true,
metadata={preserved.register.source=SPRING_CLOUD}},
service{name='com.modules.service.DemoService',group='null',version='null',protocol='null',port='9001',params={},})Extension
instance (name: rest, class: interface org.apache.dubbo.rpc.Protocol) couldn't
be instantiated: null, dubbo version: 3.1.7, current host: 172.0.4.184, error
code: 4-3. This may be caused by , go to https://dubbo.apache.org/faq/4/3 to
find instructions.
java.lang.IllegalStateException: Extension instance (name: rest, class:
interface org.apache.dubbo.rpc.Protocol) couldn't be instantiated: null
at
org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:806)
~[dubbo-3.1.7.jar:3.1.7]
at
org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:561)
~[dubbo-3.1.7.jar:3.1.7]
at
org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:535)
~[dubbo-3.1.7.jar:3.1.7]
at org.apache.dubbo.rpc.Protocol$Adaptive.refer(Protocol$Adaptive.java)
~[dubbo-3.1.7.jar:3.1.7]
at
org.apache.dubbo.registry.client.ServiceDiscoveryRegistryDirectory.toInvokers(ServiceDiscoveryRegistryDirectory.java:352)
[dubbo-3.1.7.jar:3.1.7]
at
org.apache.dubbo.registry.client.ServiceDiscoveryRegistryDirectory.refreshInvoker(ServiceDiscoveryRegistryDirectory.java:254)
[dubbo-3.1.7.jar:3.1.7]
at
org.apache.dubbo.registry.client.ServiceDiscoveryRegistryDirectory.refreshOverrideAndInvoker(ServiceDiscoveryRegistryDirectory.java:182)
[dubbo-3.1.7.jar:3.1.7]
at
org.apache.dubbo.registry.client.ServiceDiscoveryRegistryDirectory.notify(ServiceDiscoveryRegistryDirectory.java:176)
[dubbo-3.1.7.jar:3.1.7]
at
org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener.lambda$notifyAddressChanged$9(ServiceInstancesChangedListener.java:417)
[dubbo-3.1.7.jar:3.1.7]
at
java.util.concurrent.ConcurrentHashMap.forEach(ConcurrentHashMap.java:1597)
~[na:1.8.0_331]
at
org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener.notifyAddressChanged(ServiceInstancesChangedListener.java:410)
[dubbo-3.1.7.jar:3.1.7]
at
org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener.doOnEvent(ServiceInstancesChangedListener.java:217)
[dubbo-3.1.7.jar:3.1.7]
at
org.apache.dubbo.registry.client.event.listener.ServiceInstancesChangedListener.onEvent(ServiceInstancesChangedListener.java:113)
[dubbo-3.1.7.jar:3.1.7]
at
org.apache.dubbo.registry.nacos.NacosServiceDiscovery.handleEvent(NacosServiceDiscovery.java:231)
~[dubbo-3.1.7.jar:3.1.7]
at
org.apache.dubbo.registry.nacos.NacosServiceDiscovery.access$000(NacosServiceDiscovery.java:64)
~[dubbo-3.1.7.jar:3.1.7]
at
org.apache.dubbo.registry.nacos.NacosServiceDiscovery$NacosEventListener.onEvent(NacosServiceDiscovery.java:202)
~[dubbo-3.1.7.jar:3.1.7]
at
com.alibaba.nacos.client.naming.event.InstancesChangeNotifier.onEvent(InstancesChangeNotifier.java:126)
~[nacos-client-2.2.0.jar:na]
at
com.alibaba.nacos.client.naming.event.InstancesChangeNotifier.onEvent(InstancesChangeNotifier.java:42)
~[nacos-client-2.2.0.jar:na]
at
com.alibaba.nacos.common.notify.DefaultPublisher.lambda$notifySubscriber$0(DefaultPublisher.java:199)
~[nacos-client-2.2.0.jar:na]
at
com.alibaba.nacos.common.notify.DefaultPublisher.notifySubscriber(DefaultPublisher.java:206)
~[nacos-client-2.2.0.jar:na]
at
com.alibaba.nacos.common.notify.DefaultPublisher.receiveEvent(DefaultPublisher.java:190)
~[nacos-client-2.2.0.jar:na]
at
com.alibaba.nacos.common.notify.DefaultPublisher.openEventHandler(DefaultPublisher.java:112)
~[nacos-client-2.2.0.jar:na]
at
com.alibaba.nacos.common.notify.DefaultPublisher.run(DefaultPublisher.java:95)
~[nacos-client-2.2.0.jar:na]
Caused by: java.lang.reflect.InvocationTargetException: null
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method) ~[na:1.8.0_331]
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
~[na:1.8.0_331]
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
~[na:1.8.0_331]
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
~[na:1.8.0_331]
at
org.apache.dubbo.common.beans.support.InstantiationStrategy.instantiate(InstantiationStrategy.java:94)
~[dubbo-3.1.7.jar:3.1.7]
at
org.apache.dubbo.common.extension.ExtensionLoader.createExtensionInstance(ExtensionLoader.java:811)
~[dubbo-3.1.7.jar:3.1.7]
at
org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:772)
~[dubbo-3.1.7.jar:3.1.7]
... 22 common frames omitted
Caused by: java.lang.NoClassDefFoundError: javax/ws/rs/ProcessingException
at
org.apache.dubbo.rpc.protocol.rest.RestProtocol.<init>(RestProtocol.java:80)
~[dubbo-3.1.7.jar:3.1.7]
... 29 common frames omitted
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]