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

This product reached the end of support date on March 31, 2021.

Java exception detection

carlos_chang
Inactive

Hi Team,

Our application run with java exception:

ERROR [stdout] (http-/) c.f.n.s.s.c.CcProcessorAPI[90] String index out of range: 8

java.lang.StringIndexOutOfBoundsException: String index out of range: 8

at java.lang.String.substring(String.java:1907) ~[na:1.7.0_65]

at com.fet.npg.service.sdk.cc.CcProcessorLogicAcquireCallback.handleCub(CcProcessorLogicAcquireCallback.java:105) ~[npg-service-19.10.jar:na]

at com.fet.npg.service.sdk.cc.CcProcessorLogicAcquireCallback.process(CcProcessorLogicAcquireCallback.java:72) ~[npg-service-19.10.jar:na]

at com.fet.npg.service.sdk.cc.CcProcessorLogic.doBusiness(CcProcessorLogic.java:159) ~[npg-service-19.10.jar:na]


But when I check it on APPMon, it shows no exception only logback, I find it hard to identify the problem in the first place.

Is this some kind of bug or it's a configuration issue?


3 REPLIES 3

Enrico_F
Pro

Exception classes from the java.lang package are ignored by default. This can be changed in the exceptions sensor properties for the agent group.


Joe_Hoffman
Dynatrace Leader
Dynatrace Leader

Be careful about adding exception rules for java.lang classes as the overhead from this can be non-trivial due to the number of times that exception might be thrown. You can mitigate this to a degree by not capturing stack traces or limiting the depth of the captured stack trace.


carlos_chang
Inactive

Good to know, thanks guys.

In this case, is it possible to see the content of string index?