Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1148729

Summary: Confusing "timeout" exception when calling hl7/mina sync service which returns null value
Product: [JBoss] JBoss Fuse Service Works 6 Reporter: Martin Swiech <mswiech>
Component: CamelAssignee: Nobody <nobody>
Status: CLOSED UPSTREAM QA Contact: Matej Melko <mmelko>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: ganandan, mvecera, soa-p-jira
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-02-10 03:43:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
reproducer test none

Description Martin Swiech 2014-10-02 08:37:15 UTC
Description of problem:
There is confusing "timeout" exception when calling hl7/mina sync service which returns null value


Version-Release number of selected component (if applicable):
Switchyard 2.0.0.Alpha2; Camel 2.12.2

How reproducible:
always

Steps to Reproduce:
1. Create switchyard application with service with camel hl7/mina binding. This service returns null value.
2. Create hl7/mina camel binding client which calls this service using sync=true in the url.


Actual results:
This call ends almost immediately (there is nothing like 30 sec timeout) with exception:

org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[Message: [Body is null]]
        at org.apache.camel.util.ObjectHelper.wrapCamelExecutionException(ObjectHelper.java:1368)
        at org.apache.camel.util.ExchangeHelper.extractResultBody(ExchangeHelper.java:622)
........
Caused by: org.apache.camel.ExchangeTimedOutException: The OUT message was not received within: 30000 millis. Exchange[Message: MSH|^~\&|MYSENDER|MYRECEIVER|MYAPPLICATION||200612211200||QRY^A19|1224|P|2.4^MQRD|200612211200|R|I|GetPatient|||1^RD|0101701234|DEM^M]
        at org.apache.camel.component.mina2.Mina2Producer.doProcess(Mina2Producer.java:179)
        at org.apache.camel.component.mina2.Mina2Producer.process(Mina2Producer.java:112)



Expected results:
Exception "org.apache.camel.ExchangeTimedOutException: The OUT message was not received within: 30000 millis." is very confusing, and I think It should't be here. There is nothing like 30 sec timeout in this case.


Additional info:
I am not sure, but the bug could be also the whole exception. Shouldn't is just return null value instead of throwing exception?

Comment 1 Martin Swiech 2014-10-02 08:45:53 UTC
Created attachment 943333 [details]
reproducer test

Comment 2 Martin Swiech 2014-10-02 08:48:02 UTC
I think the problem is basicly in mina, not only hl7. And I think it's in mina/camel client.

Comment 7 Red Hat Bugzilla 2025-02-10 03:43:09 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.