Bug 1055451
| Summary: | NullPointerExceptions when loading the BAM dashboard | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Retired] JBoss BPMS Platform 6 | Reporter: | David Gutierrez <dgutierr> | ||||||||
| Component: | BAM | Assignee: | Walter Medvedeo <wmedvede> | ||||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Jan Hrcek <jhrcek> | ||||||||
| Severity: | high | Docs Contact: | |||||||||
| Priority: | high | ||||||||||
| Version: | 6.0.0 | CC: | kverlaen, mbaluch, pzapataf | ||||||||
| Target Milestone: | ER2 | ||||||||||
| Target Release: | 6.0.1 | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Whiteboard: | |||||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | Environment: | ||||||||||
| Last Closed: | 2014-08-06 20:01:59 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: |
|
||||||||||
Fixed. Github commit (master): https://github.com/droolsjbpm/dashboard- builder/commit/57bfd4fac4ddbe4c498299f28ec0bda0ef89c03a Github commit (6.0.x): https://github.com/droolsjbpm/dashboard-builder/commit/6b55ea179beba8422776bb2915fe7f3cc66ac261 It seems to me that this will need some more review. I created simple H2 database using the following DDL: DROP TABLE IF EXISTS TEST; CREATE TABLE TEST(ID INT PRIMARY KEY, NAME VARCHAR(255)); INSERT INTO TEST VALUES(1, 'Hello'); INSERT INTO TEST VALUES(2, null); INSERT INTO TEST VALUES(3, 'World'); INSERT INTO TEST VALUES(4, null); Then configured the data source as shown in the video. When editting the KPI based on SQL provider querying that db I'm still getting NullPointerException (alas, with the different stact trace). I attach video with steps to reproduce + server.log Created attachment 864090 [details]
server.log showing the exception
Created attachment 864091 [details]
Steps to reproduce - video
The following commits solves the issue master URL: http://github.com/droolsjbpm/dashboard-builder/commit/6c22a9ab9 6.0.x URL: http://github.com/droolsjbpm/dashboard-builder/commit/bf0f15da2 Ok, verified with BPMS 6.0.1 ER2 |
Created attachment 852669 [details] server.log Consider the following scenario: .- A data provider which returns a data set containing null values. A database table containing null is some rows. .- A dashboard containing a KPI built on top of that data provider. When we're trying to display the dashboard the system throws a NullPointerException (see the server.log file attached).