Java service error - String Index out of range

we are calling a java service and receiving message embeded in response as
“String index out of range: -1”
but the same service when invoked from other servers with same input gives us correct response.
any ideas please

thanks,
mandar.

One likely possibility is that something is trying to locate a specific character in a string (something other than the input data), and then doing a substring. The find isn’t finding the character and so is returning -1. Then the code isn’t checking that result, and is trying to do a substring of the string. Which fails.

Search for uses of pub.string:indexOf and/or pub.string:substring to help you zero in on the offending code.