[jboss-jira] [JBoss JIRA] Closed: (JBRULES-1289) BRMS gives unusable error messages when validating DSL based rules
Michael Neale (JIRA)
jira-events at lists.jboss.org
Sun Apr 27 23:04:09 EDT 2008
[ http://jira.jboss.com/jira/browse/JBRULES-1289?page=all ]
Michael Neale closed JBRULES-1289.
----------------------------------
Fix Version/s: 5.0.0-M1
Resolution: Done
Thanks for reporting this, errors have been tightened.
It is possible taht a bug in the compiler means that an exception is thrown rather then an error reported, but it is improved for now.
> BRMS gives unusable error messages when validating DSL based rules
> ------------------------------------------------------------------
>
> Key: JBRULES-1289
> URL: http://jira.jboss.com/jira/browse/JBRULES-1289
> Project: JBoss Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: drools-brms
> Affects Versions: 4.0.2
> Reporter: Phil Verghese
> Assigned To: Michael Neale
> Fix For: 5.0.0-M1
>
>
> The error messages that are shown when you click "Validate" when editing a business rule that uses a DSL in the BRMS are not user-friendly at all. If I make a small typo and misspell the name of an attribute (a very likely thing for a BRMS user to do), and click the Validate button, the error I get back is a big stack trace starting with "java.lang.RuntimeException: SNO: Conversion failed at org.codehaus.janino.UnitCompiler.numericPromotion(UnitCompiler.java) at ..." Nowhere in that stack trace is anything that gives a hint that
> the error is just a typo of an attribute name.
> Contrast this with the rather helpful error message I get if I make the same typo when editing a DRL rule: "Unable to create Field Extractor for 'overtimHours'". (The error is that I misspelled overtimeHours).
> The BRMS needs to give the same type of helpful error message on validation errors when editing a DSL rule.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list