[jboss-jira] [JBoss JIRA] Created: (JBRULES-2204) Exception not rethrown by AbstractWorkingMemory.executeQueuedActions()

Tom Murphy (JIRA) jira-events at lists.jboss.org
Fri Jul 10 18:35:40 EDT 2009


Exception not rethrown by AbstractWorkingMemory.executeQueuedActions() 
-----------------------------------------------------------------------

                 Key: JBRULES-2204
                 URL: https://jira.jboss.org/jira/browse/JBRULES-2204
             Project: JBoss Drools
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: drools-core
    Affects Versions: 5.0.1.FINAL
         Environment: JBoss AS 5.0, Windows Server 2003 SP2, Drools 5.0.1.FINAL
            Reporter: Tom Murphy
            Assignee: Mark Proctor


AbstractWorkingMemory.executeQueuedActions()  catches exceptions thrown within calls to action.execute() (line 1486). 

It then tests to see if the exception is a RuntimeDroolsException and rethrows it if it is. However, if it is not, it simply does a printStackTrace() on the exception and does not re-throw it. This is a problem because SplitInstance throws an IllegalArgumentException on line 73. This is then caught and gobbled by the catch clause starting on line 1487 of AbstractWorkingMemory.java. 

The result is that any service or application hosting the Drools runtime will never see this exception. What looks to the user like a clean (albeit overly shortened) rules session has in fact thrown an error, but it is not visible to the user or the owning service. It is therefore very difficult to diagnose why the rules and/or flows are not doing what they should.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list