You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/01/20 12:03:14 UTC

[GitHub] [dubbo] wuyongCloud opened a new issue #9602: dubbo IOC:SpringExtensionInjector context is null

wuyongCloud opened a new issue #9602:
URL: https://github.com/apache/dubbo/issues/9602


   <!-- If you need to report a security issue please visit https://github.com/apache/dubbo/security/policy -->
   
   - [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
   
   ### Environment
   
   * Dubbo version: master;  last commitId:65bd70b54c87539ccc843b938479f0b7c2ea8d20 
   * Operating System version: win10
   * Java version: 1.8
   
   ### Steps to reproduce this issue
   
   使用的是 dubbo-demo/dubbo-demo-xml/dubbo-demo-xml-consumer
   1. 自定义Bean(MyServiceImpl)。xml注入spring容器
   2. 自定义Myfilter实现 Filter;META-INF/debbo com.alibaba.dubbo.rpc.Filter(myfilter=org.apache.dubbo.demo.filter.Myfilter)
   3. Myfilter 引用 MyServiceImpl,有set和get方法
   4. dubbo-consumer.xml  : <dubbo:reference id="demoService" check="false" interface="org.apache.dubbo.demo.DemoService" filter="myfilter"/>
   
   Pls. provide [GitHub address] to reproduce this issue.
   
   ### Expected Behavior
   
   加载Myfilter,调用injectExtension(instance) -> SpringExtensionInjector 内的context 是null 无法完成IOC 注入 
   
   
   ### Actual Behavior
   
   <!-- What actually happens? -->
   
   If there is an exception, please attach the exception trace:
   
   ```
   ![image](https://user-images.githubusercontent.com/41030862/150333739-62be4fad-dd09-4d8f-a7b7-34b9a8716fcd.png)
   ```
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] CrazyHZM commented on issue #9602: dubbo IOC:SpringExtensionInjector context is null

Posted by GitBox <gi...@apache.org>.
CrazyHZM commented on issue #9602:
URL: https://github.com/apache/dubbo/issues/9602#issuecomment-1024886077


   Fixed in https://github.com/apache/dubbo/pull/9636


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] wuyongCloud commented on issue #9602: dubbo IOC:SpringExtensionInjector context is null

Posted by GitBox <gi...@apache.org>.
wuyongCloud commented on issue #9602:
URL: https://github.com/apache/dubbo/issues/9602#issuecomment-1019666568


   > 可以给一个可复现 demo 吗
   
   用的官方的Demo dubbo-demo/dubbo-demo-xml/dubbo-demo-xml-consumer
   MyServiceImpl 注入spring,里面什么内容也没有
   Myfilter 里是空实现,注入MyServiceImpl 
   还有需要提供的细节吗


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] juzi214032 commented on issue #9602: dubbo IOC:SpringExtensionInjector context is null

Posted by GitBox <gi...@apache.org>.
juzi214032 commented on issue #9602:
URL: https://github.com/apache/dubbo/issues/9602#issuecomment-1019506536


   可以给一个可复现 demo 吗


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] rainwolf01 commented on issue #9602: dubbo IOC:SpringExtensionInjector context is null

Posted by GitBox <gi...@apache.org>.
rainwolf01 commented on issue #9602:
URL: https://github.com/apache/dubbo/issues/9602#issuecomment-1019510773


   应该是一样的问题 https://github.com/apache/dubbo/issues/8793


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] CrazyHZM closed issue #9602: dubbo IOC:SpringExtensionInjector context is null

Posted by GitBox <gi...@apache.org>.
CrazyHZM closed issue #9602:
URL: https://github.com/apache/dubbo/issues/9602


   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org