<ul dir="auto">
<li>[Y ] 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>[Y ] 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.5.9</li>
<li>Operating System version: WIN10</li>
<li>Java version: IBM 1.6</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">1，xml中配置若干条dubbo registry，同时指定consumer的registry为其中1个<br>
&lt;dubbo:registry id="r1" ...../&gt;<br>
&lt;dubbo:registry id="r2" ...../&gt;<br>
&lt;dubbo:consumer registry="r1"/&gt;<br>
2，消费方通过<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/reference/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/reference">@reference</a>注解订阅一个服务</p>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">消费方通过registry r1正常订阅</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">消费方订阅时报错No such any registry to refer service in consumer xxxxx</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>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> 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"> 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.6.0及以上</li>
<li>Operating System version: mac</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>2.5.3版本通过javassist动态加载class，没有任何问题</li>
<li>2.6.0及以上版本通过javassist加载class，在idea内启动项目没有问题，但是通过springboot java -jar启动后会报javassist.NotFoundException异常。</li>
</ol>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">Caused by: javassist.NotFoundException: com.alibaba.dubbo.common.bytecode.Wrapper<br>
at javassist.ClassPool.get(ClassPool.java:452)<br>
at com.alibaba.dubbo.common.bytecode.ClassGenerator.toClass(ClassGenerator.java:263)</p>
<p dir="auto">What do you expected from the above steps？</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">无法正常加载业务class<br>
What actually happens?</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>