Bug 1359333

Summary: NPE while creating local temporary table with "set showplan on"
Product: [JBoss] JBoss Data Virtualization 6 Reporter: Lucie Fabrikova <lfabriko>
Component: TeiidAssignee: Van Halbert <vhalbert>
Status: CLOSED NOTABUG QA Contact: Filip Elias <felias>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: aszczucz, blafond, jolee, lfabriko, mbaluch, thauser, vhalbert
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-23 04:08:17 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
NPE stack trace none

Description Lucie Fabrikova 2016-07-22 20:53:21 UTC
Created attachment 1182954 [details]
NPE stack trace

Description of problem:
NPE is thrown while creating local temporary table if "set showplan on"/debug was previously set.

Version-Release number of selected component (if applicable):
driver jboss-dv-6.3.0.ER5-teiid-jdbc.jar

How reproducible:


Steps to Reproduce:
1. Connect to dynamic vdb temptab (no data roles defined)
- content of method m3() in class Teiid4324:
...
[71] ConnectionImpl ci = TeiidDriver.getInstance().connect("jdbc:teiid:temptab@mm://localhost:31000",props);
[72] ci.createStatement().execute("SET SHOWPLAN ON");
[73] ci.createStatement().execute("create local temporary table #abc ( a varchar )");
...
2. if line 72 executes query SET SHOWPLAN ON or SET SHOWPLAN DEBUG, on line 73 is thrown NPE
3. if line 72 is removed, no exception occurs

Actual results:


Expected results:


Additional info:
server log is unchanged during execution, application log is attached

Comment 4 Lucie Fabrikova 2016-07-22 21:10:20 UTC
Created jira TEIID-4349

Comment 5 Lucie Fabrikova 2016-07-23 04:04:57 UTC
The exception seems related only to my IDE eclipse, it didn't appear if I re-run code from command line.
I guess there is no bug then.

Comment 6 JBoss JIRA Server 2016-07-23 04:09:20 UTC
Lucie Fabrikova <lfabriko> updated the status of jira TEIID-4349 to Closed

Comment 7 JBoss JIRA Server 2016-07-23 17:58:58 UTC
Steven Hawkins <shawkins> updated the status of jira TEIID-4349 to Reopened

Comment 8 JBoss JIRA Server 2016-07-23 17:59:07 UTC
Steven Hawkins <shawkins> updated the status of jira TEIID-4349 to Closed