BTW, I get the same problem when trying to insert ERR: Caused by: ca.uhn.hl7v2.HL7Exception: Invalid index: 1, structure ERR must be between 0 and 0 at ca.uhn.hl7v2.model.AbstractGroup.insertRepetition(AbstractGroup.java:475) at ca.uhn.hl7v2.model.AbstractGroup.insertRepetition(AbstractGroup.java:505) at ca.uhn.hl7v2.model.v26.message.ACK.insertERR(ACK.java:255) ... 107 more
I was under the impression that v 2.5 and higher allow for multiple ERR repetitions - am I wrong? On Mar 2, 2013, at 10:26 AM, Eugene Berman <eugene.ber...@mulesoft.com> wrote: > I'm running into issues when trying to populate multiple ERR of v2.6 NACK > message. The documentation states that getERR(int rep) creates a new > repetition if necessary; however I get this when trying to run my code: > > ERROR 2013-03-02 10:22:00,526 [Thread-33] ca.uhn.hl7v2.model.v26.message.ACK: > Unexpected error accessing data - this is probably a bug in the source code > generator. > ca.uhn.hl7v2.HL7Exception: Can't return repetition #1 of ERR - there are only > 0 repetitions. > at ca.uhn.hl7v2.model.AbstractGroup.get(AbstractGroup.java:147) > at ca.uhn.hl7v2.model.AbstractGroup.getTyped(AbstractGroup.java:155) > at ca.uhn.hl7v2.model.v26.message.ACK.getERR(ACK.java:218) > > I use HAPI 2.0. Wondering if it is really a bug or user error. > > -- > Eugene Berman > Sr. Enterprise Solutions Engineer > ---- > 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! > > > -- Eugene Berman Sr. Enterprise Solutions Engineer ---- 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! ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb _______________________________________________ Hl7api-devel mailing list Hl7api-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hl7api-devel