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 2018/06/29 07:44:52 UTC

[GitHub] lgxnu opened a new issue #2007: 泛化调用出现递归问题导致StackOver,升级到2.5.10问题依然存在

lgxnu opened a new issue #2007: 泛化调用出现递归问题导致StackOver,升级到2.5.10问题依然存在
URL: https://github.com/apache/incubator-dubbo/issues/2007
 
 
   - [ ] I have searched the [issues](https://github.com/apache/incubator-dubbo/issues) of this repository and believe that this is not a duplicate.
   - [ ] I have checked the [FAQ](https://github.com/apache/incubator-dubbo/wiki/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.<init>(Exception.java:102)
   	at java.lang.ReflectiveOperationException.<init>(ReflectiveOperationException.java:89)
   	at java.lang.reflect.InvocationTargetException.<init>(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)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


With regards,
Apache Git Services

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