When TIBCO BusinessEvents Studio debugger is used to run a project, the DateTime function or other catalog functions are not found on the CLASSPATH.

When TIBCO BusinessEvents Studio debugger is used to run a project, the DateTime function or other catalog functions are not found on the CLASSPATH.

book

Article ID: KB0093761

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Description:
Project will not start in Studio but will run correctly from the command line.

Symptoms:
The error stack will contain "Function not found for path: /#DateTime/addDay(c.creationDate,0)" where the function name may be different.

The full error stack is:
[runtime.service] [inference-class] Got runtime exception while executing Rule be.gen.Rules.rTimer(Rules.rTimer) Action be.gen.Rules.rTimer$rTimer_a@53a3cfef Objects <be.gen.Events.evTimer@id=3>
java.lang.RuntimeException: com.tibco.cep.query.api.QueryException: com.tibco.cep.query.exception.ResolveException: Function not found for path: /#DateTime/addDay(c.creationDate,0)
        at com.tibco.cep.query.functions.QueryFunctions.createInternal(QueryFunctions.java:120)
        at com.tibco.cep.query.functions.SsQueryExecutionHelper.execute(SsQueryExecutionHelper.java:54)
        at com.tibco.cep.query.functions.QueryUtilFunctions.executeInQuerySession(QueryUtilFunctions.java:175)
        at com.tibco.cep.query.functions.QueryUtilFunctions.executeInDynamicQuerySession(QueryUtilFunctions.java:308)
        at be.gen.Rules.rTimer$rTimer_a.execute(rTimer.java:31)
        at com.tibco.cep.kernel.core.rete.ReteWM.resolveConflict(SourceFile:330)
        at com.tibco.cep.kernel.core.rete.ReteWM.case(SourceFile:306)
        at com.tibco.cep.kernel.core.rete.ReteWM.fireRepeatEvent(SourceFile:2132)
        at com.tibco.cep.runtime.session.impl.RuleSessionImpl$5.doTxnWork(RuleSessionImpl.java:1777)
        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.session.impl.RuleSessionImpl.fireRepeatEvent(RuleSessionImpl.java:1773)
        at com.tibco.cep.runtime.service.cluster.scheduler.AgentTimeManager$RepeatAssertEventTask.run(AgentTimeManager.java:414)
        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: com.tibco.cep.query.api.QueryException: com.tibco.cep.query.exception.ResolveException: Function not found for path: /#DateTime/addDay(c.creationDate,0)
        at com.tibco.cep.query.service.impl.QueryImpl.<init>(QueryImpl.java:116)
        at com.tibco.cep.query.service.impl.QueryRuleSessionImpl.createQuery(QueryRuleSessionImpl.java:219)
        at com.tibco.cep.query.functions.QueryFunctions.createInternal(QueryFunctions.java:106)
        ... 15 more


Cause:
The debugger is not correctly providing the CLASSPATH and therefore some or all of the catalog functions are not found. 

Issue/Introduction

When TIBCO BusinessEvents Studio debugger is used to run a project, the DateTime function or other catalog functions are not found on the CLASSPATH.

Resolution

1). Run the project from the command line. 

2). Provide CLASSPATH information in the "VM Arguments" of the "Run Configurations" in Studio. The CLASSPATH would be copied from the tibco.env.STD_EXT_CP of be-engine.tra file. Replace all entries such as %XXX_HOME% with the absolute path on your machine. You can remove all XXX_HOME which you are not using from the CLASSPATH to shorten the string. The VM argument should be:


Djava.property.java.class.path=XXX. Depending on the project you may be able to use just -Djava.class.path=c:/tibcoBE/be/5.2/lib .


The attached RunConfigurations screen shot (Filename: RunConfigurations.png_ shows an example of where to do this for the full path copied from be-engine.tra tibco.env.STD_EXT_CP . A sample path set in local setup:

c:/Tibco/BE522/tibcojre64/1.7.0/lib;c:/Tibco/BE522/tibcojre64/1.7.0/lib/ext;c:/Tibco/BE522/be/5.2/hotfix/lib/eclipse/plugins;c:/Tibco/BE522/be/5.2/lib/eclipse/plugins;c:/Tibco/BE522/be/5.2/hotfix/mm/lib;c:/Tibco/BE522/be/5.2/mm/lib;c:/Tibco/BE522/be/5.2/hotfix/views/lib;c:/Tibco/BE522/be/5.2/views/lib;c:/Tibco/BE522/be/5.2/hotfix/views/lib/ext;c:/Tibco/BE522/be/5.2/views/lib/ext;c:/Tibco/BE522/be/5.2/hotfix/lib;c:/Tibco/BE522/be/5.2/lib;c:/Tibco/BE522/be/5.2/hotfix/lib/palettes;c:/Tibco/BE522/be/5.2/lib/palettes;c:/Tibco/BE522/be/5.2/hotfix/lib/ext/tpcl;c:/Tibco/BE522/be/5.2/lib/ext/tpcl;c:/Tibco/BE522/be/5.2/hotfix/lib/ext/tpcl/emf;c:/Tibco/BE522/be/5.2/lib/ext/tpcl/emf;c:/Tibco/BE522/be/5.2/hotfix/lib/ext/tpcl/apache;c:/Tibco/BE522/be/5.2/lib/ext/tpcl/apache;c:/Tibco/BE522/be/5.2/hotfix/lib/ext/tpcl/tomsawyer;c:/Tibco/BE522/be/5.2/lib/ext/tpcl/tomsawyer;;c:/Tibco/BE522/be/5.2/hotfix/lib/ext/tibco;c:/Tibco/BE522/be/5.2/lib/ext/tibco;c:/Tibco/BE522/be/5.2/hotfix/lib/ext;c:/Tibco/BE522/be/5.2/lib/ext;c:/Tibco/BE522/as/2.1/lib;

Attachments

When TIBCO BusinessEvents Studio debugger is used to run a project, the DateTime function or other catalog functions are not found on the CLASSPATH. get_app