kylixs opened a new issue #8110:
URL: https://github.com/apache/dubbo/issues/8110


   - [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) 
of this repository and believe that this is not a duplicate.
   - [ ] I have checked the 
[FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository 
and believe that this is not a duplicate.
   
   ### Environment
   
   * Dubbo version: 3.x
   * Operating System version: xxx
   * Java version: xxx
   
   ### Steps to reproduce this issue
   
   1. Custom a filter
   ```java
   import org.apache.dubbo.rpc.Filter;
   ...
   public class MockFilter implements Filter {
   ...
   }
   ```
   
   2. Use the filter in `@DubboReference` annotation
   ```java
   @DubboReference(filter = {"mymock"})
   private HelloService helloService;
   ```
   
   
   Pls. provide [GitHub address] to reproduce this issue.
   
   ### Expected Result
   
   What do you expected from the above steps?
   
   Load the filter successfully.
   
   ### Actual Result
   
   What actually happens?
   
   Load filter failed.
   
   ```
   java.lang.IllegalStateException: No such extension 
org.apache.dubbo.rpc.cluster.filter.ClusterFilter by name mymock, no related 
exception was found, please check whether related SPI module is missing.
   
        at 
org.apache.dubbo.common.extension.ExtensionLoader.findException(ExtensionLoader.java:670)
        at 
org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:677)
        at 
org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:477)
        at 
org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:461)
        at 
org.apache.dubbo.common.extension.ExtensionLoader.getActivateExtension(ExtensionLoader.java:334)
        at 
org.apache.dubbo.common.extension.ExtensionLoader.getActivateExtension(ExtensionLoader.java:265)
        at 
org.apache.dubbo.rpc.cluster.filter.DefaultFilterChainBuilder.buildClusterInvokerChain(DefaultFilterChainBuilder.java:55)
        at 
org.apache.dubbo.rpc.cluster.support.wrapper.AbstractCluster$ClusterFilterInvoker.<init>(AbstractCluster.java:85)
        at 
org.apache.dubbo.rpc.cluster.support.wrapper.AbstractCluster.buildClusterInterceptors(AbstractCluster.java:49)
        at 
org.apache.dubbo.rpc.cluster.support.wrapper.AbstractCluster.join(AbstractCluster.java:62)
        at 
org.apache.dubbo.rpc.cluster.support.wrapper.MockClusterWrapper.join(MockClusterWrapper.java:39)
        at 
org.apache.dubbo.registry.integration.RegistryProtocol.doCreateInvoker(RegistryProtocol.java:516)
        at 
org.apache.dubbo.registry.integration.InterfaceCompatibleRegistryProtocol.getInvoker(InterfaceCompatibleRegistryProtocol.java:58)
        at 
org.apache.dubbo.registry.client.migration.MigrationInvoker.refreshInterfaceInvoker(MigrationInvoker.java:449)
        at 
org.apache.dubbo.registry.client.migration.MigrationInvoker.migrateToApplicationFirstInvoker(MigrationInvoker.java:240)
        at 
org.apache.dubbo.registry.client.migration.MigrationRuleHandler.refreshInvoker(MigrationRuleHandler.java:80)
        at 
org.apache.dubbo.registry.client.migration.MigrationRuleHandler.doMigrate(MigrationRuleHandler.java:64)
        at 
org.apache.dubbo.registry.client.migration.MigrationRuleListener.onRefer(MigrationRuleListener.java:151)
        at 
org.apache.dubbo.registry.integration.RegistryProtocol.interceptInvoker(RegistryProtocol.java:485)
        at 
org.apache.dubbo.registry.integration.RegistryProtocol.doRefer(RegistryProtocol.java:467)
        at 
org.apache.dubbo.registry.integration.RegistryProtocol.refer(RegistryProtocol.java:452)
        at 
org.apache.dubbo.rpc.protocol.ProtocolListenerWrapper.refer(ProtocolListenerWrapper.java:74)
        at 
org.apache.dubbo.rpc.cluster.filter.ProtocolFilterWrapper.refer(ProtocolFilterWrapper.java:68)
        at org.apache.dubbo.rpc.Protocol$Adaptive.refer(Protocol$Adaptive.java)
        at 
org.apache.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:392)
        at 
org.apache.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:328)
        at org.apache.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:205)
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to