Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1142136

Summary: NPE in excel translator if xlsx file is missing
Product: [JBoss] JBoss Data Virtualization 6 Reporter: Juraj Duráni <jdurani>
Component: TeiidAssignee: Van Halbert <vhalbert>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: vhalbert
Target Milestone: ER3Keywords: QA-Closed
Target Release: 6.1.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
OS: fedora 20 arch: x86_64 java: sun 1.7
Last Closed: 2016-02-10 08:57:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
VDB, server log, xlsx file, resource adapter none

Description Juraj Duráni 2014-09-16 08:46:37 UTC
Created attachment 937909 [details]
VDB, server log, xlsx file, resource adapter

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)



Steps to reproduce:
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