Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-17566

rest-openapi-simple of camel-spring-boot-examples is broken

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.14.2, 3.15.0
    • None
    • None
    • Unknown

    Description

      Errors like

      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
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            ffang Freeman Yue Fang
            ffang Freeman Yue Fang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment