[ https://issues.apache.org/jira/browse/CAMEL-17566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17484014#comment-17484014 ]
Freeman Yue Fang commented on CAMEL-17566: ------------------------------------------ I think we need to add a HttpsResolver into org.apache.camel.impl.engine.DefaultResourceResolvers > rest-openapi-simple of camel-spring-boot-examples is broken > ------------------------------------------------------------ > > Key: CAMEL-17566 > URL: https://issues.apache.org/jira/browse/CAMEL-17566 > Project: Camel > Issue Type: Task > Reporter: Freeman Yue Fang > Assignee: Freeman Yue Fang > Priority: Major > Fix For: 3.15.0 > > > Errors like > {code} > Caused by: java.lang.IllegalArgumentException: The given OpenApi > specification could not be loaded from > `https://petstore3.swagger.io/api/v3/openapi.json`. Tried loading using > Camel's resource resolution and using OpenApi's own resource resolution. > OpenApi tends to swallow exceptions while parsing, try specifying Java system > property `debugParser` (e.g. `-DdebugParser=true`), the exception that > occurred when loading using Camel's resource loader follows > at > org.apache.camel.component.rest.openapi.RestOpenApiEndpoint.loadSpecificationFrom(RestOpenApiEndpoint.java:813) > ~[camel-rest-openapi-3.15.0-SNAPSHOT.jar:3.15.0-SNAPSHOT] > at > org.apache.camel.component.rest.openapi.RestOpenApiEndpoint.createProducer(RestOpenApiEndpoint.java:186) > ~[camel-rest-openapi-3.15.0-SNAPSHOT.jar:3.15.0-SNAPSHOT] > at > org.apache.camel.support.DefaultEndpoint.createAsyncProducer(DefaultEndpoint.java:197) > ~[camel-support-3.15.0-SNAPSHOT.jar:3.15.0-SNAPSHOT] > at > org.apache.camel.support.cache.ServicePool$SinglePool.acquire(ServicePool.java:237) > ~[camel-support-3.15.0-SNAPSHOT.jar:3.15.0-SNAPSHOT] > at > org.apache.camel.support.cache.ServicePool$SinglePool.acquire(ServicePool.java:216) > ~[camel-support-3.15.0-SNAPSHOT.jar:3.15.0-SNAPSHOT] > at > org.apache.camel.support.cache.ServicePool.acquire(ServicePool.java:112) > ~[camel-support-3.15.0-SNAPSHOT.jar:3.15.0-SNAPSHOT] > at > org.apache.camel.support.cache.ProducerServicePool.acquire(ProducerServicePool.java:28) > ~[camel-support-3.15.0-SNAPSHOT.jar:3.15.0-SNAPSHOT] > at > org.apache.camel.support.cache.DefaultProducerCache.acquireProducer(DefaultProducerCache.java:149) > ~[camel-support-3.15.0-SNAPSHOT.jar:3.15.0-SNAPSHOT] > ... 11 common frames omitted > Caused by: java.lang.IllegalArgumentException: Cannot find a ResourceResolver > in classpath supporting the scheme: https > at > org.apache.camel.impl.engine.DefaultResourceLoader.resolveResource(DefaultResourceLoader.java:117) > ~[camel-base-engine-3.15.0-SNAPSHOT.jar:3.15.0-SNAPSHOT] > at > org.apache.camel.support.ResourceHelper.resolveResourceAsInputStream(ResourceHelper.java:134) > ~[camel-support-3.15.0-SNAPSHOT.jar:3.15.0-SNAPSHOT] > at > org.apache.camel.support.ResourceHelper.resolveMandatoryResourceAsInputStream(ResourceHelper.java:111) > ~[camel-support-3.15.0-SNAPSHOT.jar:3.15.0-SNAPSHOT] > at > org.apache.camel.component.rest.openapi.RestOpenApiEndpoint.loadSpecificationFrom(RestOpenApiEndpoint.java:807) > ~[camel-rest-openapi-3.15.0-SNAPSHOT.jar:3.15.0-SNAPSHOT] > ... 18 common frames omitted > {code} -- This message was sent by Atlassian Jira (v8.20.1#820001)