Splunk AppDynamics

Ignore specific messages

Jubin_Patel1
New Member

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.

Labels (3)
0 Karma

markvanber
Explorer

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.
Get Updates on the Splunk Community!

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureOn Demand Now Step boldly into the AI revolution with enhanced security ...