Marshall to bytes method fails with Array Out Index Out Of Bounds (Doc ID 1903807.1)

Last updated on NOVEMBER 03, 2016

Applies to:

Oracle Java CAPS - Version 5.1.3 and later
Information in this document applies to any platform.

Goal

We use a generic OTD to process a HL7 message, looping through each segment, find segment not required, then using HL7_GENERIC_EVT.removeSEG( varSegmentCounter ); to remove the non-required segment.
Unfortunately the marshall to bytes method then fails with an array out of bounds.

Is there a reset to run after the remove.SEG method to reset the pointer/array?
 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms