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

TypeConverterLoaderException: Cannot find any type converter classes from the following packages: com.abc.storage.service.converter if application is packaged using spring-boot-maven-plugin

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Cannot Reproduce
    • 2.19.1, 2.19.2
    • 2.19.3
    • camel-core
    • None
    • Unknown

    Description

      Hi,

      I am trying to migrate my Camel + Spring application to Camel + Spring Boot.

      But my application does not start because of TypeConverterLoaderException.

      I tried to debug DefaultPackageScanClassResolver and saw that classes that are loaded from the package that I specified in META-INF/services/org/apache/camel/TypeConverter have prefix "BOOT-INF/classes":

      But then in "void doLoadImplementationsInJar(PackageScanFilter test, String parent, List<String> entries, Set<Class<?>> classes)" there is a condition:

      And because of "BOOT-INF/classes" nothing is added to classes set and exception is thrown.

      Attachments

        Activity

          People

            Unassigned Unassigned
            vvsh Uladzimir Shelhunou
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: