cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Ignore specific messages

Jubin.Patel
Voyager

Hi Team,

 

How can we ignore highlighted messages from AppDynamics

 

java.lang.StringIndexOutOfBoundsException


String index out of range: 34
at java.lang.String.substring(String.java:2666)
at com.****.***.util.authentication.DecryptMyString.getOriginalString(DecryptMyString.java:76)
at com.****.***.****.authenticate*****(****.java:274)
at com.ibm._jsp._****Login._jspService(_****Login.java:175)

 

Any suggestions.

1 REPLY 1

mark.vanber
Creator

When using the Java substring() method, a subset of the character sequence can be extracted from a string. The substring index must be any value from 0 to the length of a string. The java.lang.StringIndexOutOfBoundsException thrown by String methods to indicate that the beginIndex is negative , or endIndex is larger than the length of this String object, or beginIndex is larger than endIndex.

 

How to solve the StringIndexOutOfBoundsException:

 

  • Check the length of the string before using substring()
  • Exception handling using try...catch.