[ 
https://issues.apache.org/jira/browse/CAMEL-23125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18063646#comment-18063646
 ] 

Claus Ibsen commented on CAMEL-23125:
-------------------------------------

It may be that you need to start docker compose up first to start kafka

You can get
{code:java}
Caused by: org.apache.kafka.common.config.ConfigException: No resolvable 
bootstrap urls given in bootstrap.servers      at 
org.apache.kafka.clients.ClientUtils.parseAndValidateAddresses(ClientUtils.java:104)
 at 
org.apache.kafka.clients.ClientUtils.parseAndValidateAddresses(ClientUtils.java:63)
  at 
org.apache.kafka.clients.ClientUtils.parseAndValidateAddresses(ClientUtils.java:59)
  at 
org.apache.kafka.clients.producer.KafkaProducer.<init>(KafkaProducer.java:440)  
     ... 63 common frames omitted[otel.javaagent 2026-03-06 21:59:21:408 +0100] 
[OkHttp http://localhost:4317/...] ERROR 
io.opentelemetry.exporter.internal.grpc.OkHttpGrpcExporter - Failed to export 
metrics. The request could not be executed. Full error message: Failed to 
connect to localhost/[0:0:0:0:0:0:0:1]:4317[INFO] 
------------------------------------------------------------------------[INFO] 
BUILD FAILURE[INFO] 
------------------------------------------------------------------------ {code}

> DemoApplicationTest.contextLoads is failing in camel-spring-boot-examples
> -------------------------------------------------------------------------
>
>                 Key: CAMEL-23125
>                 URL: https://issues.apache.org/jira/browse/CAMEL-23125
>             Project: Camel
>          Issue Type: Test
>          Components: examples
>    Affects Versions: 4.19.0
>            Reporter: Aurélien Pupier
>            Priority: Minor
>
> {noformat}
> Error:  com.example.demo.DemoApplicationTest.contextLoads -- Time elapsed: 
> 0.005 s <<< ERROR!
> java.lang.IllegalStateException: ApplicationContext failure threshold (1) 
> exceeded: skipping repeated attempt to load context for 
> [WebMergedContextConfiguration@4b4bc73d testClass = 
> com.example.demo.DemoApplicationTest, locations = [], classes = 
> [com.example.demo.DemoApplication], contextInitializerClasses = [], 
> activeProfiles = [], propertySourceDescriptors = [], propertySourceProperties 
> = 
> ["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true"],
>  contextCustomizers = 
> [org.springframework.boot.web.server.context.SpringBootTestRandomPortContextCustomizer@320e400,
>  org.springframework.boot.test.context.PropertyMappingContextCustomizer@0, 
> org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@3c321bdb,
>  
> org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@3ad394e6,
>  
> org.springframework.boot.test.autoconfigure.OnFailureConditionReportContextCustomizerFactory$OnFailureConditionReportContextCustomizer@1deb2c43,
>  
> org.springframework.test.context.support.DynamicPropertiesContextCustomizer@0,
>  org.springframework.boot.test.context.SpringBootTestAnnotation@c8cebef9], 
> resourceBasePath = "src/main/webapp", contextLoader = 
> org.springframework.boot.test.context.SpringBootContextLoader, parent = null]
>       at 
> org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:157)
>       at 
> org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:128)
>       at 
> org.springframework.test.context.web.ServletTestExecutionListener.setUpRequestContextIfNecessary(ServletTestExecutionListener.java:200)
>       at 
> org.springframework.test.context.web.ServletTestExecutionListener.prepareTestInstance(ServletTestExecutionListener.java:139)
>       at 
> org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:260)
>       at 
> org.springframework.test.context.junit.jupiter.SpringExtension.postProcessTestInstance(SpringExtension.java:210)
>       at 
> java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
>       at 
> java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
>       at 
> java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
>       at 
> java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
>       at 
> java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
>       at 
> java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
>       at 
> java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
>       at 
> java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
>       at 
> java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
>       at 
> java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
>       at 
> java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
>       at java.base/java.util.Optional.orElseGet(Optional.java:364)
>       at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
>       at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to