web stats
Mirth Community - View Single Post - Strict Parser Error
View Single Post
Old 07-17-2014, 07:57 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
Join Date: Oct 2010
Posts: 7,124
narupley is on a distinguished road

Originally Posted by seaston View Post
Thanks Nick, but I would have expected the parser to respond with a nack rather than just error and give no response. Should this be considered as a bug?
Why would the parser do that? The parser's job is to serialize ER7 to XML and since it wasn't able to do that it spit out a specific, correct exception:

ca.uhn.hl7v2.HL7Exception: Can't XML-encode a GenericMessage.  Message must have a recognized structure.
 at ca.uhn.hl7v2.parser.XMLParser.doEncode(XMLParser.java:262)
 at ca.uhn.hl7v2.parser.Parser.encode(Parser.java:243)
 at com.mirth.connect.plugins.datatypes.hl7v2.ER7Serializer.toXML(ER7Serializer.java:199)
 at com.mirth.connect.donkey.server.channel.FilterTransformerExecutor.processConnectorMessage(FilterTransformerExecutor.java:91)
 at com.mirth.connect.donkey.server.channel.Channel.process(Channel.java:1266)
 at com.mirth.connect.donkey.server.channel.Channel.dispatchRawMessage(Channel.java:956)
 at com.mirth.connect.donkey.server.channel.SourceConnector.dispatchRawMessage(SourceConnector.java:175)
 at com.mirth.connect.server.controllers.DonkeyEngineController.dispatchRawMessage(DonkeyEngineController.java:520)
 at com.mirth.connect.server.servlets.MessageObjectServlet$2.run(MessageObjectServlet.java:193)
 at java.lang.Thread.run(Unknown Source)
If you're auto-generating an HL7 ACK (set on the source connector response settings), then the response sent back will be a NACK. I just tested by using a TCP Sender to a TCP Listener. Sent in this message:

Got back this response, as expected:

MSA|AE|1|An Error Occurred Processing Message.
If I change MSH.9.3 to "ADT_A01", then everything processes successfully.
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.

- How do I foo?
- You just bar.
Reply With Quote