NPE while executing rules through kie-server which contains global objects in rule

Solution Unverified - Updated -

Issue

I have a kjar depoyed under "Rule Deployments" in business-central. I then send a command to trigger my rule. I want my rule to fire a method on a global object in the RHS, but I get the following error:

ERROR [org.kie.server.services.rest.KieServerRestImpl] (http-localhost.localdomain/127.0.0.1:8080-6) Error calling container 'project1': Exception executing consequence for rule "TestRule" in defaultpkg: java.lang.NullPointerException
        at org.drools.core.runtime.rule.impl.DefaultConsequenceExceptionHandler.handleException(DefaultConsequenceExceptionHandler.java:39)

Environment

  • Red Hat JBoss BPM Suite
    • 6.1.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.