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

Registering a SystemEventListener for a change set scanner does not seem to work. Therefor it's not possible to detect exceptions during scanning.

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 5.4.0.Beta2
    • None
    • None
    • None

    Description

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

              FailureDetectingSystemEventListener systemEventListener = new FailureDetectingSystemEventListener();
              SystemEventListenerFactory.setSystemEventListener(systemEventListener);
      

      However, when I tried registering this on the agent:

                  KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent("csv agent");
                  kagent.setSystemEventListener(systemEventListener);
      

      It didn't work, the DoNothingSEL was still used.

      When I tried on the SystemEventListenerFactory:

              SystemEventListenerFactory.setSystemEventListener(systemEventListener);
      

      a StackOverflowException occurs, because ProcessChangeSet.listener is a DelegatingSEL pointing to itself.

      Attachments

        Activity

          People

            etirelli@redhat.com Edson Tirelli
            gdesmet@redhat.com Geoffrey De Smet (Inactive)
            Archiver:
            rhn-support-ceverson Clark Everson

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty