Question

App message fails in IFS9 with transformer error

  • 26 September 2022
  • 4 replies
  • 102 views

Badge +2

Hi,

I have an app message that fails in IFS9. According to the error message below it has to do with the transformer.

Error while preparing input data.
Caused by: ifs.fnd.base.SystemException: Transformer error : java.lang.ArrayIndexOutOfBoundsException: -1
Caused by: javax.xml.transform.TransformerException: java.lang.ArrayIndexOutOfBoundsException: -1
Caused by: java.lang.ArrayIndexOutOfBoundsException: -1

Its a very rare problem. Almost all messages of the same type are processed without error.

Does someone know how to solve it?


4 replies

Userlevel 3
Badge +10

Not knowing which message type this is means my reply is going to be generic.  When processing a file in one of the inboxes it could be handed off to a transformer whose job it is to read the file and pass it along to a routine to process the message.  That transformer is java code.  It is either the generic reader or it could be part of a custom BizAPI.

Usually this results from an XML file that contains more elements that what is expected.

Badge +2

Thanks for your reply!
This is an outbound message sent to third party. We use FILE as Transport Connector and the default file sender is used.

Its very strange if the XML is not the same for every message. But I will compare when we get the error next time.

Any other suggestions?

Userlevel 3
Badge +10

Is there an element that is normally repeated, but in these instances it has no repeated elements.  For example do you have something like a Purchase Order that has not lines?

The other thought that occurred to me is that the error references “-1” as the invalid index.  Is this perhaps a customer order and the index value being used is the line_item_no of the customer order line?  If so -1 indicates the Package header line.

Badge +2

Now i realize that I havent mentioned that these messages are getting processed correctly when they are restarted. Sorry for that!

So I dont think it has to do with the XML.
Today morning an inbound message in another queue failed with almost the same error. Only difference was that the “-1” was not present. Last row ended with “null” like below:
Caused by: java.lang.ArrayIndexOutOfBoundsException: null

 

Reply