[jboss-jira] [JBoss JIRA] Commented: (JBRULES-1289) BRMS gives unusable error messages when validating DSL based rules

Phil Verghese (JIRA) jira-events at lists.jboss.org
Sat Apr 26 10:10:09 EDT 2008


    [ http://jira.jboss.com/jira/browse/JBRULES-1289?page=comments#action_12410830 ] 
            
Phil Verghese commented on JBRULES-1289:
----------------------------------------

The situation I ran into was when the DSL configuration was done correctly -- no errors in there. Then in the BRMS, I created a text rule that was written to use the DSL. What I mean there is that when editng the rule I can use the domain specific language terms, instead of writing the rule using DRL syntax. I don't have the screens in front of me now, but I recall when creating a rule in BRMS you could specify whether that rule used a DSL. I hope that makes sense.

I'm going off memory here since I've changed jobs since filing the above issue.



> 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
>
> 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