Uploaded image for project: 'JBoss BRMS Platform'
  1. JBoss BRMS Platform
  2. RHBRMS-2507

Correctly log exception when creating KieScannerFactoryService fails

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 6.4.0.GA
    • 6.3.0.GA
    • Kie-Server
    • None
    • All

    • Hide

      Need to attach a debugger and put a breakpoint to read the true exception cause.

      Show
      Need to attach a debugger and put a breakpoint to read the true exception cause.
    • Hide

      N/A

      Show
      N/A

    Description

      Any exception thrown when creating the KieScannerFactoryService from getInternalKieScanner is swallowed and simply returns a DummyKieScanner.

      This typically leads to ambiguous errors failing to load a KJAR as the DummyKieScanner has no repository information.

      It would be very helpful from a usability and debugging point of view to log the actual root exception as a WARN message.

      Ex:

      log.warn("Creating DummyKieScanner " + e.getCause());

      https://github.com/droolsjbpm/drools/blob/6.3.x/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/KieRepositoryImpl.java#L80

      Attachments

        Activity

          People

            mfusco@redhat.com Mario Fusco
            rhn-support-mrobson Matt Robson
            Archiver:
            rhn-support-ceverson Clark Everson

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty