Firing a MVEL rule, whose salience is java.lang.Long.MAX_VALUE, in Guvnor

Solution Verified - Updated -

Issue

Problem to fire a MVEL rule, whose salience is 9223372036854775807, in Guvnor. The value 9223372036854775807 is java.lang.Long.MAX_VALUE.

results:
java.lang.NullPointerException is thrown

19:25:12,808 ERROR [RepositoryAssetService] Unable to run the scenario.
java.lang.NullPointerException
        at org.drools.base.mvel.MVELCompilationUnit.createFactory(MVELCompilationUnit.java:267)
        at org.drools.base.mvel.MVELCompilationUnit.getFactory(MVELCompilationUnit.java:281)
        at org.drools.base.mvel.MVELSalienceExpression.getValue(MVELSalienceExpression.java:83)
        at org.drools.common.DefaultAgenda.createActivation(DefaultAgenda.java:565)

If I run a test program in JBDS, I can run without any Exception.

Environment

  • Red Hat JBoss BRMS
    • 5.3.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content