Error sending request to Trading Partner: Message: String index out of range:

Error sending request to Trading Partner: Message: String index out of range:

book

Article ID: KB0085521

calendar_today

Updated On:

Products Versions
TIBCO BusinessConnect -
Not Applicable -

Description

Description:
When sending an 'HTTP' outbound request to Trading Partner, the following error appears in the Log Viewer.

"Error sending request to Trading Partner: Message: String index out of range: " 



Symptoms:
When you send an outbound HTTP request to TP, the transaction may fail with the following in the BC log file, which can be located in \\Tibco\tra\domain\domain_name\application\logs\.

2014 Jul 29 11:27:00:923 GMT -0700 BW.BusinessConnect-Interior_Server Error [bw.logger] BW-EXT-LOG-100000 Job-18076.18076
 java.lang.StringIndexOutOfBoundsException: String index out of range: -8
at java.lang.String.substring(Unknown Source)
at com.tibco.ax.fw.runtime.outbound.transport.http.HTTPTransport.sendRequest(HTTPTransport.java:591)
at com.tibco.ax.fw.runtime.outbound.transport.http.HTTPTransport.send(HTTPTransport.java:149)
at com.tibco.ax.fw.runtime.outbound.transport.TransportBase.run(TransportBase.java:47)
at com.tibco.pe.util.ThreadPool$ThreadPoolThread.run(Unknown Source)

Cause:
When you specify the outbound HTTP URL as "tibco.com:6700", then you may see this problem.
You can verify this URL in Admin/BC/Participants/Particpant_Name/Protocols/Protocol_Name/Transports/Http

Issue/Introduction

Error sending request to Trading Partner: Message: String index out of range:

Resolution

Make sure that the URL has a slash ('/') after the port number. The URL in Admin/BC/Participants/Particpant_Name/Protocols/Protocol_Name/Transports/Http, looks like "tibco.com:6700/"

The HTTP outbound URL should be:  http://tibco.com:6700/