Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-1477

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Optional
    • Resolution: Done
    • Affects Version/s: 4.0.4
    • Fix Version/s: 4.0.5, 5.0.0.M1
    • Component/s: None
    • Labels:
      None
    • Environment:

      WindowsXP; Drools 4-0-4; Example run from inside Eclipse 3-3-1-1.

      Description

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mark.proctor Mark Proctor
                Reporter:
                stapldm Dominic Staples
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: