Inbound PIPs fail with "PIP terminated - Error deciphering inbound message: com.tibco.ax.rosettanet.doc.RoDocException: java.lang.ArrayIndexOutOfBoundsException: 1 ;= 1"

Inbound PIPs fail with "PIP terminated - Error deciphering inbound message: com.tibco.ax.rosettanet.doc.RoDocException: java.lang.ArrayIndexOutOfBoundsException: 1 ;= 1"

book

Article ID: KB0089421

calendar_today

Updated On:

Products Versions
TIBCO BusinessConnect -
Not Applicable -

Description

Resolution:

There are two workarounds for this issue:

1). This exception occurs if the payload has an exceptionally long line in it.  As a workaround, break the long line(s) in the payload using CR/LF so that smaller lines (each ~10 KB) will be present in payload.
 
 2). Check the Content-Type in the message. It should be multipart/signed instead of multipart/related since it was a signed PIP. In this case, ask your trading partner to alter the RosettaNet MIME header. 

For example, instead of:
 
 ------=_Part_44_1193100861.1395200515709
Content-Type: multipart/related; boundary="89d62387-6f3c-4cbd-895a-5fd9089b302a.NNREDI3"; type="multipart/related".

It should be:

[ ------=_Part_44_1193100861.1395200515709

Content-Type: multipart/related; boundary="89d62387-6f3c-4cbd-895a-5fd9089b302a.NNREDI3"; type="multipart/signed".

Issue/Introduction

Inbound PIPs fail with "PIP terminated - Error deciphering inbound message: com.tibco.ax.rosettanet.doc.RoDocException: java.lang.ArrayIndexOutOfBoundsException: 1 ;= 1"

Additional Information

BusinessConnect RosettaNet Protocol User's Guide