Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-3130

NPE in excel translator if xlsx file is missing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 8.7.1, 8.9
    • 8.7
    • Misc. Connectors
    • None
    • Hide

      1. stop server
      2. add resource-adapter to standalone.xml (ResourceAdapter/resource-adapter.xml:ExcelDS)
      3. add Excel-files folder, ExcelSource.vdb and ExcelSource.vdb.dodeploy to standalone/deployments folder
      4. start server
      5. connect to ExcelSource VDB and run query (e.g. SELECT * FROM BQT1.smalla) - everything should by OK
      6. remove standalone/deployments/Excel-files/smalla.xlsx
      7. connect to ExcelSource VDB and run query (e.g. SELECT * FROM BQT1.smalla) - query ends with NPE

      Show
      1. stop server 2. add resource-adapter to standalone.xml (ResourceAdapter/resource-adapter.xml:ExcelDS) 3. add Excel-files folder, ExcelSource.vdb and ExcelSource.vdb.dodeploy to standalone/deployments folder 4. start server 5. connect to ExcelSource VDB and run query (e.g. SELECT * FROM BQT1.smalla) - everything should by OK 6. remove standalone/deployments/Excel-files/smalla.xlsx 7. connect to ExcelSource VDB and run query (e.g. SELECT * FROM BQT1.smalla) - query ends with NPE

    Description

      If xlsx file, which is pointed by resource adater & source model (in VDB) is missing, then any query ends with NPE.

      Actual result: NullPointerException
      Expected result: some better message or exception (e.g. FileNotFoundException or some TeiidException with good mesage)

      Attachments

        Activity

          People

            rhn-engineering-shawkins Steven Hawkins
            jdurani Juraj Duráni (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: