You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2020/09/20 13:29:42 UTC

[GitHub] [rocketmq-spring] 879913935 opened a new issue #297: RocketMQTransactionAnnotationProcessor依赖关系引起大量的 "is not eligible" 警告日志

879913935 opened a new issue #297:
URL: https://github.com/apache/rocketmq-spring/issues/297


   引入rocketmq-spring-boot后,由于RocketMQAutoConfiguration里的注册了一个BeanPostProcessor
   
   因为:
   RocketMQTransactionAnnotationProcessor -> TransactionHandlerRegistry -> RocketMQTemplate
   
   然后:
   RocketMQTemplate -> DefaultMQProducer -> RocketMQProperties 
   RocketMQTemplate -> ObjectMapper
   
   这种写法导致大量BeanPostProcessorChecker警告日志,这个日志本身不一定会实际影响功能性,但是毕竟这个会让使用者产生困惑,以及有可能引起一连串的Bean过早初始化产生一些bug,希望能通过注入ApplicationContext获取避开这个问题
   
   下面给出我本地的日志片段:
   ```
   2020-09-20 19:35:45.546  INFO trationDelegate$BeanPostProcessorChecker : Bean 'org.apache.rocketmq.spring.autoconfigure.RocketMQAutoConfiguration' of type [org.apache.rocketmq.spring.autoconfigure.RocketMQAutoConfiguration$$EnhancerBySpringCGLIB$$556d8346] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
   2020-09-20 19:35:45.546  INFO trationDelegate$BeanPostProcessorChecker : Bean 'rocketmq-org.apache.rocketmq.spring.autoconfigure.RocketMQProperties' of type [org.apache.rocketmq.spring.autoconfigure.RocketMQProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
   2020-09-20 19:35:45.708  INFO trationDelegate$BeanPostProcessorChecker : Bean 'defaultMQProducer' of type [org.apache.rocketmq.client.producer.DefaultMQProducer] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
   2020-09-20 19:35:45.724  INFO trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$JacksonObjectMapperConfiguration' of type [org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$JacksonObjectMapperConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
   2020-09-20 19:35:45.727  INFO trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$JacksonObjectMapperBuilderConfiguration' of type [org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$JacksonObjectMapperBuilderConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
   2020-09-20 19:35:45.732  INFO trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$Jackson2ObjectMapperBuilderCustomizerConfiguration' of type [org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$Jackson2ObjectMapperBuilderCustomizerConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
   2020-09-20 19:35:45.740  INFO trationDelegate$BeanPostProcessorChecker : Bean 'spring.jackson-org.springframework.boot.autoconfigure.jackson.JacksonProperties' of type [org.springframework.boot.autoconfigure.jackson.JacksonProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
   2020-09-20 19:35:45.742  INFO trationDelegate$BeanPostProcessorChecker : Bean 'standardJacksonObjectMapperBuilderCustomizer' of type [org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$Jackson2ObjectMapperBuilderCustomizerConfiguration$StandardJackson2ObjectMapperBuilderCustomizer] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
   2020-09-20 19:35:45.749  INFO trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$ParameterNamesModuleConfiguration' of type [org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration$ParameterNamesModuleConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
   2020-09-20 19:35:45.758  INFO trationDelegate$BeanPostProcessorChecker : Bean 'parameterNamesModule' of type [com.fasterxml.jackson.module.paramnames.ParameterNamesModule] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
   2020-09-20 19:35:45.759  INFO trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration' of type [org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
   2020-09-20 19:35:46.082  INFO trationDelegate$BeanPostProcessorChecker : Bean 'jsonComponentModule' of type [org.springframework.boot.jackson.JsonComponentModule] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
   2020-09-20 19:35:46.151  INFO trationDelegate$BeanPostProcessorChecker : Bean 'jacksonObjectMapperBuilder' of type [org.springframework.http.converter.json.Jackson2ObjectMapperBuilder] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
   2020-09-20 19:35:46.191  INFO trationDelegate$BeanPostProcessorChecker : Bean 'jacksonObjectMapper' of type [com.fasterxml.jackson.databind.ObjectMapper] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
   2020-09-20 19:35:46.748  INFO trationDelegate$BeanPostProcessorChecker : Bean 'rocketMQTemplate' of type [org.apache.rocketmq.spring.core.RocketMQTemplate] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
   2020-09-20 19:35:46.752  INFO trationDelegate$BeanPostProcessorChecker : Bean 'transactionHandlerRegistry' of type [org.apache.rocketmq.spring.config.TransactionHandlerRegistry] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
   ```


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [rocketmq-spring] vongosling commented on issue #297: not eligible for auto-proxying info

Posted by GitBox <gi...@apache.org>.
vongosling commented on issue #297:
URL: https://github.com/apache/rocketmq-spring/issues/297#issuecomment-699874723


   @879913935 Could you help to fix and deprecate this info? I am willing to follow your pr.


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [rocketmq-spring] zongtanghu commented on issue #297: Not eligible for auto-proxying info

Posted by GitBox <gi...@apache.org>.
zongtanghu commented on issue #297:
URL: https://github.com/apache/rocketmq-spring/issues/297#issuecomment-897274352


   @zhangjidi2016 can you submit a pr to fix this issues?


-- 
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: dev-unsubscribe@rocketmq.apache.org

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



[GitHub] [rocketmq-spring] uyoaix commented on issue #297: Not eligible for auto-proxying info

Posted by GitBox <gi...@apache.org>.
uyoaix commented on issue #297:
URL: https://github.com/apache/rocketmq-spring/issues/297#issuecomment-706521071


   我也是在奇怪项目启动的时候一大堆 Not eligible for auto-proxying info 日志,就是不知道什么引起的,找了好久呢
   原来是RocketMq引起的


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [rocketmq-spring] RongtongJin commented on issue #297: Not eligible for auto-proxying info

Posted by GitBox <gi...@apache.org>.
RongtongJin commented on issue #297:
URL: https://github.com/apache/rocketmq-spring/issues/297#issuecomment-706554117


   @uyoaix Could you help to fix and deprecate this info?


----------------------------------------------------------------
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:
users@infra.apache.org