web stats
Mirth Community - View Single Post - Strict Parser Error
View Single Post
  #4  
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
Default

Quote:
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:

Code:
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:

Code:
MSH|^~\&|||||||ADT^A08^ADT_A08|||2.4||||||windows-1252
PID|||41509892||Teak^Anne||19591005000000
Got back this response, as expected:

Code:
MSH|^~\&|MIRTH||||20140717075643||ACK^A08^ACK|20140717075643|P|2.4
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