Import Events error out as NPE while evaluating Rulebase During EvaluateRulebaseDirectLoad Activity

Import Events error out as NPE while evaluating Rulebase During EvaluateRulebaseDirectLoad Activity

book

Article ID: KB0081961

calendar_today

Updated On:

Products Versions
TIBCO MDM 9.1.0

Description

Importing records into a repository with rulebase validations in EvaluateRulebaseDirectLoad activity getting error out while creating bundles as below.


2018-03-23 07:33:16,837 [TIBCO EMS Session Dispatcher (4269)] DEBUG com.tibco.mdm._RecordBundleFactory - Creating RecordBundle for CatalogProduct ownerId/pkid/version: [35857/207301/7]
2018-03-23 07:33:16,837 [TIBCO EMS Session Dispatcher (4269)] DEBUG com.tibco.mdm.repository.relationship.RecordBundle - Begin of RecordBundle() 1 for catalogProduct 207301
2018-03-23 07:33:16,838 [TIBCO EMS Session Dispatcher (4269)] DEBUG com.tibco.mdm.repository.relationship.RecordBundle - Added RecordItem [35857+++207301] to the Bundle of: [35857+++207301]. New Size: [1].
2018-03-23 07:33:16,838 [TIBCO EMS Session Dispatcher (4269)] DEBUG com.tibco.mdm.repository.engine.RecordBundleProcessor - BUNDLE_PERFORMANCE : Begin applyRulebase1
2018-03-23 07:33:16,838 [TIBCO EMS Session Dispatcher (4269)] DEBUG com.tibco.mdm.repository.engine.RecordBundleProcessor - Preloading bundle with depth of 1 Perspective ID: -1
2018-03-23 07:33:16,839 [TIBCO EMS Session Dispatcher (4269)] DEBUG com.tibco.mdm.repository.relationship.RecordBundle - addToRecordBundle to load for 35857+++207301
2018-03-23 07:33:16,839 [TIBCO EMS Session Dispatcher (4269)] DEBUG com.tibco.mdm.repository.relationship.RecordBundle - Number of relationships to be loaded:0
2018-03-23 07:33:16,839 [TIBCO EMS Session Dispatcher (4269)] DEBUG com.tibco.mdm.repository.relationship.RecordBundle - #Forward relations - 0 #reverse relations 0
2018-03-23 07:33:16,839 [TIBCO EMS Session Dispatcher (4269)] DEBUG com.tibco.mdm.repository.relationship.RecordBundle - Setting distance from root as 1
2018-03-23 07:33:16,839 [TIBCO EMS Session Dispatcher (4269)] DEBUG com.tibco.mdm.repository.relationship.RecordBundle - Setting distance from root (reverse) as 1
2018-03-23 07:33:16,850 [TIBCO EMS Session Dispatcher (4269)] DEBUG com.tibco.mdm.session.repository.core.CatalogProcessorSsnBean - Error applyRuleBaseOnBundle: ERROR [null]
2018-03-23 07:33:16,850 [TIBCO EMS Session Dispatcher (4269)] DEBUG com.tibco.mdm._UserTextFormatter - Missing resource for code = ERROR
2018-03-23 07:33:16,852 [TIBCO EMS Session Dispatcher (4269)] DEBUG com.tibco.mdm._UserTextFormatter - Missing resource for code = ERROR
2018-03-23 07:33:16,859 [TIBCO EMS Session Dispatcher (4269)] ERROR com.tibco.mdm.workflow.engine.activities.AsyncApplyRuleBase - 
<MqException: BEGIN>
Code: ERROR: AppplyRulebase failed:ERROR: java.lang.NullPointerException
ID: 0AF5201F_8A75A09F62518DE50162518FBB280037
DATETIME: Fri Mar 23 07:33:16 CET 2018
EXCEPTIONMESSAGE: java.lang.NullPointerException
STACKTRACE: java.lang.NullPointerException 
	at com.tibco.mdm.infrastructure.cache.as.BundleTupleCreateCommand.createTuple(BundleTupleCreateCommand.java:70) 
	at com.tibco.mdm.infrastructure.cache.MqCacheManagerActiveSpaces.put(MqCacheManagerActiveSpaces.java:1783) 
	at com.tibco.mdm.repository.relationship.RecordBundle.writeToCache(RecordBundle.java:595) 
	at com.tibco.mdm.repository.relationship.RecordBundle.writeToCache(RecordBundle.java:577) 
	at com.tibco.mdm.repository.relationship.RecordBundle.load(RecordBundle.java:570) 
	at com.tibco.mdm.repository.engine.RecordBundleProcessor.preloadBundle(RecordBundleProcessor.java:961) 
	at com.tibco.mdm.repository.engine.RecordBundleProcessor.process(RecordBundleProcessor.java:760) 
	at com.tibco.mdm.repository.engine.RecordBundleProcessor.process(RecordBundleProcessor.java:587) 
	at com.tibco.mdm.session.repository.core.CatalogProcessorSsnBean.applyRuleBaseOnBundle(CatalogProcessorSsnBean.java:4538) 
	at com.tibco.mdm.session.repository.core.CatalogProcessorSsnBean.applyRuleBaseOnBundleSync(CatalogProcessorSsnBean.java:4418) 
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
	at java.lang.reflect.Method.invoke(Method.java:498) 


 

Environment

ALL

Resolution

This issue is causing while creating bundles during rulebase evaluation because of Record Bundle caching during EvaluateRulebaseDirectLoad activity.

To avoid this errors we need to set Record Bundle caching parameter to false in configvalues.xml file as below.

 
<ConfValue description="Use Record Bundle caching." hotDeployable="true" isHidden="true" name="Enable Record Bundle Caching." propname="com.tibco.mdm.bundlecache" sinceVersion="9.0" visibility="Advanced">
                <ConfBool default="false" value="false"/>
            </ConfValue>

Issue/Introduction

Import Requests are getting error out as "Null pointer exception as AppplyRulebase failed" during EvaluateRulebaseDirectLoad activity in workflow execution.

Additional Information

Configvalues.xml,MDM 9.1.0 UI,Import Requests

Attachments

Import Events error out as NPE while evaluating Rulebase During EvaluateRulebaseDirectLoad Activity get_app
Import Events error out as NPE while evaluating Rulebase During EvaluateRulebaseDirectLoad Activity get_app