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

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.19.1, 2.19.2
    • Fix Version/s: 2.19.3
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: