dubbo icon indicating copy to clipboard operation
dubbo copied to clipboard

No such extension erpFilter for filter/com.alibaba.dubbo.rpc.Filter

Open smwsk opened this issue 8 years ago • 5 comments

  • [ ] I have searched the issues of this repository and believe that this is not a duplicate.
  • [ ] I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

  • Dubbo version: 2.6.0
  • Operating System version: windows10
  • Java version: 1.8

Step to reproduce this issue

  1. new file src/main/resources/META-INF/dubbo/com.alibaba.dubbo.rpc.Filter ,file content is erpFilter=com.filter.ErpFilter
  2. new ErpFilter Class in com.filter.ErpFilter ,ErpFilter is implements com.alibaba.dubbo.rpc.Filter interface
  3. start project, run Main.main(args);

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

project is start

Actual Result

project is dubboShutdown

If there is an exception, please attach the exception trace:

[ERROR]15:21:15.835|main|||Caller+0 at com.alibaba.dubbo.container.Main.main(Main.java:91) [DUBBO] Error creating bean with name 'com.erp.server.common.reg.service.IRegisterService': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.alibaba.dubbo.config.ProviderConfig': Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are: PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'filter' threw exception; nested exception is java.lang.IllegalStateException: No such extension erpFilter for filter/com.alibaba.dubbo.rpc.Filter, dubbo version: 2.6.0, current host: 192.168.161.1 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.erp.server.common.reg.service.IRegisterService': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.alibaba.dubbo.config.ProviderConfig': Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are: PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'filter' threw exception; nested exception is java.lang.IllegalStateException: No such extension erpFilter for filter/com.alibaba.dubbo.rpc.Filter at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1628) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543) at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139) at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:93) at com.alibaba.dubbo.container.spring.SpringContainer.start(SpringContainer.java:45) at com.alibaba.dubbo.container.Main.main(Main.java:85) at com.erp.server.common.reg.RegProvider.main(RegProvider.java:7) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.alibaba.dubbo.config.ProviderConfig': Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are: PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'filter' threw exception; nested exception is java.lang.IllegalStateException: No such extension erpFilter for filter/com.alibaba.dubbo.rpc.Filter at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1568) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1276) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:519) at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1194) at org.springframework.beans.factory.BeanFactoryUtils.beansOfTypeIncludingAncestors(BeanFactoryUtils.java:310) at com.alibaba.dubbo.config.spring.ServiceBean.afterPropertiesSet(ServiceBean.java:137) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1687) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1624) ... 14 common frames omitted Caused by: org.springframework.beans.PropertyBatchUpdateException: Failed properties: Property 'filter' threw exception; nested exception is java.lang.IllegalStateException: No such extension erpFilter for filter/com.alibaba.dubbo.rpc.Filter at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:121) at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:75) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1564) ... 27 common frames omitted

smwsk avatar Sep 01 '18 07:09 smwsk

Hi, would u like to send this demo which can reproduce the problem to github ?

carryxyh avatar Sep 01 '18 07:09 carryxyh

@smwsk Pls. make sure that the configuration file has been packaged to the jar file or classpath.

diecui1202 avatar Sep 03 '18 02:09 diecui1202

i find the reason, my project has configuration maven filter, i don't know why it can effect dubbo filter

smwsk avatar Sep 03 '18 02:09 smwsk

i has solve the problem、 the reason is my maven filter config have problem、i forget packaged dubbo file to my project , thank you all

smwsk avatar Sep 03 '18 03:09 smwsk

Close this issue.

carryxyh avatar Sep 03 '18 03:09 carryxyh