<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.7.6</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li><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>(version = "xxx", group = "xxx") , group：xxx 有效</li>
<li><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>(version = "xxx", group = "xxx1") , group：xxx1 不生效</li>
<li>异常信息：No provider available from registry</li>
</ol>
<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: xxx</li>
<li>Operating System version: xxx</li>
<li>Java version: xxx</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="public void addListener(String key, String group, ConfigurationListener listener) {
        String[] keyAndGroup = getKeyAndGroup(key);
        if (keyAndGroup[1] != null) {
            group = keyAndGroup[1];
        }
        String finalGroup = group;
        NacosConfigListener nacosConfigListener = watchListenerMap.computeIfAbsent(generateKey(key, group), k -&gt; createTargetListener(key, finalGroup));
        String keyInNacos = rootPath + PROPERTIES_CHAR_SEPERATOR + key;
        nacosConfigListener.addListener(listener);
        try {
            configService.addListener(keyInNacos, group, nacosConfigListener);
            System.out.println(&quot;1&quot;);
        } catch (NacosException e) {
            logger.error(e.getMessage());
        }
    }"><pre class="notranslate"><span class="pl-k">public</span> <span class="pl-smi">void</span> <span class="pl-s1">addListener</span>(<span class="pl-smi">String</span> <span class="pl-s1">key</span>, <span class="pl-smi">String</span> <span class="pl-s1">group</span>, <span class="pl-smi">ConfigurationListener</span> <span class="pl-s1">listener</span>) {
        <span class="pl-smi">String</span>[] <span class="pl-s1">keyAndGroup</span> = <span class="pl-en">getKeyAndGroup</span>(<span class="pl-s1">key</span>);
        <span class="pl-k">if</span> (<span class="pl-s1">keyAndGroup</span>[<span class="pl-c1">1</span>] != <span class="pl-c1">null</span>) {
            <span class="pl-s1">group</span> = <span class="pl-s1">keyAndGroup</span>[<span class="pl-c1">1</span>];
        }
        <span class="pl-smi">String</span> <span class="pl-s1">finalGroup</span> = <span class="pl-s1">group</span>;
        <span class="pl-smi">NacosConfigListener</span> <span class="pl-s1">nacosConfigListener</span> = <span class="pl-s1">watchListenerMap</span>.<span class="pl-en">computeIfAbsent</span>(<span class="pl-en">generateKey</span>(<span class="pl-s1">key</span>, <span class="pl-s1">group</span>), <span class="pl-s1">k</span> -&gt; <span class="pl-en">createTargetListener</span>(<span class="pl-s1">key</span>, <span class="pl-s1">finalGroup</span>));
        <span class="pl-smi">String</span> <span class="pl-s1">keyInNacos</span> = <span class="pl-s1">rootPath</span> + <span class="pl-c1">PROPERTIES_CHAR_SEPERATOR</span> + <span class="pl-s1">key</span>;
        <span class="pl-s1">nacosConfigListener</span>.<span class="pl-en">addListener</span>(<span class="pl-s1">listener</span>);
        <span class="pl-k">try</span> {
            <span class="pl-s1">configService</span>.<span class="pl-en">addListener</span>(<span class="pl-s1">keyInNacos</span>, <span class="pl-s1">group</span>, <span class="pl-s1">nacosConfigListener</span>);
            <span class="pl-smi">System</span>.<span class="pl-s1">out</span>.<span class="pl-en">println</span>(<span class="pl-s">"1"</span>);
        } <span class="pl-k">catch</span> (<span class="pl-smi">NacosException</span> <span class="pl-s1">e</span>) {
            <span class="pl-s1">logger</span>.<span class="pl-en">error</span>(<span class="pl-s1">e</span>.<span class="pl-en">getMessage</span>());
        }
    }</pre></div>
<p dir="auto">i think we should remove the code : group = keyAndGroup[1]</p>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">What do you expected from the above steps？</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">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>