hapi-hl7v2 icon indicating copy to clipboard operation
hapi-hl7v2 copied to clipboard

ApplicationRouterImpl will catch all Exceptions including IllegalArgumentException

Open davidweisgerber opened this issue 1 year ago • 3 comments

We have a problem that a customer sends us some invalid HL7 message that contains a line break inside an ORC segment. When receiving this message by TCP/IP, the constructor of ca.uhn.hl7v2.parser.NonStandardStructureDefinition will throw an IllegalArgumentException that is not handled in ApplicationRouterImpl and the exception is only handled at the Runner level. This means that the sender of the message will never receive any NACK or something else. Instead it will just receive nothing until the connection times out. This patch is meant to fix this behaviour.

davidweisgerber avatar Feb 14 '24 10:02 davidweisgerber