You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Uladzimir Shelhunou (JIRA)" <ji...@apache.org> on 2017/08/18 14:45:00 UTC

[jira] [Updated] (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

     [ https://issues.apache.org/jira/browse/CAMEL-11677?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Uladzimir Shelhunou updated CAMEL-11677:
----------------------------------------
    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:

!https://1.downloader.disk.yandex.ru/preview/ccc9ed4bfc32100f001fcba19eae46a29fa9b8b6edae5da75d44b3408076b902/inf/C-QlJpWF-rBzNn3nJbejokmWGYL0VDNzQA3zBqIjk2tezYr3j1PUmAW-VdrJ_NpZqkfglGtj_3LNU3F6JHSXJg%3D%3D?uid=0&filename=2017-08-18_17-30-45.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&tknv=v2&size=XXL&crop=0!

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

 !https://1.downloader.disk.yandex.ru/preview/b6d67a981d7aea57e508daf15f2c50b212a3a34c6cc34df5efe640cf68334708/inf/C-QlJpWF-rBzNn3nJbejojGWqpbPH2SuVN-N57vCmXMNdvLr-BNHvK5QZTSRHzFp0qFDMsqZtqkVAMtlH9kyNA%3D%3D?uid=0&filename=2017-08-18_17-37-37.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&tknv=v2&size=XXL&crop=0!

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

  was:
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:

!https://yadi.sk/i/RfE5uC-J3M8ahd!

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

 !https://yadi.sk/i/bQ-kbMgy3M8b6h!

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


> 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
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-11677
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11677
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.19.2
>            Reporter: Uladzimir Shelhunou
>
> 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:
> !https://1.downloader.disk.yandex.ru/preview/ccc9ed4bfc32100f001fcba19eae46a29fa9b8b6edae5da75d44b3408076b902/inf/C-QlJpWF-rBzNn3nJbejokmWGYL0VDNzQA3zBqIjk2tezYr3j1PUmAW-VdrJ_NpZqkfglGtj_3LNU3F6JHSXJg%3D%3D?uid=0&filename=2017-08-18_17-30-45.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&tknv=v2&size=XXL&crop=0!
> But then in "void doLoadImplementationsInJar(PackageScanFilter test, String parent, List<String> entries, Set<Class<?>> classes)" there is a condition:
>  !https://1.downloader.disk.yandex.ru/preview/b6d67a981d7aea57e508daf15f2c50b212a3a34c6cc34df5efe640cf68334708/inf/C-QlJpWF-rBzNn3nJbejojGWqpbPH2SuVN-N57vCmXMNdvLr-BNHvK5QZTSRHzFp0qFDMsqZtqkVAMtlH9kyNA%3D%3D?uid=0&filename=2017-08-18_17-37-37.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&tknv=v2&size=XXL&crop=0!
> And because of "BOOT-INF" nothing is added to classes set and exception is thrown.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)