[jira] [Commented] (CAMEL-21460) [camel-opentelemetry] Cannot run with Camel Springboot runtime
[ https://issues.apache.org/jira/browse/CAMEL-21460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17900822#comment-17900822 ] Claus Ibsen commented on CAMEL-21460: - Yes great finding, and good to get it documented - its a bit of long tooth to add all these dependencies but its needed to make this work. > [camel-opentelemetry] Cannot run with Camel Springboot runtime > -- > > Key: CAMEL-21460 > URL: https://issues.apache.org/jira/browse/CAMEL-21460 > Project: Camel > Issue Type: Bug > Components: camel-opentelemetry, camel-spring-boot >Affects Versions: 4.8.1 >Reporter: Pasquale Congiusti >Priority: Major > Fix For: 4.9.0 > > > I'm testing the camel-opentelemetry component against Spring Boot runtime. > I've followed the instructions but it seems that for some reason, the > application can't start reporting the following error: > {code} > 2024-11-18T10:25:17.103+01:00 WARN 64348 --- [ main] > ConfigServletWebServerApplicationContext : Exception encountered during > context initialization - cancelling refresh attempt: > org.springframework.beans.factory.UnsatisfiedDependencyException: Error > creating bean with name 'openTelemetryEventNotifier' defined in > org.apache.camel.opentelemetry.starter.OpenTelemetryAutoConfiguration: > Unsatisfied dependency expressed through method 'openTelemetryEventNotifier' > parameter 0: Error creating bean with name 'camelContext' defined in class > path resource [org/apache/camel/spring/boot/CamelAutoConfiguration.class]: > Failed to instantiate [org.apache.camel.CamelContext]: Factory method > 'camelContext' threw exception with message: > 'java.util.concurrent.ScheduledExecutorService > io.opentelemetry.context.Context.taskWrapping(java.util.concurrent.ScheduledExecutorService)' > 2024-11-18T10:25:17.107+01:00 INFO 64348 --- [ main] > o.apache.catalina.core.StandardService : Stopping service [Tomcat] > 2024-11-18T10:25:17.138+01:00 INFO 64348 --- [ main] > .s.b.a.l.ConditionEvaluationReportLogger : > Error starting ApplicationContext. To display the condition evaluation report > re-run your application with 'debug' enabled. > 2024-11-18T10:25:17.161+01:00 ERROR 64348 --- [ main] > 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: > > org.apache.camel.opentelemetry.OpenTelemetryInstrumentedThreadPoolFactory.newScheduledThreadPool(OpenTelemetryInstrumentedThreadPoolFactory.java:66) > The following method did not exist: > 'java.util.concurrent.ScheduledExecutorService > io.opentelemetry.context.Context.taskWrapping(java.util.concurrent.ScheduledExecutorService)' > The calling method's class, > org.apache.camel.opentelemetry.OpenTelemetryInstrumentedThreadPoolFactory, > was loaded from the following location: > > jar:nested:/home/squake/Desktop/jbangdocker/csb/target/test-1.0-SNAPSHOT.jar/!BOOT-INF/lib/camel-opentelemetry-4.8.1.jar!/org/apache/camel/opentelemetry/OpenTelemetryInstrumentedThreadPoolFactory.class > The called method's class, io.opentelemetry.context.Context, is available > from the following locations: > > jar:nested:/home/squake/Desktop/jbangdocker/csb/target/test-1.0-SNAPSHOT.jar/!BOOT-INF/lib/opentelemetry-context-1.37.0.jar!/io/opentelemetry/context/Context.class > The called method's class hierarchy was loaded from the following locations: > io.opentelemetry.context.Context: > jar:nested:/home/squake/Desktop/jbangdocker/csb/target/test-1.0-SNAPSHOT.jar/!BOOT-INF/lib/opentelemetry-context-1.37.0.jar!/ > Action: > Correct the classpath of your application so that it contains compatible > versions of the classes > org.apache.camel.opentelemetry.OpenTelemetryInstrumentedThreadPoolFactory and > io.opentelemetry.context.Context > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (CAMEL-21460) [camel-opentelemetry] Cannot run with Camel Springboot runtime
[ https://issues.apache.org/jira/browse/CAMEL-21460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17900821#comment-17900821 ] Pasquale Congiusti commented on CAMEL-21460: Hello. Yes, this is fixed with the new upgrade to 3.4.0. However it is still an issue on our 4.8.x version which is LTS. We cannot upgrade the springboot bom over there, so, I guess the only possibility to fix that is using the workaround proposed. I will add a documentation note on that branch to have it documented accordingly and close this one. > [camel-opentelemetry] Cannot run with Camel Springboot runtime > -- > > Key: CAMEL-21460 > URL: https://issues.apache.org/jira/browse/CAMEL-21460 > Project: Camel > Issue Type: Bug > Components: camel-opentelemetry, camel-spring-boot >Affects Versions: 4.8.1 >Reporter: Pasquale Congiusti >Priority: Major > Fix For: 4.9.0 > > > I'm testing the camel-opentelemetry component against Spring Boot runtime. > I've followed the instructions but it seems that for some reason, the > application can't start reporting the following error: > {code} > 2024-11-18T10:25:17.103+01:00 WARN 64348 --- [ main] > ConfigServletWebServerApplicationContext : Exception encountered during > context initialization - cancelling refresh attempt: > org.springframework.beans.factory.UnsatisfiedDependencyException: Error > creating bean with name 'openTelemetryEventNotifier' defined in > org.apache.camel.opentelemetry.starter.OpenTelemetryAutoConfiguration: > Unsatisfied dependency expressed through method 'openTelemetryEventNotifier' > parameter 0: Error creating bean with name 'camelContext' defined in class > path resource [org/apache/camel/spring/boot/CamelAutoConfiguration.class]: > Failed to instantiate [org.apache.camel.CamelContext]: Factory method > 'camelContext' threw exception with message: > 'java.util.concurrent.ScheduledExecutorService > io.opentelemetry.context.Context.taskWrapping(java.util.concurrent.ScheduledExecutorService)' > 2024-11-18T10:25:17.107+01:00 INFO 64348 --- [ main] > o.apache.catalina.core.StandardService : Stopping service [Tomcat] > 2024-11-18T10:25:17.138+01:00 INFO 64348 --- [ main] > .s.b.a.l.ConditionEvaluationReportLogger : > Error starting ApplicationContext. To display the condition evaluation report > re-run your application with 'debug' enabled. > 2024-11-18T10:25:17.161+01:00 ERROR 64348 --- [ main] > 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: > > org.apache.camel.opentelemetry.OpenTelemetryInstrumentedThreadPoolFactory.newScheduledThreadPool(OpenTelemetryInstrumentedThreadPoolFactory.java:66) > The following method did not exist: > 'java.util.concurrent.ScheduledExecutorService > io.opentelemetry.context.Context.taskWrapping(java.util.concurrent.ScheduledExecutorService)' > The calling method's class, > org.apache.camel.opentelemetry.OpenTelemetryInstrumentedThreadPoolFactory, > was loaded from the following location: > > jar:nested:/home/squake/Desktop/jbangdocker/csb/target/test-1.0-SNAPSHOT.jar/!BOOT-INF/lib/camel-opentelemetry-4.8.1.jar!/org/apache/camel/opentelemetry/OpenTelemetryInstrumentedThreadPoolFactory.class > The called method's class, io.opentelemetry.context.Context, is available > from the following locations: > > jar:nested:/home/squake/Desktop/jbangdocker/csb/target/test-1.0-SNAPSHOT.jar/!BOOT-INF/lib/opentelemetry-context-1.37.0.jar!/io/opentelemetry/context/Context.class > The called method's class hierarchy was loaded from the following locations: > io.opentelemetry.context.Context: > jar:nested:/home/squake/Desktop/jbangdocker/csb/target/test-1.0-SNAPSHOT.jar/!BOOT-INF/lib/opentelemetry-context-1.37.0.jar!/ > Action: > Correct the classpath of your application so that it contains compatible > versions of the classes > org.apache.camel.opentelemetry.OpenTelemetryInstrumentedThreadPoolFactory and > io.opentelemetry.context.Context > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (CAMEL-21460) [camel-opentelemetry] Cannot run with Camel Springboot runtime
[ https://issues.apache.org/jira/browse/CAMEL-21460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17900811#comment-17900811 ] Claus Ibsen commented on CAMEL-21460: - Can you try with the new SB 3.4.0 release > [camel-opentelemetry] Cannot run with Camel Springboot runtime > -- > > Key: CAMEL-21460 > URL: https://issues.apache.org/jira/browse/CAMEL-21460 > Project: Camel > Issue Type: Bug >Affects Versions: 4.8.1 >Reporter: Pasquale Congiusti >Priority: Major > Fix For: 4.9.0 > > > I'm testing the camel-opentelemetry component against Spring Boot runtime. > I've followed the instructions but it seems that for some reason, the > application can't start reporting the following error: > {code} > 2024-11-18T10:25:17.103+01:00 WARN 64348 --- [ main] > ConfigServletWebServerApplicationContext : Exception encountered during > context initialization - cancelling refresh attempt: > org.springframework.beans.factory.UnsatisfiedDependencyException: Error > creating bean with name 'openTelemetryEventNotifier' defined in > org.apache.camel.opentelemetry.starter.OpenTelemetryAutoConfiguration: > Unsatisfied dependency expressed through method 'openTelemetryEventNotifier' > parameter 0: Error creating bean with name 'camelContext' defined in class > path resource [org/apache/camel/spring/boot/CamelAutoConfiguration.class]: > Failed to instantiate [org.apache.camel.CamelContext]: Factory method > 'camelContext' threw exception with message: > 'java.util.concurrent.ScheduledExecutorService > io.opentelemetry.context.Context.taskWrapping(java.util.concurrent.ScheduledExecutorService)' > 2024-11-18T10:25:17.107+01:00 INFO 64348 --- [ main] > o.apache.catalina.core.StandardService : Stopping service [Tomcat] > 2024-11-18T10:25:17.138+01:00 INFO 64348 --- [ main] > .s.b.a.l.ConditionEvaluationReportLogger : > Error starting ApplicationContext. To display the condition evaluation report > re-run your application with 'debug' enabled. > 2024-11-18T10:25:17.161+01:00 ERROR 64348 --- [ main] > 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: > > org.apache.camel.opentelemetry.OpenTelemetryInstrumentedThreadPoolFactory.newScheduledThreadPool(OpenTelemetryInstrumentedThreadPoolFactory.java:66) > The following method did not exist: > 'java.util.concurrent.ScheduledExecutorService > io.opentelemetry.context.Context.taskWrapping(java.util.concurrent.ScheduledExecutorService)' > The calling method's class, > org.apache.camel.opentelemetry.OpenTelemetryInstrumentedThreadPoolFactory, > was loaded from the following location: > > jar:nested:/home/squake/Desktop/jbangdocker/csb/target/test-1.0-SNAPSHOT.jar/!BOOT-INF/lib/camel-opentelemetry-4.8.1.jar!/org/apache/camel/opentelemetry/OpenTelemetryInstrumentedThreadPoolFactory.class > The called method's class, io.opentelemetry.context.Context, is available > from the following locations: > > jar:nested:/home/squake/Desktop/jbangdocker/csb/target/test-1.0-SNAPSHOT.jar/!BOOT-INF/lib/opentelemetry-context-1.37.0.jar!/io/opentelemetry/context/Context.class > The called method's class hierarchy was loaded from the following locations: > io.opentelemetry.context.Context: > jar:nested:/home/squake/Desktop/jbangdocker/csb/target/test-1.0-SNAPSHOT.jar/!BOOT-INF/lib/opentelemetry-context-1.37.0.jar!/ > Action: > Correct the classpath of your application so that it contains compatible > versions of the classes > org.apache.camel.opentelemetry.OpenTelemetryInstrumentedThreadPoolFactory and > io.opentelemetry.context.Context > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (CAMEL-21460) [camel-opentelemetry] Cannot run with Camel Springboot runtime
[ https://issues.apache.org/jira/browse/CAMEL-21460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17899413#comment-17899413 ] Pasquale Congiusti commented on CAMEL-21460: This problem only exists when you're using the BOM coming from Springboot _org.springframework.boot:spring-boot-dependencies_ (ie, when using Camel Jbang) which is forcing the runtime dependencies to a different version than the one required. This will be naturally fixed when the Spring Boot BOM will align the dependencies to 1.43. In the while, the most immediate workaround is to provide the application pom.xml with the set of dependencies we want to force for Opentelemetry: {code} io.opentelemetry opentelemetry-sdk 1.43.0 io.opentelemetry opentelemetry-api 1.43.0 io.opentelemetry opentelemetry-context 1.43.0 io.opentelemetry opentelemetry-logs 1.43.0 io.opentelemetry opentelemetry-metrics 1.43.0 io.opentelemetry opentelemetry-sdk-common 1.43.0 io.opentelemetry opentelemetry-sdk-metrics 1.43.0 io.opentelemetry opentelemetry-sdk-logs 1.43.0 io.opentelemetry opentelemetry-sdk-trace 1.43.0 io.opentelemetry opentelemetry-api-incubator 1.43.0-alpha {code} > [camel-opentelemetry] Cannot run with Camel Springboot runtime > -- > > Key: CAMEL-21460 > URL: https://issues.apache.org/jira/browse/CAMEL-21460 > Project: Camel > Issue Type: Bug >Affects Versions: 4.8.1 >Reporter: Pasquale Congiusti >Priority: Major > Fix For: 4.9.0 > > > I'm testing the camel-opentelemetry component against Spring Boot runtime. > I've followed the instructions but it seems that for some reason, the > application can't start reporting the following error: > {code} > 2024-11-18T10:25:17.103+01:00 WARN 64348 --- [ main] > ConfigServletWebServerApplicationContext : Exception encountered during > context initialization - cancelling refresh attempt: > org.springframework.beans.factory.UnsatisfiedDependencyException: Error > creating bean with name 'openTelemetryEventNotifier' defined in > org.apache.camel.opentelemetry.starter.OpenTelemetryAutoConfiguration: > Unsatisfied dependency expressed through method 'openTelemetryEventNotifier' > parameter 0: Error creating bean with name 'camelContext' defined in class > path resource [org/apache/camel/spring/boot/CamelAutoConfiguration.class]: > Failed to instantiate [org.apache.camel.CamelContext]: Factory method > 'camelContext' threw exception with message: > 'java.util.concurrent.ScheduledExecutorService > io.opentelemetry.context.Context.taskWrapping(java.util.concurrent.ScheduledExecutorService)' > 2024-11-18T10:25:17.107+01:00 INFO 64348 --- [ main] > o.apache.catalina.core.StandardService : Stopping service [Tomcat] > 2024-11-18T10:25:17.138+01:00 INFO 64348 --- [ main] > .s.b.a.l.ConditionEvaluationReportLogger : > Error starting ApplicationContext. To display the condition evaluation report > re-run your application with 'debug' enabled. > 2024-11-18T10:25:17.161+01:00 ERROR 64348 --- [ main] > 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: > > org.apache.camel.opentelemetry.OpenTelemetryInstrumentedThreadPoolFactory.newScheduledThreadPool(OpenTelemetryInstrumentedThreadPoolFactory.java:66) > The following method did not exist: > 'java.util.concurrent.ScheduledExecutorService > io.opentelemetry.context.Context.taskWrapping(java.util.concurrent.ScheduledExecutorService)' > The calling method's class, > org.apache.camel.opentelemetry.OpenTelemetryInstrumentedThreadPoolFactory, > was loaded from the following location: > > jar:nested:/home/squake/Desktop/jbangdocker/csb/target/test-1.0-SNAPSHOT.jar/!BOOT-INF/lib/camel-opentelemetry-4.8.1.jar!/org/apache/camel/opentelemetry/OpenTelemetryInstrumentedThreadPoolFactory.class > The called method's class, io.op
[jira] [Commented] (CAMEL-21460) [camel-opentelemetry] Cannot run with Camel Springboot runtime
[ https://issues.apache.org/jira/browse/CAMEL-21460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17899168#comment-17899168 ] Pasquale Congiusti commented on CAMEL-21460: The problem is that we've developed certain new features in Camel core using the opentelemetry SDK version 1.43. This is fine, however, the Spring Boot BOM is forcing the dependency at runtime to version 1.37, creating such an error. > [camel-opentelemetry] Cannot run with Camel Springboot runtime > -- > > Key: CAMEL-21460 > URL: https://issues.apache.org/jira/browse/CAMEL-21460 > Project: Camel > Issue Type: Bug >Affects Versions: 4.8.1 >Reporter: Pasquale Congiusti >Priority: Major > Fix For: 4.9.0 > > > I'm testing the camel-opentelemetry component against Spring Boot runtime. > I've followed the instructions but it seems that for some reason, the > application can't start reporting the following error: > {code} > 2024-11-18T10:25:17.103+01:00 WARN 64348 --- [ main] > ConfigServletWebServerApplicationContext : Exception encountered during > context initialization - cancelling refresh attempt: > org.springframework.beans.factory.UnsatisfiedDependencyException: Error > creating bean with name 'openTelemetryEventNotifier' defined in > org.apache.camel.opentelemetry.starter.OpenTelemetryAutoConfiguration: > Unsatisfied dependency expressed through method 'openTelemetryEventNotifier' > parameter 0: Error creating bean with name 'camelContext' defined in class > path resource [org/apache/camel/spring/boot/CamelAutoConfiguration.class]: > Failed to instantiate [org.apache.camel.CamelContext]: Factory method > 'camelContext' threw exception with message: > 'java.util.concurrent.ScheduledExecutorService > io.opentelemetry.context.Context.taskWrapping(java.util.concurrent.ScheduledExecutorService)' > 2024-11-18T10:25:17.107+01:00 INFO 64348 --- [ main] > o.apache.catalina.core.StandardService : Stopping service [Tomcat] > 2024-11-18T10:25:17.138+01:00 INFO 64348 --- [ main] > .s.b.a.l.ConditionEvaluationReportLogger : > Error starting ApplicationContext. To display the condition evaluation report > re-run your application with 'debug' enabled. > 2024-11-18T10:25:17.161+01:00 ERROR 64348 --- [ main] > 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: > > org.apache.camel.opentelemetry.OpenTelemetryInstrumentedThreadPoolFactory.newScheduledThreadPool(OpenTelemetryInstrumentedThreadPoolFactory.java:66) > The following method did not exist: > 'java.util.concurrent.ScheduledExecutorService > io.opentelemetry.context.Context.taskWrapping(java.util.concurrent.ScheduledExecutorService)' > The calling method's class, > org.apache.camel.opentelemetry.OpenTelemetryInstrumentedThreadPoolFactory, > was loaded from the following location: > > jar:nested:/home/squake/Desktop/jbangdocker/csb/target/test-1.0-SNAPSHOT.jar/!BOOT-INF/lib/camel-opentelemetry-4.8.1.jar!/org/apache/camel/opentelemetry/OpenTelemetryInstrumentedThreadPoolFactory.class > The called method's class, io.opentelemetry.context.Context, is available > from the following locations: > > jar:nested:/home/squake/Desktop/jbangdocker/csb/target/test-1.0-SNAPSHOT.jar/!BOOT-INF/lib/opentelemetry-context-1.37.0.jar!/io/opentelemetry/context/Context.class > The called method's class hierarchy was loaded from the following locations: > io.opentelemetry.context.Context: > jar:nested:/home/squake/Desktop/jbangdocker/csb/target/test-1.0-SNAPSHOT.jar/!BOOT-INF/lib/opentelemetry-context-1.37.0.jar!/ > Action: > Correct the classpath of your application so that it contains compatible > versions of the classes > org.apache.camel.opentelemetry.OpenTelemetryInstrumentedThreadPoolFactory and > io.opentelemetry.context.Context > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)