Environment: =========== BusinessEvents: 4.x All Operating Systems
Symptoms: ========= Upon starting BusinessEvents engine the following exception is seen:
C:\be-tibco\be\4.0\bin>be-engine.exe -c project.cdd -u processingUnit project.ear Using property file: C:\be-tibco\be\4.0\bin\be-engine.tra java.lang.RuntimeException: Cannot read CDD: project.cdd at com.tibco.cep.runtime.session.RuleServiceProviderManager.createBEProperties(RuleServiceProviderManager.java:121) at com.tibco.cep.runtime.session.RuleServiceProviderManager.newProvider(RuleServiceProviderManager.java:339) at com.tibco.cep.container.standalone.BEMain.jumpStart(BEMain.java:104) Caused by: com.tibco.xml.validation.exception.UnexpectedTextException: unexpected text at com.tibco.xml.channel.remark.helpers.XmlRemarkToError.error(XmlRemarkToError.java:148) at com.tibco.xml.validation.state.driver.ValidationJazz.a(ValidationJazz.java:472) at com.tibco.xml.validation.state.driver.ValidationJazz.text(ValidationJazz.java:1109) ... 3 more Caused by: com.tibco.xml.validation.exception.UnexpectedTextException: unexpected text at com.tibco.xml.validation.state.driver.ValidationJazz.text(ValidationJazz.java:1093) ... 22 more System exit requested by thread [main] with status: -1 System.exit(..) will be invoked now with status: -1
Cause: ======
1). Copying text from a different file (IE - Internet Explorer or a text file) to the Cluster Deployment Descriptior(cdd) file. Copied text having special characters.
Or
2). Specifying an incorrect processing unit(PU) name than the one defined in the CDD file.
Resolution: ========= Open the file in a text editor (notepad++) and select the encoding without BOM (ByteOrderMarks). The special characters in the cdd file will be seen. Remove the special characters and then restart the BE engine.
Make sure the correct PU name is specified when starting the BE engine. Example: In the CDD file, CachePU is defined as the Cache Server PU but while starting from BE engine, user specifies "-c cache" instead of "-c CachePU".
Issue/Introduction
java.lang.RuntimeException: Cannot read CDD: project.cddCaused by: com.tibco.xml.validation.exception.UnexpectedTextException: unexpected text