Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.7.6

Operating System version: mac 10.14.6

Java version: 1.8

Steps to reproduce this issue

[DUBBO] Notify urls for subscribe url provider://192.168.0.107:20881/com.alibaba.cloud.dubbo.service.DubboMetadataService?anyhost=true&application=seata-dubbo-nacos-zoo-consumer&bind.ip=192.168.0.107&bind.port=20881&category=configurators&check=false&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&group=seata-zoo&interface=com.alibaba.cloud.dubbo.service.DubboMetadataService&methods=getAllServiceKeys,getServiceRestMetadata,getExportedURLs,getAllExportedURLs&pid=24719&release=2.7.6&revision=2.2.1.RELEASE&side=provider&timestamp=1588501610020&version=1.0.0, urls: [empty://192.168.0.107:20881/com.alibaba.cloud.dubbo.service.DubboMetadataService?anyhost=true&application=seata-dubbo-nacos-zoo-consumer&bind.ip=192.168.0.107&bind.port=20881&category=providers&check=false&deprecated=false&dubbo=2.0.2&dynamic=true&generic=false&group=seata-zoo&interface=com.alibaba.cloud.dubbo.service.DubboMetadataService&methods=getAllServiceKeys,getServiceRestMetadata,getExportedURLs,getAllExportedURLs&pid=24719&release=2.7.6&revision=2.2.1.RELEASE&side=provider&timestamp=1588501610020&version=1.0.0], dubbo version: 2.7.6, current host: 192.168.0.107

Expected Result

What do you expected from the above steps？

consumer可以正常消费消息

Actual Result

What actually happens?

boot项目启动阻塞

If there is an exception, please attach the exception trace:

"Attach Listener"@1,859: RUNNING
"com.alibaba.nacos.client.config.security.updater"@5,528 in group "main": WAIT
"com.alibaba.nacos.client.config.security.updater"@3,698 in group "main": WAIT

Issue 2:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: 2.5.3

Operating System version: macOS 10.14.5 (18F132)

Java version: 1.7

Steps to reproduce this issue

When I use Dubbo's merger function, the service consumer configures this way

<dubbo:reference id="mergerGroupService" interface="com.xzd.service.GroupService" group="*" merger=".addAll" />

The service provider is configured like this

<dubbo:service interface="com.xzd.service.GroupService" ref="userGroupService" group="user" />

<dubbo:service interface="com.xzd.service.GroupService" ref="adminGroupService" group="admin" />

<dubbo:service interface="com.xzd.service.GroupService" ref="otherGroupService" group="other" />

An exception occurred when I called, I look at the exception stack (the exception stack is as follows) and find that it does not print out the real class name, but prints out 'can not merge result because missing method [addall] in class [Java. Lang.class]', but the result of my method is java.util.list,I check the source code of printing exception (mergeableclusterinvoker. Java: 140):

throw new RpcException( new StringBuilder( 32 )

.append( "Can not merge result because missing method [ " )

.append( merger )

.append( " ] in class [ " )

.append( returnType.getClass().getName() )

.append( " ]" )

.toString() );

I find it's because of this line of code

returnType.getClass().getName();

When I changed the code to

returnType.getName();

, it printed out the correct stack information

Exception in thread "main" com.alibaba.dubbo.rpc.RpcException: Can not merge result because missing method [ addAll ] in class [ java.util.List ]

I found that the current code also has this problem

Pls. provide [GitHub address] to reproduce this issue.

https://gitee.com/figthing/dubbo-study.git

Expected Result

Exception in thread "main" com.alibaba.dubbo.rpc.RpcException: Can not merge result because missing method [ addAll ] in class [ java.util.List ]

What do you expected from the above steps？

I want to modify this part of the code

Actual Result

What actually happens?

If there is an exception, please attach the exception trace:

Just put your stack trace here!
Exception in thread "main" com.alibaba.dubbo.rpc.RpcException: Can not merge result because missing method [ addAll ] in class [ java.lang.Class ]
at com.alibaba.dubbo.rpc.cluster.support.MergeableClusterInvoker.invoke(MergeableClusterInvoker.java:140)
at com.alibaba.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:72)
at com.alibaba.dubbo.rpc.cluster.support.AvailableCluster$1.doInvoke(AvailableCluster.java:43)
at com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:227)
at com.alibaba.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:72)
at com.alibaba.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:52)
at com.alibaba.dubbo.common.bytecode.proxy0.getGroupName(proxy0.java)
at com.xzd.Consumer.main(Consumer.java:30)