Uploaded image for project: 'Talend Component Kit'
  1. Talend Component Kit
  2. TCOMP-2633

Load package-info class from nested sources

Apply templateInsert Lucidchart DiagramXMLWordPrintable

    • All
    • Small

      Right now ConfigurableClassLoader can't load package-info class from nested resources.
      Because the URLClassLoader that we extend loads it with UCP, and if .m2 repository isn't found then UCP will be empty.
      We reproduce that issue with SalesforceMarketing component (TDI-50955) in a new Microservices mode, when .m2 repository is unavailable (or empty).
      Will share here the component, job to reproduce the issue:
      https://qliktechnologies365.sharepoint.com/:f:/s/tdicomponent/ErFWb7iD4-1FrX8Hzks3qtMB023pcYHvT6YQomECE_adzg?e=MlGoou

      additional details:
      URL are empty here:
      https://github.com/Talend/component-runtime/blob/9c9bfa9528d7d8b5329d340c8393e54f391443b3/container/container-core/src/main/java/org/talend/sdk/component/classloader/ConfigurableClassLoader.java#L123
      -> UCP in URLClassloader point to empty array
      -> java.net.URLClassLoader#findClass can't find the resource package-info.class

            Unassigned Unassigned
            ozhelezniak Oleksandr Zhelezniak
            Oleksandr Zhelezniak, Xuejing Liu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: