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

Dozer classloading may fail with spring based context

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.16.3, 2.17.0
    • Component/s: camel-dozer
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Dozer assumes that it can load user types from the classloader of the dozer implementation, which is of course quite wrong in a modular environment. In Camel we have a hack in DozerTypeConverterLoader, which prior to creating the bean mapper forces the classLoaderBeanName in GlobalSettings to DozerThreadContextClassLoader and then initialises the TCCL with the application ClassLoader associated with the CamelContext.

      With a spring based context, this code path is not executed and therefore the application ClassLoader associated with the CamelContext ignored.

      CrossRef: https://github.com/wildfly-extras/wildfly-camel/issues/1035

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                davsclaus Claus Ibsen
                Reporter:
                tdiesler Thomas Diesler
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: