Products | Versions |
---|---|
TIBCO BusinessEvents Enterprise Edition | - |
Not Applicable | - |
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.
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: