Exception thrown when loading a concept using Cluster.DataGrid.CacheLoadConceptByExtIdByUri()
book
Article ID: KB0081092
calendar_today
Updated On:
Products
Versions
TIBCO BusinessEvents Enterprise Edition
5.2.2, 5.3.0, 5.4.x, 5.5.0
Description
Exception thrown when loading a concept using Cluster.DataGrid.CacheLoadConceptByExtIdByUri()
<timestamp> <agent> Error [<thread>] - [runtime.service] [Inference-classScheduler] Got runtime exception while executing Rule be.gen.Rules.loadConcept(Rules.loadConcept) Action be.gen.Rules.loadConcept$loadConcept_a@6178d113 Objects <be.gen.Events.testSupport@id=5> java.lang.NullPointerException at com.tibco.be.functions.cluster.DataGridFunctions.CacheLoadConceptByExtIdByUri(SourceFile:465) at be.gen.Rules.loadConcept$loadConcept_a.execute(loadConcept.java:31) at com.tibco.cep.kernel.core.rete.ReteWM.resolveConflict(ReteWM.java:401) at com.tibco.cep.kernel.core.rete.ReteWM.resolveConflict(ReteWM.java:377) at com.tibco.cep.kernel.core.rete.ReteWM.fireRepeatEvent(ReteWM.java:2208) at com.tibco.cep.runtime.service.time.BETimeManager$RepeatTimeEventTask.execute(BETimeManager.java:280) at com.tibco.cep.kernel.helper.HiResTimer$HiResTimerThread.mainLoop(HiResTimer.java:287) at com.tibco.cep.kernel.helper.HiResTimer$HiResTimerThread.run(HiResTimer.java:224)
Issue/Introduction
Exception thrown when load a concept using Cluster.DataGrid.CacheLoadConceptByExtIdByUri()
Environment
All Operating Systems
Resolution
In CDD file Cache is disabled (ObjectManagement set to "Memory Only"). Cluster.DataGrid.<...> catalog functions can be used only when cache is enabled in the project.
To fix the issue either update ObjectManagement and enable Cache or use Instance.getByExtId() catalog function to load the concept in Rule/RuleFunction.