Hide Forgot
Description of problem: When an exception is thrown from a service (or handler), the resulting response event does not contain a 'replyTo' id which is required to tie it to the originating request. Version-Release number of selected component (if applicable): How reproducible: Use the switchyard validate-xml example, and observe the stored activity events (with tracing set to FINEST). The normal 'replyToId' field is missing from the response. Steps to Reproduce: 1. Deploy the validate-xml switchyard example 2. Send the invalidate example xml message 3. View the FINEST logs to see the JPAActivityStore.store method's debug info showing the json representation of the events being stored Actual results: [{ "id":"f6a571b7-896a-4514-a1fa-90742f65ee88", "activityTypes":[{ "type":"RequestReceived", "interface":"{urn:switchyard-quickstart:validate-xml:0.1.0}OrderService", "operation":"submitOrder", "serviceType":"{urn:switchyard-quickstart:validate-xml:0.1.0}OrderService", "messageType":"{urn:switchyard-quickstart:validate-xml:0.1.0}order", "context":[{"value":"ID-gbrown-redhat-54552-1378282347581-0-4","type":"Message"}], "unitId":"f6a571b7-896a-4514-a1fa-90742f65ee88", "timestamp":1378282559345 },{ "type":"ResponseSent", "interface":"{urn:switchyard-quickstart:validate-xml:0.1.0}OrderService", "operation":"submitOrder", "serviceType":"{urn:switchyard-quickstart:validate-xml:0.1.0}OrderService", "content":"org.switchyard.HandlerException: Validator 'org.switchyard.validate.xml.internal.XmlValidator' failed: 1 validation error(s): \norg.xml.sax.SAXParseException: cvc-complex-type.2.4.d: Invalid content was found starting with element 'invalid-element'. No child element is expected at this point.\n", "context":[{"type":"Message"}], "unitId":"f6a571b7-896a-4514-a1fa-90742f65ee88", "unitIndex":1, "timestamp":1378282559394 }], "origin":{"host":"gbrown-redhat","thread":"http-localhost.localdomain/127.0.0.1:8080-1","node":"gbrown-redhat"} }] Expected results: The response should have the 'replyTo' id matching the request's message id. Additional info:
Gary Brown <gary> updated the status of jira RTGOV-262 to Resolved
Verified in ER3
Gary Brown <gary> updated the status of jira RTGOV-262 to Closed