TIBCO BusinessEvents (BE) Inference engine dies with a run time error of java.lang.NullPointerException.

TIBCO BusinessEvents (BE) Inference engine dies with a run time error of java.lang.NullPointerException.

book

Article ID: KB0090629

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Resolution:
TIBCO BusinessEvents

Description:
============
Inference engine will not restart and dies with the following stack trace:

2012 Oct 11 16:05:08:869 GMT +2 tibco-vods-gateway-be-tibco-vods-gateway-be-IA1 Info [main] - [jdbcstore.impl] Loading be.gen.Concepts.PaymentScorecard entries from D_PAYMENTSCORECARD
2012 Oct 11 16:05:08:895 GMT +2 tibco-vods-gateway-be-tibco-vods-gateway-be-IA1 Error [main] - [runtime.service] Error occurred while activating agent [inference-class:2]
java.lang.RuntimeException: java.lang.NullPointerException
    at com.tibco.cep.runtime.service.cluster.agent.InferenceAgent.recover(InferenceAgent.java:2692)
    at com.tibco.cep.runtime.service.cluster.agent.InferenceAgent.onPrepareToActivate(InferenceAgent.java:1335)
    at com.tibco.cep.runtime.service.cluster.agent.AbstractCacheAgent.prepareToActivate(AbstractCacheAgent.java:126)
    at com.tibco.cep.runtime.service.cluster.agent.AbstractCacheAgent.start(AbstractCacheAgent.java:164)
    at com.tibco.cep.runtime.service.cluster.agent.AgentRuntimePolicyManager.tryActivateAgent(AgentRuntimePolicyManager.java:173)
    at com.tibco.cep.runtime.service.cluster.agent.AgentRuntimePolicyManager.stabilizeCluster(AgentRuntimePolicyManager.java:249)
    at com.tibco.cep.runtime.service.cluster.agent.AgentRuntimePolicyManager.tryActivateLocalAgents(AgentRuntimePolicyManager.java:297)
    at com.tibco.cep.runtime.service.cluster.agent.DefaultAgentManager.start(DefaultAgentManager.java:99)
    at com.tibco.cep.runtime.service.cluster.MultiAgentCluster.start(MultiAgentCluster.java:253)
    at com.tibco.cep.runtime.session.impl.RuleServiceProviderImpl.startCluster(RuleServiceProviderImpl.java:746)
    at com.tibco.cep.runtime.session.impl.RuleServiceProviderImpl.configure(RuleServiceProviderImpl.java:253)
    at com.tibco.cep.container.standalone.BEMain.jumpStart(SourceFile:151)
    at com.tibco.cep.container.standalone.BEMain.main(SourceFile:69)
Caused by: java.lang.NullPointerException
    at java.lang.String.startsWith(String.java:1421)
    at java.lang.String.startsWith(String.java:1450)
    at com.tibco.cep.runtime.service.cluster.agent.InferenceAgent.recover(InferenceAgent.java:2624)
    ... 12 more

Environment:
==========
BE 5.x

Symptoms:
=========
A scorecard is used in the agent and there is backingstore.

Cause:
=====
A key value needs to be added to the CDD file for the inference engine to start up correctly.

Resolution:
=========
In the CDD file add a value for the key under the inference-class.   For example:

&ltref&gtinference-class</ref>
&ltkey&gtAgent1</key>

This only needs to be added for the inference-agent.

Issue/Introduction

TIBCO BusinessEvents (BE) Inference engine dies with a run time error of java.lang.NullPointerException.