hapi-hl7v2
hapi-hl7v2 copied to clipboard
ApplicationRouterImpl will catch all Exceptions including IllegalArgumentException
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.