Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-1150

Drools 7 KieServices.Factory.get() returns null

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.0.1.GA
    • None
    • None
    • None
    • JBoss Fuse 6.3.0.redhat-187
      Drools version: 7.5.0.Final-redhat-4

    • CR1
    • RHPAM7-Iteration13

      It seems that there might be a regression from Drools 6.x. This line in my code worked fine:

      KieServices ks = KieServices.Factory.get()

      But now does not. The only thing I did was upgrade these dependencies in my pom.xml (as well as updated my OSGi features to install the right bundles)

      org.drools.drools-core
      org.drools.drools-compiler
      org.kie.kie-api
      org.kie.soup.kie-soup-project-datamodel-api
      org.kie.soup.kie-soup-commons
      org.kie.soup.kie-soup-project-datamodel-commons

      Lastly, there have been a few StackOverflows related to this, but none of the answers are overwhelmingly positive:

      https://stackoverflow.com/questions/49295671/kieservices-factory-get-returns-null-in-kie-api7-6-0
      https://stackoverflow.com/questions/47556233/drools-7-4-1-kieservices-factory-get-returns-null
      https://groups.google.com/forum/#!topic/jbpm-usage/aD58UTCqu-c

              mfusco@redhat.com Mario Fusco
              tdalbo Tom Dalbo (Inactive)
              Tibor Zimányi Tibor Zimányi
              Tibor Zimányi Tibor Zimányi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: