In BusinessWorks, the BusinessConnect palette Send Request/Notification task throws an exception when a timeout occurs while waiting for a response from BC.

In BusinessWorks, the BusinessConnect palette Send Request/Notification task throws an exception when a timeout occurs while waiting for a response from BC.

book

Article ID: KB0092277

calendar_today

Updated On:

Products Versions
TIBCO BusinessConnect -
Not Applicable -

Description

Description:
In BusinessWorks, the BusinessConnect palette Send Request/Notification task throws an exception when a response is not received from BC when "Don't Wait for a Response" is unchecked.

The exception looks something like this:

<?xml version = "1.0" encoding = "UTF-8"?>
&ltns0:ErrorReport xmlns:ns0 = "http://www.tibco.com/pe/EngineTypes">
    &ltStackTrace&gtJob-116000 Error in Error output data invalid
    at com.tibco.pe.core.TaskImpl.handleError(TaskImpl.java:736)
    at com.tibco.pe.core.TaskImpl.eval(TaskImpl.java:618)
    at com.tibco.pe.core.Job.a(Job.java:712)
    at com.tibco.pe.core.Job.k(Job.java:502)
    at com.tibco.pe.core.JobDispatcher$JobCourier.a(JobDispatcher.java:249)
    at com.tibco.pe.core.JobDispatcher$JobCourier.run(JobDispatcher.java:200)
caused by: org.xml.sax.SAXException: validation error: no declaration for element "{http://schemas.tibco.com/bw/pe/plugin/5.0/exceptions}ActivityTimedOutException"   ({com.tibco.xml.validation}COMPLEX_E_MISSING_ELEMENT_DECLARATION) at /{http://schemas.tibco.com/bw/pe/plugin/5.0/exceptions}ActivityTimedOutException[1]
com.tibco.xml.validation.exception.i: no declaration for element "{http://schemas.tibco.com/bw/pe/plugin/5.0/exceptions}ActivityTimedOutException"
    at com.tibco.xml.validation.state.c.a.a(ValidationJazz.java:369)
    at com.tibco.xml.validation.state.glue.e.xmlTreeNode(XmlTreeNodeValidationDriver.java:72)
    at com.tibco.xml.validation.state.glue.e.xmlTreeNode(XmlTreeNodeValidationDriver.java:129)
    at com.tibco.xml.xdata.bind.BindingRunner.validate(Unknown Source)
    .
    .
    .
    .
This is a known issue in the BC palette.

To work around this issue, use an error transition in the process that contains the Send Request/Notification task, and parse the error body for the string “ActivityTimedOutException” to handle this specific error.
Symptoms:

Cause:

Issue/Introduction

In BusinessWorks, the BusinessConnect palette Send Request/Notification task throws an exception when a timeout occurs while waiting for a response from BC.