TIBCO BusinessWorks (BW) throws an SAXException (validation error) when TIBCO BusinessEvents returns the reply Event to BW activity SOAPRequestReply (WSDL used in BW activity exported from TIBCO BusinessEvents project).
book
Article ID: KB0086569
calendar_today
Updated On:
Products
Versions
TIBCO BusinessEvents Enterprise Edition
-
Not Applicable
-
Description
Resolution: Description: =========== TIBCO BusinessWorks (BW) throws an SAXException (validation error) when TIBCO BusinessEvents returns the reply Event to BW activity SOAPRequestReply (WSDL used in BW activity exported from TIBCO BusinessEvents project).
Environment: =========== TIBCO BusinessEvents 5.1.x TIBCO BusinessWorks 5.10/5.11 All Operating Systems
Symptoms: ========= BWEngine throws the following exception:
<timestamp> <projectName> Error [BW-Core] BWENGINE-100031 Job-27000 Error in [<processURL>] Output data invalid at com.tibco.pe.core.TaskImpl.a(Unknown Source) at com.tibco.pe.core.TaskImpl.eval(Unknown Source) at com.tibco.pe.core.Job.a(Unknown Source) at com.tibco.pe.core.Job.k(Unknown Source) at com.tibco.pe.core.JobDispatcher$JobCourier.a(Unknown Source) at com.tibco.pe.core.JobDispatcher$JobCourier.run(Unknown Source) caused by: org.xml.sax.SAXException: validation error: unexpected content "{www.tibco.com/be/ontology/<eventURL>/body}<elementName>"; expected "{http://www.tibco.com/be/ontology/<eventURL>/body}<elementName>" ({com.tibco.xml.validation}COMPLEX_E_UNEXPECTED_CONTENT) at /outputMessage[1]/ns0:<elementName>[1] com.tibco.xml.validation.exception.UnexpectedElementException: unexpected content "{www.tibco.com/be/ontology/<eventURL>/body}<elementName>"; expected "{http://www.tibco.com/be/ontology/<eventURL>/body}<elementName>" at com.tibco.xml.validation.state.a.c.a(CMElementValidationState.java:476) at com.tibco.xml.validation.state.a.c.a(CMElementValidationState.java:270) at com.tibco.xml.validation.state.driver.ValidationJazz.c(ValidationJazz.java:993) at com.tibco.xml.validation.state.driver.ValidationJazz.b(ValidationJazz.java:898) at com.tibco.xml.validation.state.driver.ValidationJazz.endAttributes(ValidationJazz.java:783) at com.tibco.xml.validation.state.glue.XmlTreeNodeValidationDriver.xmlTreeNode(XmlTreeNodeValidationDriver.java:87) at com.tibco.xml.validation.state.glue.XmlTreeNodeValidationDriver.xmlTreeNode(XmlTreeNodeValidationDriver.java:92) at com.tibco.xml.validation.state.glue.XmlTreeNodeValidationDriver.xmlTreeNode(XmlTreeNodeValidationDriver.java:129) at com.tibco.xml.xdata.bind.BindingRunner.validate(Unknown Source) at com.tibco.xml.xdata.bind.OutputBindingRunner.validate(Unknown Source) at com.tibco.pe.core.TaskImpl.a(Unknown Source) at com.tibco.pe.core.TaskImpl.eval(Unknown Source) at com.tibco.pe.core.Job.a(Unknown Source) at com.tibco.pe.core.Job.k(Unknown Source) at com.tibco.pe.core.JobDispatcher$JobCourier.a(Unknown Source) at com.tibco.pe.core.JobDispatcher$JobCourier.run(Unknown Source) validation error: no declaration for element "{www.tibco.com/be/ontology/<eventURL>/body}<elementName>" ({com.tibco.xml.validation}COMPLEX_E_MISSING_ELEMENT_DECLARATION) at /outputMessage[1]/ns0:<elementName>[1] com.tibco.xml.validation.exception.MissingDeclarationException: no declaration for element "{www.tibco.com/be/ontology/<eventURL>/body}<elementName>" at com.tibco.xml.validation.state.driver.ValidationJazz.b(ValidationJazz.java:906) at com.tibco.xml.validation.state.driver.ValidationJazz.endAttributes(ValidationJazz.java:783) at com.tibco.xml.validation.state.glue.XmlTreeNodeValidationDriver.xmlTreeNode(XmlTreeNodeValidationDriver.java:87) at com.tibco.xml.validation.state.glue.XmlTreeNodeValidationDriver.xmlTreeNode(XmlTreeNodeValidationDriver.java:92) at com.tibco.xml.validation.state.glue.XmlTreeNodeValidationDriver.xmlTreeNode(XmlTreeNodeValidationDriver.java:129) at com.tibco.xml.xdata.bind.BindingRunner.validate(Unknown Source) at com.tibco.xml.xdata.bind.OutputBindingRunner.validate(Unknown Source) at com.tibco.pe.core.TaskImpl.a(Unknown Source) at com.tibco.pe.core.TaskImpl.eval(Unknown Source) at com.tibco.pe.core.Job.a(Unknown Source) at com.tibco.pe.core.Job.k(Unknown Source) at com.tibco.pe.core.JobDispatcher$JobCourier.a(Unknown Source) at com.tibco.pe.core.JobDispatcher$JobCourier.run(Unknown Source) at com.tibco.xml.xdata.bind.BindingRemarkHandler.assertNoErrors(Unknown Source) at com.tibco.xml.xdata.bind.BindingRunner.validate(Unknown Source) at com.tibco.xml.xdata.bind.OutputBindingRunner.validate(Unknown Source) at com.tibco.pe.core.TaskImpl.a(Unknown Source) at com.tibco.pe.core.TaskImpl.eval(Unknown Source) at com.tibco.pe.core.Job.a(Unknown Source) at com.tibco.pe.core.Job.k(Unknown Source) at com.tibco.pe.core.JobDispatcher$JobCourier.a(Unknown Source) at com.tibco.pe.core.JobDispatcher$JobCourier.run(Unknown Source)
Resolution: ======== Update the TIBCO BusinessEvents project and define a XML "Element Reference" in the Event payload body of the reply Event instead of an "Element of Type" parameter.
Issue/Introduction
TIBCO BusinessWorks (BW) throws an SAXException (validation error) when TIBCO BusinessEvents returns the reply Event to BW activity SOAPRequestReply (WSDL used in BW activity exported from TIBCO BusinessEvents project).