Bug 1164285

Summary: IllegalArgumentException when trying to edit expression using Expression Builder
Product: [JBoss] JBoss Data Virtualization 6 Reporter: Andrej Smigala <asmigala>
Component: ToolingAssignee: Barry LaFond <blafond>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: atangrin, dlesage, vhalbert
Target Milestone: ER5   
Target Release: 6.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
When the user opened the Expression Builder he with cursor positioned in an existing expression (other than a simple constant or column reference), the following error would be logged multiple times: java.lang.IllegalArgumentException. This happened because FunctionForm constructor was performing a toUpper() on the category, but the UI and FunctionLibrary was using the unaltered category. It was fixed by removing the toUpper() to keep all things constent. As a result, this exception is no longer encountered.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-17 18:08:34 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
log none

Description Andrej Smigala 2014-11-14 14:45:13 UTC
Created attachment 957617 [details]
log

When opening the expression builder with cursor positioned in an existing expression (other than a simple constant or column reference), the following error is logged multiple times:

    java.lang.IllegalArgumentException: Expected argument to be non-null but got null

(relevant part of log attached)

After that, the expression builder behaves in unpredictable way (values do not update etc)


Steps to reproduce:

1. Create a new view table
2. Set the transformation SQL to SELECT concat('a', 'b') AS c1
3. Save the model
4. Place the cursor in the concat expression
5. Click the Expression Builder button

Comment 2 JBoss JIRA Server 2014-11-14 19:58:05 UTC
Barry LaFond <blafond> updated the status of jira TEIIDDES-2391 to Resolved

Comment 3 JBoss JIRA Server 2015-02-12 08:46:45 UTC
Andrej Šmigala <asmigala> updated the status of jira TEIIDDES-2391 to Closed