Bug 1182517 - Helpful error message for MvelConstraint
Summary: Helpful error message for MvelConstraint
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: BRE
Version: 6.0.3
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: CR1
: 6.1.0
Assignee: Mario Fusco
QA Contact: Marek Winkler
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-15 10:44 UTC by Toshiya Kobayashi
Modified: 2020-03-27 20:00 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-03-27 20:00:28 UTC
Type: Enhancement
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker DROOLS-687 0 Critical Resolved Helpful error message for MvelConstraint 2017-09-29 15:01:08 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.