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.
#webMethods#Flow-and-Java-services#Integration-Server-and-ESB