Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potential early bean instantiation issue #870

Closed
shakuzen opened this issue Feb 27, 2018 · 4 comments · Fixed by #871
Assignees
Labels
bug
Milestone

Comments

@shakuzen
Copy link
Contributor

@shakuzen shakuzen commented Feb 27, 2018

Using the latest Finchley snapshots, I noticed that on startup there are quite a few warnings from the BeanPostProcessorChecker almost all for Sleuth beans.

2018-02-27 17:28:08.319  INFO [hello-test,,,] 77995 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.sleuth.annotation.SleuthAnnotationAutoConfiguration' of type [org.springframework.cloud.sleuth.annotation.SleuthAnnotationAutoConfiguration$$EnhancerBySpringCGLIB$$6acd2a17] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-02-27 17:28:08.471  INFO [hello-test,,,] 77995 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'sleuthAdvisorConfig' of type [org.springframework.cloud.sleuth.annotation.SleuthAdvisorConfig] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-02-27 17:28:08.478  INFO [hello-test,,,] 77995 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$6867e3e5] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-02-27 17:28:08.534  INFO [hello-test,,,] 77995 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$8481e6e2] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-02-27 17:28:08.552  INFO [hello-test,,,] 77995 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.sleuth.log.SleuthLogAutoConfiguration$Slf4jConfiguration' of type [org.springframework.cloud.sleuth.log.SleuthLogAutoConfiguration$Slf4jConfiguration$$EnhancerBySpringCGLIB$$eed00ac6] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-02-27 17:28:08.567  INFO [hello-test,,,] 77995 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.sleuth.instrument.async.AsyncDefaultAutoConfiguration' of type [org.springframework.cloud.sleuth.instrument.async.AsyncDefaultAutoConfiguration$$EnhancerBySpringCGLIB$$504b9004] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-02-27 17:28:08.587  INFO [hello-test,,,] 77995 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.sleuth.instrument.web.client.TraceWebClientAutoConfiguration$RestTemplateConfig' of type [org.springframework.cloud.sleuth.instrument.web.client.TraceWebClientAutoConfiguration$RestTemplateConfig] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-02-27 17:28:08.592  INFO [hello-test,,,] 77995 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.sleuth.instrument.web.TraceHttpAutoConfiguration' of type [org.springframework.cloud.sleuth.instrument.web.TraceHttpAutoConfiguration$$EnhancerBySpringCGLIB$$4ee5ed34] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-02-27 17:28:08.603  INFO [hello-test,,,] 77995 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.sleuth.autoconfig.TraceAutoConfiguration' of type [org.springframework.cloud.sleuth.autoconfig.TraceAutoConfiguration$$EnhancerBySpringCGLIB$$a16500f8] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-02-27 17:28:08.622  INFO [hello-test,,,] 77995 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.boot.context.properties.ConversionServiceDeducer$Factory' of type [org.springframework.boot.context.properties.ConversionServiceDeducer$Factory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-02-27 17:28:08.626  INFO [hello-test,,,] 77995 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'spring.sleuth-org.springframework.cloud.sleuth.autoconfig.SleuthProperties' of type [org.springframework.cloud.sleuth.autoconfig.SleuthProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-02-27 17:28:08.634  INFO [hello-test,,,] 77995 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'sleuthPropagation' of type [brave.propagation.B3Propagation$1] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-02-27 17:28:08.643  INFO [hello-test,,,] 77995 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'slf4jSpanLogger' of type [org.springframework.cloud.sleuth.log.Slf4jCurrentTraceContext] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-02-27 17:28:08.652  INFO [hello-test,,,] 77995 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'noOpSpanReporter' of type [zipkin2.reporter.Reporter$1] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-02-27 17:28:08.658  INFO [hello-test,,,] 77995 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'sleuthTraceSampler' of type [brave.sampler.Sampler$2] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-02-27 17:28:08.667  INFO [hello-test,,,] 77995 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'sleuthTracing' of type [brave.Tracing$Default] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-02-27 17:28:08.680  INFO [hello-test,,,] 77995 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'sleuthHttpTracing' of type [brave.http.AutoValue_HttpTracing] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-02-27 17:28:08.692  INFO [hello-test,,,] 77995 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'tracingClientHttpRequestInterceptor' of type [brave.spring.web.TracingClientHttpRequestInterceptor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-02-27 17:28:08.694  INFO [hello-test,,,] 77995 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.sleuth.instrument.web.client.TraceWebClientAutoConfiguration$RestTemplateConfig$TraceInterceptorConfiguration' of type [org.springframework.cloud.sleuth.instrument.web.client.TraceWebClientAutoConfiguration$RestTemplateConfig$TraceInterceptorConfiguration$$EnhancerBySpringCGLIB$$695d1236] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

There seems to be more of these than when using Finchley.M6.

marcingrzejszczak added a commit that referenced this issue Feb 28, 2018
@marcingrzejszczak marcingrzejszczak self-assigned this Feb 28, 2018
marcingrzejszczak added a commit that referenced this issue Feb 28, 2018
fixes gh-870
@marcingrzejszczak marcingrzejszczak added this to the 2.0.0.M8 milestone Feb 28, 2018
@mikesockor

This comment has been minimized.

Copy link

@mikesockor mikesockor commented Apr 22, 2018

HI, still facing this issue in Finchley.M9

@marcingrzejszczak

This comment has been minimized.

Copy link
Contributor

@marcingrzejszczak marcingrzejszczak commented Apr 22, 2018

Can you check against latest snapshots? Can you upload a sample that replicates the problem?

@mikesockor

This comment has been minimized.

Copy link

@mikesockor mikesockor commented Apr 23, 2018

mention exact snapshot link please.
will try to send it

@marcingrzejszczak

This comment has been minimized.

Copy link
Contributor

@marcingrzejszczak marcingrzejszczak commented Apr 23, 2018

You can read this page https://cloud.spring.io/spring-cloud-sleuth/ and follow the instructions on how to add Finchley Snapshots.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.