While loading custom accumulate function in BRMS 5.1.0 it throws NullPointerException at 'PackageBuilderConfiguration.loadAccumulateFunction(..)' method

Solution Unverified - Updated -

Issue

  • While loading custom accumulate function in BRMS 5.1.0 it throws NullPointerException at 'PackageBuilderConfiguration.loadAccumulateFunction(..)' method as shown below:
ERROR 27-04 17:31:06,781 (LoggingHelper.java:error:76) Service method 'public abstract org.drools.guvnor.client.rpc.BuilderResult org.drools.guvnor.client.rpc.RepositoryService.buildPackage(java.lang.String,boolean,java.lang.String,java.lang.String,java.lang.String,boolean,java.lang.String,java.lang.String,boolean,java.lang.String) throws com.google.gwt.user.client.rpc.SerializationException' threw an unexpected exception: java.lang.NullPointerException
java.lang.NullPointerException
                at org.drools.compiler.PackageBuilderConfiguration.loadAccumulateFunction(PackageBuilderConfiguration.java:544)
                at org.drools.compiler.PackageBuilderConfiguration.buildAccumulateFunctionsMap(PackageBuilderConfiguration.java:493)
                at org.drools.compiler.PackageBuilderConfiguration.init(PackageBuilderConfiguration.java:183)
                at org.drools.compiler.PackageBuilderConfiguration.<init>(PackageBuilderConfiguration.java:143)
                at org.drools.guvnor.server.builder.BRMSPackageBuilder.getInstance(BRMSPackageBuilder.java:98)
                at org.drools.guvnor.server.builder.ContentPackageAssembler.createBuilder(ContentPackageAssembler.java:160)
                at org.drools.guvnor.server.builder.ContentPackageAssembler.<init>(ContentPackageAssembler.java:137)
                at org.drools.guvnor.server.ServiceImplementation.buildPackage(ServiceImplementation.java:1682)
                at org.drools.guvnor.server.ServiceImplementation.buildPackage(ServiceImplementation.java:1629)
                ...

How to solve this NullPointerException?
- How to register custom accumulate function in BRMS 5.x ?

Environment

  • Red Hat JBoss BRMS (BRMS)
    • 5.1.0
    • 5.2.0 onwards

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