Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-4740

DUCC Job Driver (JD) neglects to set current thread classloader

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.1.0-Ducc
    • DUCC
    • None

    Description

      From Burn:

      I think the problem is that when the DUCC JobDriver runs the user's
      Collection Reader code using the user's classpath it does not set the
      thread's context class loader. I suspect that the code you're calling is
      using the thread's classloader to load names.txt.

      A work-around (until the next release) is for you to set it in your CR to
      be the same as the one that loaded your CR before calling the code that
      loads names.txt, e.g.

      Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());

      Note that if any user code uses the system classloader it may fail since
      that uses the classpath that started the JVM which will be the DUCC
      classpath.

      Attachments

        Activity

          People

            lou.degenaro Lou DeGenaro
            lou.degenaro Lou DeGenaro
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: