You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/03/26 14:56:26 UTC

[GitHub] [dubbo-spi-extensions] bruce121381 opened a new issue #22: while springcloudAlibaba comine to DubboApiDocs has some problem

bruce121381 opened a new issue #22:
URL: https://github.com/apache/dubbo-spi-extensions/issues/22


   - [x] I have searched the [issues](https://github.com/apache/dubbo-spi-extensions/issues) of this repository and believe that this is not a duplicate.
   - [x] I have checked the [REAMDE](https://github.com/apache/dubbo-admin/blob/dubbo-spi-extensions/README.md) of this repository and believe that this is not a duplicate.
   
   ### Environment
   
   * Dubbo version: 2.7.8
   * Operating System version: macOS Catalina
   * Java version: jdk8
   * Module name: my-demo
   
   ### Steps to reproduce this issue
   
   1. add SpringCloudAlibaba
   2. add SpringCloudAlibaba Dubbo Stater (gav: G: com.alibaba.cloud A: spring-cloud-starter-dubbo V: 2.2.2.RELEASE)
   3. add DubboAPiDocs like README says
   
   Pls. provide [GitHub address] to reproduce this issue.
   
   ### Expected Result
   
   What do you expected from the above steps?
   In Application Start, DubboApiDocs will expose Annotation for DubboApiDubboServer
   
   ### Actual Result
   
   What actually happens?
   Its Blocked in Application Start. I hope in DubboApiDocsServer see my DubboApi
   
   If there is an exception, please attach the exception trace:
   
   ```
   ***************************
   APPLICATION FAILED TO START
   ***************************
   
   Description:
   
   Field registry in org.apache.dubbo.apidocs.core.DubboApiDocsAnnotationScanner required a single bean, but 2 were found:
   	- defaultSpringCloudRegistryConfig: defined by method 'defaultSpringCloudRegistryConfig' in class path resource [com/alibaba/cloud/dubbo/autoconfigure/DubboServiceRegistrationAutoConfiguration.class]
   	- org.apache.dubbo.config.RegistryConfig#0: defined in null
   
   
   Action:
   
   Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans, or using @Qualifier to identify the bean that should be consumed
   ```
   


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-spi-extensions] bruce121381 commented on issue #22: while springcloudAlibaba comine to DubboApiDocs has some problem

Posted by GitBox <gi...@apache.org>.
bruce121381 commented on issue #22:
URL: https://github.com/apache/dubbo-spi-extensions/issues/22#issuecomment-809113297


   when i use dubbo-spring-boot-stater of properties dubbo.registry.address=nacos://xxx.xxx.xxx.xxx:8848 with version 2.7.8, or use spring-cloud-starter-dubbo of properties dubbo.registry.address=spring-cloud://localhost with applicationLevel, it will seems like this:   
   ```
   2021-03-29 14:33:38.183  INFO 15831 --- [:20880-thread-2] o.a.d.r.p.dubbo.CallbackServiceCodec     :  [DUBBO] Not found exported service: org.apache.dubbo.apidocs.core.providers.IDubboDocProvider:20880 in [dubbo/org.apache.dubbo.apidocs.core.providers.IDubboDocProvider:20880, dubbo/com.yy.e.teachee.seata.rm.demo.api.SeataRmStorageHelloManager:20880, dubbo/com.yy.e.teachee.seata.rm.demo.api.SeataRmStorageManager:20880], may be version or group mismatch , channel: consumer: /172.18.88.103:64522 --> provider: /172.18.88.103:20880, message:RpcInvocation [methodName=$invoke, parameterTypes=[class java.lang.String, class [Ljava.lang.String;, class [Ljava.lang.Object;], arguments=[], attachments={input=387, path=org.apache.dubbo.apidocs.core.providers.IDubboDocProvider, remote.application=dubbo-admin-api-docs, dubbo=2.0.2, interface=org.apache.dubbo.apidocs.core.providers.IDubboDocProvider, version=0.0.0, generic=true}], dubbo version: 2.7.8, current host: 172.18.88.103
   
   org.apache.dubbo.remoting.RemotingException: Not found exported service: org.apache.dubbo.apidocs.core.providers.IDubboDocProvider:20880 in [dubbo/org.apache.dubbo.apidocs.core.providers.IDubboDocProvider:20880, dubbo/com.yy.e.teachee.seata.rm.demo.api.SeataRmStorageHelloManager:20880, dubbo/com.yy.e.teachee.seata.rm.demo.api.SeataRmStorageManager:20880], may be version or group mismatch , channel: consumer: /172.18.88.103:64522 --> provider: /172.18.88.103:20880, message:RpcInvocation [methodName=$invoke, parameterTypes=[class java.lang.String, class [Ljava.lang.String;, class [Ljava.lang.Object;], arguments=[], attachments={input=387, path=org.apache.dubbo.apidocs.core.providers.IDubboDocProvider, remote.application=dubbo-admin-api-docs, dubbo=2.0.2, interface=org.apache.dubbo.apidocs.core.providers.IDubboDocProvider, version=0.0.0, generic=true}]
   	at org.apache.dubbo.rpc.protocol.dubbo.DubboProtocol.getInvoker(DubboProtocol.java:265) ~[dubbo-2.7.8.jar:2.7.8]
   	at org.apache.dubbo.rpc.protocol.dubbo.CallbackServiceCodec.decodeInvocationArgument(CallbackServiceCodec.java:292) ~[dubbo-2.7.8.jar:2.7.8]
   	at org.apache.dubbo.rpc.protocol.dubbo.DecodeableRpcInvocation.decode(DecodeableRpcInvocation.java:165) [dubbo-2.7.8.jar:2.7.8]
   	at org.apache.dubbo.rpc.protocol.dubbo.DecodeableRpcInvocation.decode(DecodeableRpcInvocation.java:80) [dubbo-2.7.8.jar:2.7.8]
   	at org.apache.dubbo.remoting.transport.DecodeHandler.decode(DecodeHandler.java:57) [dubbo-2.7.8.jar:2.7.8]
   	at org.apache.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:44) [dubbo-2.7.8.jar:2.7.8]
   	at org.apache.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:57) [dubbo-2.7.8.jar:2.7.8]
   	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_271]
   	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_271]
   	at java.lang.Thread.run(Thread.java:748) [na:1.8.0_271]
   ```
   in console log, it seems like retry 3 times.
   [my demo githubAddress](https://github.com/seata-demo/seata-rm-storage.git)


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-spi-extensions] bruce121381 commented on issue #22: while springcloudAlibaba comine to DubboApiDocs has some problem

Posted by GitBox <gi...@apache.org>.
bruce121381 commented on issue #22:
URL: https://github.com/apache/dubbo-spi-extensions/issues/22#issuecomment-808287406


   by the way, this problem both in DubboApiDocs 2.7.8.1 and 2.7.8.1


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-spi-extensions] KeRan213539 closed issue #22: while springcloudAlibaba combine to DubboApiDocs has some problem

Posted by GitBox <gi...@apache.org>.
KeRan213539 closed issue #22:
URL: https://github.com/apache/dubbo-spi-extensions/issues/22


   


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-spi-extensions] bruce121381 edited a comment on issue #22: while springcloudAlibaba comine to DubboApiDocs has some problem

Posted by GitBox <gi...@apache.org>.
bruce121381 edited a comment on issue #22:
URL: https://github.com/apache/dubbo-spi-extensions/issues/22#issuecomment-809113297


   when i use **dubbo-spring-boot-state**r of properties **dubbo.registry.address=nacos://xxx.xxx.xxx.xxx:8848** with version 2.7.8, or use **spring-cloud-starter-dubbo** of properties **dubbo.registry.address=spring-cloud://localhost** with applicationLevel, it will seems like this:   
   ```
   2021-03-29 14:33:38.183  INFO 15831 --- [:20880-thread-2] o.a.d.r.p.dubbo.CallbackServiceCodec     :  [DUBBO] Not found exported service: org.apache.dubbo.apidocs.core.providers.IDubboDocProvider:20880 in [dubbo/org.apache.dubbo.apidocs.core.providers.IDubboDocProvider:20880, dubbo/com.yy.e.teachee.seata.rm.demo.api.SeataRmStorageHelloManager:20880, dubbo/com.yy.e.teachee.seata.rm.demo.api.SeataRmStorageManager:20880], may be version or group mismatch , channel: consumer: /172.18.88.103:64522 --> provider: /172.18.88.103:20880, message:RpcInvocation [methodName=$invoke, parameterTypes=[class java.lang.String, class [Ljava.lang.String;, class [Ljava.lang.Object;], arguments=[], attachments={input=387, path=org.apache.dubbo.apidocs.core.providers.IDubboDocProvider, remote.application=dubbo-admin-api-docs, dubbo=2.0.2, interface=org.apache.dubbo.apidocs.core.providers.IDubboDocProvider, version=0.0.0, generic=true}], dubbo version: 2.7.8, current host: 172.18.88.103
   
   org.apache.dubbo.remoting.RemotingException: Not found exported service: org.apache.dubbo.apidocs.core.providers.IDubboDocProvider:20880 in [dubbo/org.apache.dubbo.apidocs.core.providers.IDubboDocProvider:20880, dubbo/com.yy.e.teachee.seata.rm.demo.api.SeataRmStorageHelloManager:20880, dubbo/com.yy.e.teachee.seata.rm.demo.api.SeataRmStorageManager:20880], may be version or group mismatch , channel: consumer: /172.18.88.103:64522 --> provider: /172.18.88.103:20880, message:RpcInvocation [methodName=$invoke, parameterTypes=[class java.lang.String, class [Ljava.lang.String;, class [Ljava.lang.Object;], arguments=[], attachments={input=387, path=org.apache.dubbo.apidocs.core.providers.IDubboDocProvider, remote.application=dubbo-admin-api-docs, dubbo=2.0.2, interface=org.apache.dubbo.apidocs.core.providers.IDubboDocProvider, version=0.0.0, generic=true}]
   	at org.apache.dubbo.rpc.protocol.dubbo.DubboProtocol.getInvoker(DubboProtocol.java:265) ~[dubbo-2.7.8.jar:2.7.8]
   	at org.apache.dubbo.rpc.protocol.dubbo.CallbackServiceCodec.decodeInvocationArgument(CallbackServiceCodec.java:292) ~[dubbo-2.7.8.jar:2.7.8]
   	at org.apache.dubbo.rpc.protocol.dubbo.DecodeableRpcInvocation.decode(DecodeableRpcInvocation.java:165) [dubbo-2.7.8.jar:2.7.8]
   	at org.apache.dubbo.rpc.protocol.dubbo.DecodeableRpcInvocation.decode(DecodeableRpcInvocation.java:80) [dubbo-2.7.8.jar:2.7.8]
   	at org.apache.dubbo.remoting.transport.DecodeHandler.decode(DecodeHandler.java:57) [dubbo-2.7.8.jar:2.7.8]
   	at org.apache.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:44) [dubbo-2.7.8.jar:2.7.8]
   	at org.apache.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:57) [dubbo-2.7.8.jar:2.7.8]
   	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_271]
   	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_271]
   	at java.lang.Thread.run(Thread.java:748) [na:1.8.0_271]
   ```
   in console log, it seems like retry 3 times.
   [my demo githubAddress](https://github.com/seata-demo/seata-rm-storage.git)


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-spi-extensions] KeRan213539 commented on issue #22: while springcloudAlibaba comine to DubboApiDocs has some problem

Posted by GitBox <gi...@apache.org>.
KeRan213539 commented on issue #22:
URL: https://github.com/apache/dubbo-spi-extensions/issues/22#issuecomment-809027898


   At present, when using spring-cloud-starter-dubbo, "dubbo.registry.address" is not configured as "spring-cloud://localhost" and registry are specified separately, there will be two instances of "org.apache.dubbo.config.RegistryConfig" in the spring container, which will cause this problem.
   But using "spring-cloud://localhost" will become application level registration. If you do not want to use application level registration and continue to use interface level registration, it is recommended to use "dubbo-spring-boot-starter" instead of "spring-cloud-starter-dubbo".


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-spi-extensions] KeRan213539 commented on issue #22: while springcloudAlibaba combine to DubboApiDocs has some problem

Posted by GitBox <gi...@apache.org>.
KeRan213539 commented on issue #22:
URL: https://github.com/apache/dubbo-spi-extensions/issues/22#issuecomment-809239793


   I have found the cause of the problem in your demo, which will be fixed in the next version.
   The current interim solution is not to pass  `dubbo.provider.group`  to specify a global group, use the group attribute in the @ DubboService annotation


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org