Start the deployed user-developed Web service and the CEP engine in which definition information has been deployed.
Also check syntax errors along with starting the CEP engine.
The procedure for the starting tasks is as follows:
If the application server in which a user-developed Web service has been deployed is not running, start the server. After starting the server, check that the deployed user-developed Web service has the status of receiving requests from outside.
Refer to the application server manuals for information on how to start the application server and how to check the status of the Web service.
After deployment of development assets, use cepstarteng to start the CEP engine.
Refer to "5.8 Deploying Development Assets" for information on deploying development assets.
Refer to "8.9 cepstarteng" for information on the cepstarteng command.
Note
If implementing RDB collaboration or Terracotta collaboration, ensure that all collaboration destination servers are started before the CEP engine is started.
Example
Example of executing cepstarteng
$ cepstarteng -e CepEngine<ENTER>
Command cepstarteng executed successfully.
If the filter rules in the rule definition contain syntax errors, the CEP engine start will fail. If this happens, the cause of the error will be notified to the engine log of the high-speed filter. Correct the syntax error based on the notified error content.
Redeploy the corrected rule definition in the CEP engine. Refer to "6.1.3.3 Updating Deployed Definition Information" for information on redeploying. After redeploying the rules, repeat the operations from "5.9.3.2 Starting the CEP Engine".
If the complex event processing statements in the rule definition contain syntax errors, the CEP engine start will fail with a "cep20201e" error.
If this happens, the cause of the error will be notified to the engine log of complex event processing using the error message in the "cep20201e" ERRORINFO parameter.
Below is an example of an error message in the ERRORINFO parameter. Correct the syntax error based on this content.
Incorrect syntax near xxxxxxxx at line X column Y
xxxxxxxx: Keyword near the abnormality
X: Number of lines from the beginning of the complex event processing statement in which the error occurred
Y: Number of characters from the beginning of the line of the complex event processing statement in which the error occurred
Redeploy the corrected rule definition in the CEP engine. Refer to "6.1.3.3 Updating Deployed Definition Information" for information on redeploying. After redeploying the rules, repeat the operations from "5.9.3.2 Starting the CEP Engine".
Note
Depending on the content of the error message, the location of the error (line and column information) may not be displayed.
Example
Log output example of a syntax error in a complex event processing statement
Target complex event processing statement
@Name('EPL3')
@DebugLogListener
select * from FilteredCouponEvent (storeID='STR0001') wherer cast(targetAge,int)>20;
Log output (Note that in the example below, newlines have been added for readability only (lines 1 to 6). The actual output does not have newlines.)
2012-07-15 13:51:18,843 [ERROR] CSPF_CEP: ERROR: cep20201e: EPL module file access
failure. EngineId=CepEngine, FILE=/etc/opt/FJSVcep/resources/CepEngine/rules/SampleRule.
epl, ERRORINFO=com.espertech.esper.client.deploy.DeploymentActionException: Compilation
failed in module url '/etc/opt/FJSVcep/resources/CepEngine/rules/SampleRule.epl' in
expression '@Name('EPL3')@DebugLogListenerselect * from Filt...(115 chars)' : Incorrect
syntax near 'cast' (a reserved keyword) at line 3 column 61, please check the from
clause [@Name('EPL3')
@DebugLogListener
select * from FilteredCouponEvent (storeID='STR0001') wherer cast(targetAge,int)>20]
Explanation of log output:
ERRORINFO=...
Error information will be output following this ERRORINFO parameter.
Compilation failed...
This is a broad error classification. "Compilation failed" or "Deployment failed" will be output.
SampleRule
This is the development asset ID of the rule definition in which the error occurred.
Incorrect syntax...
This is the error message. It indicates that there is a syntax error near "cast" in line 3, column 61 from the beginning of complex event processing statement in which the error occurred.
@Name('EPL3')...
This is the complex event processing statement in which the error occurred. In this example, the "wherer" before "cast" should actually be "where", and the extra "r" has caused a syntax error.