@YoungHu I try to reproduce the problem with the following client code,

```java
        ReferenceConfig<DemoService> reference = new ReferenceConfig<>();
        reference.setApplication(new ApplicationConfig("first-dubbo-client"));
        reference.setRegistry(new RegistryConfig("multicast://224.5.6.7:1234"));
        reference.setInterface(DemoService.class);
        System.in.read(); // stop provider before continuing

        ReferenceConfigCache cache = ReferenceConfigCache.getCache();
        try {
            DemoService greetingsService = cache.get(reference);

            String message = greetingsService.sayHello("dubbo");
            System.out.println(message);
        } catch (Exception e) {
            e.printStackTrace();
        }

        System.in.read(); // start provide before continuing

        DemoService greetingsService = cache.get(reference);
        // GreetingsService greetingsService = reference.get();
        String message = greetingsService.sayHello("dubbo");
        System.out.println(message);
```

With the newest master, it works. That means the second invocation succeed.

Is my client suitable for reproducing the problem ?

[ Full content available at: 
https://github.com/apache/incubator-dubbo/pull/2347 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to