OK, so digging deeper into the issue, I found that the segment delimiter is 
hardcoded to "\r", but standard Unix file endings are "\n", so obviously parses 
would fail. So my question is, what is the standard best practice here? Should 
the application convert all \n to \r prior to parsing, or should if reject the 
message? Is this a bug in HAPI or is it an expected behavior?

-- 
Eugene Berman
Sr. Enterprise Solutions Architect
----
MuleSoft Inc.
77 Geary Street, Ste. 400
San Francisco, CA 94108
Office: 415 229 2063
Website: http://www.mulesoft.com <http://www.mulesoft.com/> 
---
Entia non sunt multiplicanda praeter necessitatem!



On Oct 17, 2013, at 7:01 AM, Eugene Berman <eugene.ber...@mulesoft.com> wrote:

> Folks, I'm running into a very strange issue. Some of my messages are not 
> parsed correctly and resulting in the following exception:
> 
> Root Exception stack trace:
> ca.uhn.hl7v2.HL7Exception: Can't process message of version '2.3
> EVN' - version not recognized
>       at ca.uhn.hl7v2.parser.Parser.parse(Parser.java:189)
> 
> I created a test message in the HAPI test panel and saved it three times - 
> with HL7 line endings, UNIX line endings and Windows line endings. HL7 and 
> Windows versions are parsed correctly, but the UNIX one throws that 
> exception. Wondering if there's a known issue in HAPI 2.0 or am I missing any 
> settings?
> 
> Thank you,
> 
> E.
> 
> -- 
> Eugene Berman
> Sr. Enterprise Solutions Architect
> ----
> MuleSoft Inc.
> 77 Geary Street, Ste. 400
> San Francisco, CA 94108
> Office: 415 229 2063
> Website: http://www.mulesoft.com <http://www.mulesoft.com/> 
> ---
> Entia non sunt multiplicanda praeter necessitatem!
> 
> 
> 


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to