You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Freeman Yue Fang (Jira)" <ji...@apache.org> on 2022/01/28 23:14:00 UTC

[jira] [Created] (CAMEL-17566) rest-openapi-simple of camel-spring-boot-examples is broken

Freeman Yue Fang created CAMEL-17566:
----------------------------------------

             Summary: 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
             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)