IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

(java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -1 Error documentToRecord

  • 1.  (java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -1 Error documentToRecord

    Posted Tue October 19, 2021 03:07 PM

    Hi All,

    We have a flow which processes documents into our ERP. It works perfectly well but then just randomly throws the following error when going through a list of files…

    pub.web:documentToRecord sefail: Array index out of range: -1

    What is a sefail?

    … I’ve checked the document contents and here is nothing untoward.

    Any guidance on this would be warmly received as I can’t find anything similar in other posts.

    Thank you.


    #webMethods
    #Adapters-and-E-Standards
    #Integration-Server-and-ESB
    #B2B-Integration
    #edi


  • 2.  RE: (java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -1 Error documentToRecord

    Posted Tue October 19, 2021 04:03 PM

    This service was deprecated a long time ago; you must consider an upgrade.

    Anyhow, this doesn’t happen without a problem with the data structure; do investigate your pipeline closely.
    You can add a step in the Catch block to write the current data item to the logs for closer investigation/comparison against a successful item.

    Try setting the makeArrays parameter to false (this is from pub.xml:xmlNodeToDocument from later version, but this should still apply) -

    KM


    #B2B-Integration
    #Integration-Server-and-ESB
    #edi
    #webMethods
    #Adapters-and-E-Standards


  • 3.  RE: (java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -1 Error documentToRecord

    Posted Thu October 28, 2021 10:36 PM

    Hi DS,

    I think you can try to reprocess using the same document, save pipeline to file, then restore from pipeline to debug the service, normally it should be the data structure issue.

    Thanks


    #webMethods
    #edi
    #Integration-Server-and-ESB
    #B2B-Integration
    #Adapters-and-E-Standards