<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.2-SNAPSHOT</li>
<li>Operating System version: ubuntu</li>
<li>Java version: oracle 11</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[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 &quot;org.slf4j.impl.StaticLoggerBinder&quot;.
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 &lt;&lt;&lt; FAILURE! - in org.apache.dubbo.metadata.store.etcd.EtcdMetadataReportTest
[ERROR] testStoreProvider  Time elapsed: 3.431 s  &lt;&lt;&lt; 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 ..."><pre class="notranslate"><code class="notranslate">[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 &lt;&lt;&lt; FAILURE! - in org.apache.dubbo.metadata.store.etcd.EtcdMetadataReportTest
[ERROR] testStoreProvider  Time elapsed: 3.431 s  &lt;&lt;&lt; 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 ...
</code></pre></div>
<p dir="auto">Full logs:<br>
<a href="https://api.travis-ci.org/v3/job/537688661/log.txt" rel="nofollow">https://api.travis-ci.org/v3/job/537688661/log.txt</a><br>
<a href="https://api.travis-ci.org/v3/job/538613810/log.txt" rel="nofollow">https://api.travis-ci.org/v3/job/538613810/log.txt</a><br>
<a href="https://api.travis-ci.org/v3/job/539533686/log.txt" rel="nofollow">https://api.travis-ci.org/v3/job/539533686/log.txt</a></p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/incubator-dubbo/wiki/FAQ">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.4.6</li>
<li>Operating System version: xxx</li>
<li>Java version: xxx</li>
</ul>
<h3 dir="auto">Step to reproduce this issue</h3>
<p dir="auto">ApplicationConfig application = new ApplicationConfig();<br>
application.setName("yyy");</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="    ReferenceConfig&lt;com.alibaba.dubbo.rpc.service.GenericService&gt; reference =
            new ReferenceConfig();

    reference.setInterface(&quot;com.xx.user.center.service.IUserCenterService&quot;);"><pre class="notranslate"><code class="notranslate">    ReferenceConfig&lt;com.alibaba.dubbo.rpc.service.GenericService&gt; reference =
            new ReferenceConfig();

    reference.setInterface("com.xx.user.center.service.IUserCenterService");
</code></pre></div>
<p dir="auto">//        reference.setVersion("1.0");<br>
reference.setApplication(application);<br>
reference.setGeneric(true); // 声明为泛化接口<br>
reference.setTimeout(1000000);<br>
RegistryConfig registry = new RegistryConfig();<br>
registry.setAddress("zookeeper://test.zookeeper.hujiao:2181");</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="     reference.setRegistry(registry);
     reference.setUrl(&quot;dubbo://xxx.xxx.xxx.xxx:10800/com.xx.user.center.service.IUserCenterService&quot;);

    // reference.setApplication(new ApplicationConfig(&quot;call-dubbo-demo&quot;));"><pre class="notranslate"><code class="notranslate">     reference.setRegistry(registry);
     reference.setUrl("dubbo://xxx.xxx.xxx.xxx:10800/com.xx.user.center.service.IUserCenterService");

    // reference.setApplication(new ApplicationConfig("call-dubbo-demo"));
</code></pre></div>
<p dir="auto">// 用com.alibaba.dubbo.rpc.service.GenericService可以替代所有接口引用<br>
com.alibaba.dubbo.rpc.service.GenericService genericService = reference.get();</p>
<p dir="auto">// 基本类型以及Date,List,Map等不需要转换，直接调用<br>
Object result = genericService.$invoke("getUserHobbies", new String[] {"long"}, new Object[] {17795906});</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">Expected return corresponding result</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">What is actually happen?</p>
<p dir="auto">If there is an exception, please attach the exception trace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here!
</code></pre></div>
<p dir="auto">.MonitorService%26pid%3D10844%26timestamp%3D1530173780280&amp;owner=nobody&amp;pid=10844&amp;revision=1.2.2-SNAPSHOT&amp;side=consumer&amp;timestamp=1530173780231, cause: java.lang.StackOverflowError<br>
java.lang.StackOverflowError<br>
at java.lang.Exception.(Exception.java:102)<br>
at java.lang.ReflectiveOperationException.(ReflectiveOperationException.java:89)<br>
at java.lang.reflect.InvocationTargetException.(InvocationTargetException.java:72)<br>
at sun.reflect.GeneratedMethodAccessor88.invoke(Unknown Source)<br>
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br>
at java.lang.reflect.Method.invoke(Method.java:601)<br>
at com.alibaba.dubbo.common.utils.PojoUtils.generalize(PojoUtils.java:168)<br>
at com.alibaba.dubbo.common.utils.PojoUtils.generalize(PojoUtils.java:168)<br>
at com.alibaba.dubbo.common.utils.PojoUtils.generalize(PojoUtils.java:168)<br>
at com.alibaba.dubbo.common.utils.PojoUtils.generalize(PojoUtils.java:168)</p>