<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.5</li>
<li>Operating System version: win10</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>com.alibaba.dubbo.common.extension.ExtensionLoader#addExtension</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public void addExtension(String name, Class&lt;?&gt; clazz) {
        getExtensionClasses(); // load classes

        ...

        if (!clazz.isAnnotationPresent(Adaptive.class)) {
            ...

            cachedNames.put(clazz, name);
            cachedClasses.get().put(name, clazz);
        } 
         ...
    }"><pre class="notranslate"><code class="notranslate">public void addExtension(String name, Class&lt;?&gt; clazz) {
        getExtensionClasses(); // load classes

        ...

        if (!clazz.isAnnotationPresent(Adaptive.class)) {
            ...

            cachedNames.put(clazz, name);
            cachedClasses.get().put(name, clazz);
        } 
         ...
    }
</code></pre></div>
<ol start="2" dir="auto">
<li></li>
</ol>
<p dir="auto">I wan't to load xXXFilter when dubbo init，when call this method , ExtensionLoader#cachedActivates will load system extension，but xXXFilter I call this method manually don't load in ExtensionLoader#cachedActivates.This will lead ExtensionLoader#getActivateExtension() don't have xXXFilter.<br>
Did I use it incorrectly?<br>
Did I misunderstood the purpose of this method?</p>
<ul dir="auto">
<li>[*] 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>[*] 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.5</li>
<li>Operating System version: CentOS 7.6</li>
<li>Java version: 1.8.0</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>wget <a href="https://github.com/apache/dubbo/archive/dubbo-2.7.5.tar.gz">https://github.com/apache/dubbo/archive/dubbo-2.7.5.tar.gz</a></li>
<li>tar xvf dubbo-2.7.5.tar.gz</li>
<li>cd dubbo-dubbo-2.7.5/dubbo-config/dubbo-config-api<br>
4.mvn install</li>
</ol>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">BUILD SUCCESS</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">What actually happens?</p>
<p dir="auto">[ERROR] Tests run: 6, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 9.451 s &lt;&lt;&lt; FAILURE! - in org.apache.dubbo.config.utils.ReferenceConfigCacheTest<br>
[ERROR] testGetCacheSameReference  Time elapsed: 0.103 s  &lt;&lt;&lt; ERROR!<br>
java.lang.IllegalStateException: No application config found or it's not a valid config! Please add &lt;dubbo:application name="..." /&gt; to your spring config.<br>
at org.apache.dubbo.config.utils.ReferenceConfigCacheTest.testGetCacheSameReference(ReferenceConfigCacheTest.java:43)</p>
<p dir="auto">[INFO] Results:<br>
[INFO]<br>
[ERROR] Errors:<br>
[ERROR]   ReferenceConfigCacheTest.testGetCacheSameReference:43 » IllegalState No applic...<br>
[INFO]<br>
[ERROR] Tests run: 557, Failures: 0, Errors: 1, Skipped: 2<br>
[INFO]<br>
[INFO] ------------------------------------------------------------------------<br>
[INFO] BUILD FAILURE<br>
[INFO] ------------------------------------------------------------------------<br>
[INFO] Total time:  22.801 s<br>
[INFO] Finished at: 2020-05-08T06:23:56+08:00<br>
[INFO] ------------------------------------------------------------------------<br>
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (default-test) on project dubbo-config-api: There are test failures.<br>
[ERROR]<br>
[ERROR] Please refer to /home/Dubbo/dubbo-dubbo-2.7.5/dubbo-config/dubbo-config-api/target/surefire-reports for the individual test results.<br>
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.</p>