Uploaded image for project: 'JBoss BPMS Platform'
  1. JBoss BPMS Platform
  2. RHBPMS-2748

KieRepositoryImpl.getInternalKieScanner swallows exceptions

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 6.0.1
    • jBPM Core
    • None
    • All All

    Description

      Description of problem:
      KieRepositoryImpl.getInternalKieScanner swallows exceptions without printing an error. It is assumed that when the ScannerFactory cannot create a KieScanner, kie-ci is not on the classpath. While this may be the case, there could be other possibilities. In addition, there is not outward sign that anything bad occurred until the application fails to load a maven based kjar.

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

      It would be useful if, at the very least, some log is printed saying the scanner couldn't be initialized with a portion of the exception.

      Version-Release number of selected component (if applicable):
      6.0.0+

      How reproducible:
      Consistent

      Steps to Reproduce:
      1. Attempt to utilize kie-ci functionality when kie-ci is not on the classpath
      2. Everything works
      3. Maven repo access silently fails

      Actual results:
      Maven repo access silently fails

      Expected results:
      An error in the log noting the exception and that there's a problem, or even a proper exception.

      Additional info:

      Attachments

        Activity

          People

            mfusco@redhat.com Mario Fusco
            rhn-support-abaxter Adam Baxter (Inactive)
            Marek Baluch Marek Baluch
            Marek Baluch Marek Baluch
            Adam Baxter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: