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

Edson Tirelli (JIRA) jira-events at lists.jboss.org
Thu Jul 23 22:42:29 EDT 2009


     [ https://jira.jboss.org/jira/browse/JBRULES-2204?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edson Tirelli closed JBRULES-2204.
----------------------------------

    Fix Version/s: 5.1.0.M1
       Resolution: Done


Rethrowing the exception. 
Thanks for reporting.


> 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: Edson Tirelli
>             Fix For: 5.1.0.M1
>
>
> 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