Closed pavolloffay closed 5 years ago
The important part seems to be this one:
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'io.opentracing.contrib.spring.web.starter.ServerTracingAutoConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'skipPattern' defined in class path resource [io/opentracing/contrib/spring/web/starter/SkipPatternAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [java.util.regex.Pattern]: Factory method 'skipPattern' threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.cloud.client.CommonsClientAutoConfiguration$ActuatorConfiguration': Unsatisfied dependency expressed through field 'hasFeatures'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.cloud.netflix.zuul.ZuulProxyAutoConfiguration': Unsatisfied dependency expressed through field 'configurers'; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'io.opentracing.contrib.spring.web.starter.ServerTracingAutoConfiguration': Requested bean is currently in creation: Is there an unresolvable circular reference?
Error creating bean with name 'org.springframework.cloud.client.CommonsClientAutoConfiguration$ActuatorConfiguration': Unsatisfied dependency expressed through field 'hasFeatures'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.cloud.netflix.zuul.ZuulProxyAutoConfiguration': Unsatisfied dependency expressed through field 'configurers'; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'io.opentracing.contrib.spring.web.starter.ServerTracingAutoConfiguration': Requested bean is currently in creation: Is there an unresolvable circular reference?
The issue is here
Error creating bean with name 'org.springframework.cloud.client.CommonsClientAutoConfiguration$ActuatorConfiguration': Unsatisfied dependency expressed through field 'hasFeatures'
https://github.com/opentracing-contrib/java-spring-web/pull/100/files#r280410052
@pavolloffay @geoand I'm on it.
Cool, I'm on PTO so I won't be able to check it for a few days.
On Thu, May 2, 2019, 15:55 Gilles Robert notifications@github.com wrote:
@pavolloffay https://github.com/pavolloffay @geoand https://github.com/geoand I'm on it.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/opentracing-contrib/java-spring-cloud/issues/219#issuecomment-488682781, or mute the thread https://github.com/notifications/unsubscribe-auth/ABBMDPYYYXY2QK4YTGO7NRDPTLXDHANCNFSM4HJ57UKQ .
@pavolloffay fixed by linked issue in web.
thanks @ask4gilles I have merged and cut 2.1.0
For anyone that is still having this issue, for me to solve it I had to add this to my application config.
opentracing.spring.web.ignoreAutoConfiguredSkipPatterns: true
@robinator8 That didn't solve my problem;
00:57:40.720 [Thread-0] DEBUG org.springframework.boot.devtools.restart.classloader.RestartClassLoader - Created RestartClassLoader org.springframework.boot.devtools.restart.classloader.RestartClassLoader@30a0321c
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.6.4)
2022-05-03 00:57:42,587 | INFO n.o.koop.plooi.dcn.PlooiDcnApplication - Starting PlooiDcnApplication using Java 11.0.11 on DESKTOP-1642TS0 with PID 16976 (C:\00_KOOP\ws\plooi-dcn\dcn-application\target\classes started by divil in C:\00_KOOP\ws\plooi-dcn\dcn-application)
2022-05-03 00:57:42,588 | DEBUG n.o.koop.plooi.dcn.PlooiDcnApplication - Running with Spring Boot v2.6.4, Spring v5.3.16
2022-05-03 00:57:42,589 | INFO n.o.koop.plooi.dcn.PlooiDcnApplication - The following 1 profile is active: "dev"
2022-05-03 00:57:42,695 | INFO o.s.boot.devtools.restart.ChangeableUrls - The Class-Path manifest attribute in C:\Users\divil\.m2\repository\com\sun\xml\bind\jaxb-core\2.3.0\jaxb-core-2.3.0.jar referenced one or more files that do not exist: file:/C:/Users/divil/.m2/repository/com/sun/xml/bind/jaxb-core/2.3.0/jaxb-api.jar
2022-05-03 00:57:42,695 | INFO o.s.boot.devtools.restart.ChangeableUrls - The Class-Path manifest attribute in C:\Users\divil\.m2\repository\com\mchange\c3p0\0.9.5.5\c3p0-0.9.5.5.jar referenced one or more files that do not exist: file:/C:/Users/divil/.m2/repository/com/mchange/c3p0/0.9.5.5/mchange-commons-java-0.2.19.jar
2022-05-03 00:57:42,696 | INFO .e.DevToolsPropertyDefaultsPostProcessor - Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
2022-05-03 00:57:42,696 | INFO .e.DevToolsPropertyDefaultsPostProcessor - For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
2022-05-03 00:57:46,798 | INFO .s.d.r.c.RepositoryConfigurationDelegate - Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2022-05-03 00:57:47,303 | INFO .s.d.r.c.RepositoryConfigurationDelegate - Finished Spring Data repository scanning in 489 ms. Found 8 JPA repository interfaces.
2022-05-03 00:57:48,445 | INFO trationDelegate$BeanPostProcessorChecker - Bean 'io.opentracing.contrib.spring.cloud.async.DefaultAsyncAutoConfiguration' of type [io.opentracing.contrib.spring.cloud.async.DefaultAsyncAutoConfiguration$$EnhancerBySpringCGLIB$$e77d6a78] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-05-03 00:57:48,499 | INFO trationDelegate$BeanPostProcessorChecker - Bean 'io.opentracing.contrib.java.spring.jaeger.starter.JaegerAutoConfiguration' of type [io.opentracing.contrib.java.spring.jaeger.starter.JaegerAutoConfiguration$$EnhancerBySpringCGLIB$$f8447867] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-05-03 00:57:48,558 | INFO trationDelegate$BeanPostProcessorChecker - Bean 'org.apache.camel.component.dataset.springboot.DataSetComponentConverter' of type [org.apache.camel.component.dataset.springboot.DataSetComponentConverter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-05-03 00:57:48,565 | INFO trationDelegate$BeanPostProcessorChecker - Bean 'org.apache.camel.component.dataset.springboot.DataSetTestComponentConverter' of type [org.apache.camel.component.dataset.springboot.DataSetTestComponentConverter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-05-03 00:57:48,571 | INFO trationDelegate$BeanPostProcessorChecker - Bean 'org.apache.camel.component.directvm.springboot.DirectVmComponentConverter' of type [org.apache.camel.component.directvm.springboot.DirectVmComponentConverter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-05-03 00:57:48,577 | INFO trationDelegate$BeanPostProcessorChecker - Bean 'org.apache.camel.component.http.springboot.HttpComponentConverter' of type [org.apache.camel.component.http.springboot.HttpComponentConverter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-05-03 00:57:48,582 | INFO trationDelegate$BeanPostProcessorChecker - Bean 'org.apache.camel.component.log.springboot.LogComponentConverter' of type [org.apache.camel.component.log.springboot.LogComponentConverter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-05-03 00:57:48,589 | INFO trationDelegate$BeanPostProcessorChecker - Bean 'org.apache.camel.component.mock.springboot.MockComponentConverter' of type [org.apache.camel.component.mock.springboot.MockComponentConverter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-05-03 00:57:48,594 | INFO trationDelegate$BeanPostProcessorChecker - Bean 'org.apache.camel.component.quartz.springboot.QuartzComponentConverter' of type [org.apache.camel.component.quartz.springboot.QuartzComponentConverter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-05-03 00:57:48,602 | INFO trationDelegate$BeanPostProcessorChecker - Bean 'org.apache.camel.component.seda.springboot.SedaComponentConverter' of type [org.apache.camel.component.seda.springboot.SedaComponentConverter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-05-03 00:57:48,608 | INFO trationDelegate$BeanPostProcessorChecker - Bean 'org.apache.camel.component.stub.springboot.StubComponentConverter' of type [org.apache.camel.component.stub.springboot.StubComponentConverter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-05-03 00:57:48,614 | INFO trationDelegate$BeanPostProcessorChecker - Bean 'org.apache.camel.component.validator.springboot.ValidatorComponentConverter' of type [org.apache.camel.component.validator.springboot.ValidatorComponentConverter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-05-03 00:57:48,621 | INFO trationDelegate$BeanPostProcessorChecker - Bean 'org.apache.camel.component.vm.springboot.VmComponentConverter' of type [org.apache.camel.component.vm.springboot.VmComponentConverter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-05-03 00:57:48,627 | INFO trationDelegate$BeanPostProcessorChecker - Bean 'org.apache.camel.component.xslt.springboot.XsltComponentConverter' of type [org.apache.camel.component.xslt.springboot.XsltComponentConverter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-05-03 00:57:48,632 | INFO trationDelegate$BeanPostProcessorChecker - Bean 'org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration' of type [org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-05-03 00:57:48,643 | INFO trationDelegate$BeanPostProcessorChecker - Bean 'stringOrNumberMigrationVersionConverter' of type [org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration$StringOrNumberToMigrationVersionConverter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-05-03 00:57:48,657 | INFO trationDelegate$BeanPostProcessorChecker - Bean 'opentracing.jaeger-io.opentracing.contrib.java.spring.jaeger.starter.JaegerConfigurationProperties' of type [io.opentracing.contrib.java.spring.jaeger.starter.JaegerConfigurationProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-05-03 00:57:48,678 | INFO trationDelegate$BeanPostProcessorChecker - Bean 'metricsFactory' of type [io.jaegertracing.internal.metrics.NoopMetricsFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-05-03 00:57:48,691 | INFO trationDelegate$BeanPostProcessorChecker - Bean 'metrics' of type [io.jaegertracing.internal.metrics.Metrics] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-05-03 00:57:48,700 | INFO trationDelegate$BeanPostProcessorChecker - Bean 'sampler' of type [io.jaegertracing.internal.samplers.ConstSampler] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-05-03 00:57:48,765 | INFO trationDelegate$BeanPostProcessorChecker - Bean 'reporter' of type [io.jaegertracing.internal.reporters.CompositeReporter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-05-03 00:57:48,811 | INFO trationDelegate$BeanPostProcessorChecker - Bean 'tracer' of type [io.jaegertracing.internal.JaegerTracer] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-05-03 00:57:48,828 | INFO trationDelegate$BeanPostProcessorChecker - Bean 'io.opentracing.contrib.spring.web.starter.WebClientTracingAutoConfiguration$DefaultWebClientSpanDecorators' of type [io.opentracing.contrib.spring.web.starter.WebClientTracingAutoConfiguration$DefaultWebClientSpanDecorators$$EnhancerBySpringCGLIB$$bcad9ec] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-05-03 00:57:48,842 | INFO trationDelegate$BeanPostProcessorChecker - Bean 'standardTagsWebClientSpanDecorator' of type [io.opentracing.contrib.spring.web.client.WebClientSpanDecorator$StandardTags] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2022-05-03 00:57:50,898 | INFO o.s.b.w.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8080 (http)
2022-05-03 00:57:50,920 | INFO o.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-8080"]
2022-05-03 00:57:50,921 | INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2022-05-03 00:57:50,921 | INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.58]
2022-05-03 00:57:51,205 | INFO o.a.c.c.C.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
2022-05-03 00:57:51,205 | INFO w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 8508 ms
2022-05-03 00:57:54,394 | ERROR o.s.b.web.embedded.tomcat.TomcatStarter - Error starting Tomcat context. Exception: org.springframework.beans.factory.UnsatisfiedDependencyException. Message: Error creating bean with name 'io.opentracing.contrib.spring.web.starter.ServerTracingAutoConfiguration': Unsatisfied dependency expressed through field 'skipPattern'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'skipPattern' defined in class path resource [io/opentracing/contrib/spring/web/starter/SkipPatternAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [java.util.regex.Pattern]: Factory method 'skipPattern' threw exception; nested exception is java.lang.NoSuchMethodError: org.springframework.boot.actuate.autoconfigure.web.server.ManagementServerProperties.getServlet()Lorg/springframework/boot/actuate/autoconfigure/web/server/ManagementServerProperties$Servlet;
2022-05-03 00:57:54,459 | INFO org.apache.catalina.core.StandardService - Stopping service [Tomcat]
2022-05-03 00:57:54,484 | WARN o.a.c.loader.WebappClassLoaderBase - The web application [ROOT] appears to have started a thread named [Connection evictor] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.base@11.0.11/java.lang.Thread.sleep(Native Method)
app//org.apache.http.impl.client.IdleConnectionEvictor$1.run(IdleConnectionEvictor.java:66)
java.base@11.0.11/java.lang.Thread.run(Thread.java:834)
2022-05-03 00:57:54,486 | WARN ConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
2022-05-03 00:57:54,517 | INFO ConditionEvaluationReportLoggingListener -
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2022-05-03 00:57:54,606 | ERROR o.s.b.d.LoggingFailureAnalysisReporter -
***************************
APPLICATION FAILED TO START
***************************
Description:
An attempt was made to call a method that does not exist. The attempt was made from the following location:
io.opentracing.contrib.spring.web.starter.SkipPatternAutoConfiguration$ManagementSkipPatternProviderConfig.getPatternForManagementServerProperties(SkipPatternAutoConfiguration.java:68)
The following method did not exist:
org.springframework.boot.actuate.autoconfigure.web.server.ManagementServerProperties.getServlet()Lorg/springframework/boot/actuate/autoconfigure/web/server/ManagementServerProperties$Servlet;
The calling method's class, io.opentracing.contrib.spring.web.starter.SkipPatternAutoConfiguration$ManagementSkipPatternProviderConfig, was loaded from the following location:
jar:file:/C:/Users/divil/.m2/repository/io/opentracing/contrib/opentracing-spring-web-starter/3.0.1/opentracing-spring-web-starter-3.0.1.jar!/io/opentracing/contrib/spring/web/starter/SkipPatternAutoConfiguration$ManagementSkipPatternProviderConfig.class
The called method's class, org.springframework.boot.actuate.autoconfigure.web.server.ManagementServerProperties, is available from the following locations:
jar:file:/C:/Users/divil/.m2/repository/org/springframework/boot/spring-boot-actuator-autoconfigure/2.6.4/spring-boot-actuator-autoconfigure-2.6.4.jar!/org/springframework/boot/actuate/autoconfigure/web/server/ManagementServerProperties.class
The called method's class hierarchy was loaded from the following locations:
org.springframework.boot.actuate.autoconfigure.web.server.ManagementServerProperties: file:/C:/Users/divil/.m2/repository/org/springframework/boot/spring-boot-actuator-autoconfigure/2.6.4/spring-boot-actuator-autoconfigure-2.6.4.jar
Action:
Correct the classpath of your application so that it contains compatible versions of the classes io.opentracing.contrib.spring.web.starter.SkipPatternAutoConfiguration$ManagementSkipPatternProviderConfig and org.springframework.boot.actuate.autoconfigure.web.server.ManagementServerProperties
I'm too facing this issue
org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:165) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:577) at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147)
I have updated web instrumentation to the latest in #212 and now I am getting the following exception in
instrumentation-starters/zull
. The change is likely related to https://github.com/opentracing-contrib/java-spring-web/pull/100@ask4gilles @geoand could you please have a look at it?