In TIBCO BusinessEvents 4.x, running Pattern Matcher query gives Runtime Exception,

In TIBCO BusinessEvents 4.x, running Pattern Matcher query gives Runtime Exception,

book

Article ID: KB0090048

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Resolution:
Description:
============
In TIBCO BusinessEvents 4.x, running Pattern Matcher query gives Runtime Exception.


Environment:
==========
TIBCO BusinessEvents
TIBCO BusinessEvents PatternMatcher


Symptoms:
=========
Following exception is thrown -
at com.tibco.cep.pattern.functions.manager.ManagerFunctions.register(ManagerFunctions.java:90)
    at be.gen.RuleFunctions.nullstartUp$.startUp(nullstartUp$.java:14)
    at be.gen.RuleFunctions.startUp.invoke(startUp.java:13)
    at com.tibco.cep.runtime.session.impl.RuleFunctionsExecAction.execute(RuleFunctionsExecAction.java:38)
    at com.tibco.cep.kernel.core.rete.ReteWM.invoke(ReteWM.java:407)
    at com.tibco.cep.kernel.core.rete.ReteWM.start(ReteWM.java:183)
    at com.tibco.cep.runtime.session.impl.RuleSessionImpl.start(RuleSessionImpl.java:314)
    at com.tibco.cep.runtime.session.impl.RuleSessionManagerImpl.start(RuleSessionManagerImpl.java:244)
    at com.tibco.cep.runtime.session.impl.RuleServiceProviderImpl.startAll(RuleServiceProviderImpl.java:1147)
    at com.tibco.cep.runtime.session.impl.RuleServiceProviderImpl.configure(RuleServiceProviderImpl.java:205)
    at com.tibco.cep.container.standalone.BEMain.jumpStart(BEMain.java:134)
    at com.tibco.cep.container.standalone.BEMain.main(BEMain.java:52)
Caused by: com.tibco.cep.pattern.dsl.LanguageException: Error on line 3 at position 69: define pattern /Patterns/myPattern
using /Events/orderPlaced as or^der and /Events/orderProcessed as processed and /Events/deliveryVan as van
with order.customerId and processed.customerId and van.pickupStatus=Ready
starts with order then processed then within 2 hours van
    at com.tibco.cep.pattern.dsl.patternParser.createException(patternParser.java:152)
    at com.tibco.cep.pattern.dsl.patternParser.subscriptionvar(patternParser.java:3542)
    at com.tibco.cep.pattern.dsl.patternParser.subscription(patternParser.java:3060)
    at com.tibco.cep.pattern.dsl.patternParser.subscription_list(patternParser.java:2914)
    at com.tibco.cep.pattern.dsl.patternParser.with(patternParser.java:2796)
    at com.tibco.cep.pattern.dsl.patternParser.using(patternParser.java:2455)
    at com.tibco.cep.pattern.dsl.patternParser.define_pattern(patternParser.java:2265)
    at com.tibco.cep.pattern.dsl.patternParser.query(patternParser.java:2164)
    at com.tibco.cep.pattern.dsl.patternParser.main(patternParser.java:2057)
    at com.tibco.cep.pattern.dsl.PatternParserHelper.parse(PatternParserHelper.java:32)
    at com.tibco.cep.pattern.integ.impl.master.DefaultLanguageManager.parse(DefaultLanguageManager.java:18)
    at com.tibco.cep.pattern.functions.manager.ManagerFunctions.register(ManagerFunctions.java:72)
    ... 11 more

Cause:
=====
Parameters to the query are not enclosed properly.


Resolution:
==========
Enclose the parameter properly within quotes, for example
                 van.pickupStatus=\"Ready\"

Issue/Introduction

In TIBCO BusinessEvents 4.x, running Pattern Matcher query gives Runtime Exception,