I am facing a weird problem and I know I am missing something somewhere- basically I am trying to do a validation and hence need to loop over In array:x12envelope/ISA and out array :new820array/ISA.But after I loop over x12/ISA envelope I need to check if the ISA06(Sender) is ABC then only build the out array else do nothing. I thought this was fairly simple and put a branch there but everytime I seem to get this error:
java.lang.IllegalArgumentException: array element type mismatch
The reason being I think that in my test file there are 2 ISA segments and so x12envelope/ISA has ISA from XYZ and ISA from ABC. When I branch in the case of first ISA I do nothing and so the ISA shows up as *null.This I think is causing the problem. I am not sure I am explaing this right - so please free to ask me more questions.