ActiveSpaces putEvent exceptions are raised when TIBCO BusinessEvents tries to store an event into the space.

book

Article ID: KB0093103

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Description:

Issue:


The ASChannelFunctions.putEvent errors are caused when Metaspace has not been initialized with user defined/project specific spaces and trying to store an event into a space that is not created.

Error Message:

2015 Apr 07 15:27:43:332 GMT -7 DJEYACHA-Z210.na.tibco.com Error [$default.be.mt$.Thread.3] - [runtime.service] [inference-class-auto-simulator] Got runtime exception while executing Rule be.gen.Rules.ASPuts.PublishOrderSummaryAS(Rules.ASPuts.PublishOrderSummaryAS) Action be.gen.Rules.ASPuts.PublishOrderSummaryAS$PublishOrderSummaryAS_a@1b6ab7e Objects <be.gen.Concepts.RunTime.OrderSummary@id=19@extId=SUMMARY_ORD616272648933749_0_OrderCreationNotification_COMPLETED&v=0>
java.lang.RuntimeException: java.lang.NullPointerException
    at com.tibco.cep.functions.channel.as.ASChannelFunctionsImpl.putEvent(ASChannelFunctionsImpl.java:158)
    at com.tibco.cep.functions.channel.as.ASChannelFunctions.putEvent(ASChannelFunctions.java:221)
    at be.gen.Rules.ASPuts.PublishOrderSummaryAS$PublishOrderSummaryAS_a.execute(PublishOrderSummaryAS.java:37)
    at com.tibco.cep.kernel.core.rete.ReteWM.resolveConflict(SourceFile:330)
    at com.tibco.cep.kernel.core.rete.ReteWM$7.doTxnWork(SourceFile:1494)
    at com.tibco.cep.kernel.core.rete.BeTransaction.run(SourceFile:141)
    at com.tibco.cep.kernel.core.rete.BeTransaction.execute(SourceFile:101)
    at com.tibco.cep.kernel.core.rete.ReteWM.executeRules(SourceFile:1400)
    at com.tibco.cep.runtime.session.impl.RuleSessionImpl$4.doTxnWork(RuleSessionImpl.java:1135)
    at com.tibco.cep.kernel.core.rete.BeTransaction.run(SourceFile:141)
    at com.tibco.cep.kernel.core.rete.BeTransaction.execute(SourceFile:101)
    at com.tibco.cep.runtime.session.impl.RuleSessionImpl.preprocessPassthru(RuleSessionImpl.java:1113)
    at com.tibco.cep.runtime.service.cluster.ClusterTaskController$1.doTxnWork(ClusterTaskController.java:73)
    at com.tibco.cep.kernel.core.rete.BeTransaction.run(SourceFile:156)
    at com.tibco.cep.kernel.core.rete.BeTransaction.execute(SourceFile:101)
    at com.tibco.cep.runtime.service.cluster.ClusterTaskController.executeTask(ClusterTaskController.java:61)
    at com.tibco.cep.runtime.scheduler.impl.WorkerBasedControllerV2$WorkerTask.run(WorkerBasedControllerV2.java:466)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at com.tibco.cep.runtime.util.CustomBEManagedThread.run(CustomBEManagedThread.java:24)
Caused by: java.lang.NullPointerException
    at com.tibco.cep.driver.as.utils.ASUtils.fillTupleWithEvent(ASUtils.java:192)
    at com.tibco.cep.functions.channel.as.ASChannelFunctionsImpl.putEvent(ASChannelFunctionsImpl.java:153)
    ... 19 more

Resolution

1). Connect to the as-admin tool and create a metaspace and the required user defined spaces that are used in the project.
    a). connect name "metaspace_name" discovery "discoveryURL"  //create your own metaspace name as described in your shared AS connection.
    b). create space name 'space_name' ( ......)                 //create your spaces as described in your AS channels.

2). Verify the space details in the as-admin tool.
    a.) show spaces
    b.) show space 'space_name'


3). Start the Cache agents.


4). Start the Inference agents.

Issue/Introduction

ActiveSpaces putEvent exceptions are raised when TIBCO BusinessEvents tries to store an event into the space.