Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-4126

You can't invoke a table function which is stored in a jar file inside the database

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.4.1.3, 10.4.2.0, 10.5.1.1, 10.6.1.0
    • 10.4.2.1, 10.5.1.1, 10.6.1.0
    • SQL
    • None

    Description

      You get a ClassNotFoundException when you try to invoke a table function which lives in a jar file stored inside the database. This is because FromVTI.implementsDerbyStyleVTICosting() looks up the class using Class.forName() rather than using the session classloader. A similar bug is in FromVTI.getVTICosting(). This bug was reported by Krzysztof N in the following user list thread: http://www.nabble.com/Uinable-to-use-Table-function-due-to-java.lang.ClassNotFoundException--while-class-is-clearly-reachable..-td22478383.html#a22699492

      Attachments

        1. derby-4126-01-ab-useSessionClassloader.diff
          6 kB
          Richard N. Hillegas
        2. derby-4126-01-aa-useSessionClassloader.diff
          6 kB
          Richard N. Hillegas

        Issue Links

          Activity

            People

              rhillegas Richard N. Hillegas
              rhillegas Richard N. Hillegas
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: