[jboss-jira] [JBoss JIRA] Created: (JBRULES-1477) User exception thrown from inside a rule always causes a stackTrace to console

Dominic Staples (JIRA) jira-events at lists.jboss.org
Wed Feb 20 06:16:42 EST 2008


User exception thrown from inside a rule always causes a stackTrace to console
------------------------------------------------------------------------------

                 Key: JBRULES-1477
                 URL: http://jira.jboss.com/jira/browse/JBRULES-1477
             Project: JBoss Drools
          Issue Type: Bug
      Security Level: Public (Everyone can see)
    Affects Versions: 4.0.4
         Environment: WindowsXP; Drools 4-0-4; Example run from inside Eclipse 3-3-1-1.
            Reporter: Dominic Staples
         Assigned To: Mark Proctor
            Priority: Optional


I asked for (and immediately received - Thanks!) some assistance via the Drools IRC webclient regarding throwing exceptions inside rules.

I now know that this is probably a bad thing in most cases, however one of my queries at the time was how to stop the stacktrace being sent to the console even though the exception was successfuly caught at the .fireAllRules() invocation.

It was suggested that this was a bug, and could I submit a JIRA - here it is.

Attached is a very basic re-create of the situation. I'm running Drools 4.0.4.

As I've managed to convince my team mates that throwing exceptions from inside rules is a bad thing, I won't be waiting for a fix :-)

Thanks for a great product,

Dom Staples.


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