[
https://issues.jboss.org/browse/JBRULES-3287?page=com.atlassian.jira.plug...
]
RH Bugzilla Integration commented on JBRULES-3287:
--------------------------------------------------
Jiri Svitak <jsvitak(a)redhat.com> made a comment on [bug
733008|https://bugzilla.redhat.com/show_bug.cgi?id=733008]
manstis: It seems that this is not identical issue, because fixing bug
https://issues.jboss.org/browse/GUVNOR-1699
did not solve this problem. I have added link to external issues
https://issues.jboss.org/browse/JBRULES-3282
https://issues.jboss.org/browse/JBRULES-3287
which were created by Geoffrey De Smet. He tried to solve them, but there is a deeper
problem which should be solved by someone else who works on engine. Just for information
the same problem appears for other types of resources, like XLS, CSV, BPMN and he wrote
some comments on XLS scanning issue:
https://bugzilla.redhat.com/show_bug.cgi?id=741219
Registering a SystemEventListener for a change set scanner does not
seem to work. Therefor it's not possible to detect exceptions during scanning.
--------------------------------------------------------------------------------------------------------------------------------------------------
Key: JBRULES-3287
URL:
https://issues.jboss.org/browse/JBRULES-3287
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Reporter: Geoffrey De Smet
Assignee: Mark Proctor
Priority: Minor
Attachments: JBRULES-3287.patch
I wrote a FailureDetectingSystemEventListener to retain the exceptions throw in the
scanner, so I can fail my testcase if there are any exception is the off-threads of a
testcase that should fail the test case (but currently don't).
{code}
FailureDetectingSystemEventListener systemEventListener = new
FailureDetectingSystemEventListener();
SystemEventListenerFactory.setSystemEventListener(systemEventListener);
{code}
However, when I tried registering this on the agent:
{code}
KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent("csv
agent");
kagent.setSystemEventListener(systemEventListener);
{code}
It didn't work, the DoNothingSEL was still used.
When I tried on the SystemEventListenerFactory:
{code}
SystemEventListenerFactory.setSystemEventListener(systemEventListener);
{code}
a StackOverflowException occurs, because ProcessChangeSet.listener is a DelegatingSEL
pointing to itself.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira