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

Operating System version: ubuntu

Java version: oracle 11

Steps to reproduce this issue

[INFO] --- maven-surefire-plugin:2.22.1:test (default-test) @ dubbo-metadata-report-etcd ---
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.apache.dubbo.metadata.store.etcd.EtcdMetadataReportTest
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
â„¹ï¸Ž Checking the system...
âœ” Docker version should be at least 1.6.0
âœ” Docker environment should have more than 2GB free disk space
log4j:WARN No appenders could be found for logger (io.netty.util.internal.logging.InternalLoggerFactory).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
[ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 12.377 s <<< FAILURE! - in org.apache.dubbo.metadata.store.etcd.EtcdMetadataReportTest
[ERROR] testStoreProvider Time elapsed: 3.431 s <<< ERROR!
java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
at org.apache.dubbo.metadata.store.etcd.EtcdMetadataReportTest.testStoreProvider(EtcdMetadataReportTest.java:85)

[INFO]
[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR] EtcdMetadataReportTest.testStoreProvider:85 Â» IndexOutOfBounds Index 0 out of ...

Full logs:

https://api.travis-ci.org/v3/job/537688661/log.txt

https://api.travis-ci.org/v3/job/538613810/log.txt

https://api.travis-ci.org/v3/job/539533686/log.txt

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

Operating System version: xxx

Java version: xxx

Step to reproduce this issue

ApplicationConfig application = new ApplicationConfig();

application.setName("yyy");

ReferenceConfig<com.alibaba.dubbo.rpc.service.GenericService> reference =
new ReferenceConfig();

reference.setInterface("com.xx.user.center.service.IUserCenterService");

// reference.setVersion("1.0");

reference.setApplication(application);

reference.setGeneric(true); // 声明为泛化接口

reference.setTimeout(1000000);

RegistryConfig registry = new RegistryConfig();

registry.setAddress("zookeeper://test.zookeeper.hujiao:2181");

reference.setRegistry(registry);
reference.setUrl("dubbo://xxx.xxx.xxx.xxx:10800/com.xx.user.center.service.IUserCenterService");

// reference.setApplication(new ApplicationConfig("call-dubbo-demo"));

// 用com.alibaba.dubbo.rpc.service.GenericService可以替代所有接口引用

com.alibaba.dubbo.rpc.service.GenericService genericService = reference.get();

// 基本类型以及Date,List,Map等不需要转换，直接调用

Object result = genericService.$invoke("getUserHobbies", new String[] {"long"}, new Object[] {17795906});

Expected Result

Expected return corresponding result

Actual Result

What is actually happen?

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

Just put your stack trace here!

.MonitorService%26pid%3D10844%26timestamp%3D1530173780280&owner=nobody&pid=10844&revision=1.2.2-SNAPSHOT&side=consumer&timestamp=1530173780231, cause: java.lang.StackOverflowError

java.lang.StackOverflowError

at java.lang.Exception.(Exception.java:102)

at java.lang.ReflectiveOperationException.(ReflectiveOperationException.java:89)

at java.lang.reflect.InvocationTargetException.(InvocationTargetException.java:72)

at sun.reflect.GeneratedMethodAccessor88.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:601)

at com.alibaba.dubbo.common.utils.PojoUtils.generalize(PojoUtils.java:168)

at com.alibaba.dubbo.common.utils.PojoUtils.generalize(PojoUtils.java:168)

at com.alibaba.dubbo.common.utils.PojoUtils.generalize(PojoUtils.java:168)

at com.alibaba.dubbo.common.utils.PojoUtils.generalize(PojoUtils.java:168)