Bug 1182517

Summary: Helpful error message for MvelConstraint
Product: [Retired] JBoss BRMS Platform 6 Reporter: Toshiya Kobayashi <tkobayas>
Component: BREAssignee: Mario Fusco <mfusco>
Status: CLOSED EOL QA Contact: Marek Winkler <mwinkler>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.3CC: gdesmet, kverlaen, okuniyas, rrajasek
Target Milestone: CR1   
Target Release: 6.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 20:00:28 UTC Type: Enhancement
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Toshiya Kobayashi 2015-01-15 10:44:17 UTC
Description of problem:

Platform BZ for https://issues.jboss.org/browse/DROOLS-687

Steps to Reproduce:
1. See pull request https://github.com/droolsjbpm/drools/pull/401

Actual results:

Error message is

[Error: null pointer: address.street]
[Near : {... address.street == "abbey" ....}]
             ^
[Line: 1, Column: 1]

Expected results:

More helpful infomation about
- Which rule is associated with the constraint
- Which fact caused the issue

Comment 1 Mario Fusco 2015-01-28 08:00:35 UTC
I fixed it in the new version of mvel 2.2.3.Final + this https://github.com/droolsjbpm/drools/commit/2d86a327fae6fd0496ad5241191e23173a892f1a

Comment 2 JBoss JIRA Server 2015-01-28 08:02:07 UTC
Mario Fusco <mario.fusco> updated the status of jira DROOLS-687 to Resolved

Comment 6 Marek Winkler 2015-04-14 13:46:27 UTC
Verified on BRMS 6.1.0 CR2 that this commit has not introduced any regressions.