[jboss-jira] [JBoss JIRA] Commented: (JBRULES-1289) BRMS gives unusable error messages when validating DSL based rules
Michael Neale (JIRA)
jira-events at lists.jboss.org
Thu Apr 24 01:26:09 EDT 2008
[ http://jira.jboss.com/jira/browse/JBRULES-1289?page=comments#action_12410433 ]
Michael Neale commented on JBRULES-1289:
----------------------------------------
Just saw this one - could have some more detail on what you mean by a rule that uses a DSL? you mean a text rule? ie a block of text and you mistyped the name of the attribute in the DSL configuration itself?
> 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: Fernando Meyer
>
> 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