question

Carlos C. avatar image
Carlos C. asked ·

Java exception detection

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?

configurationjava7.2
1574308107941.png (89.7 KiB)
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Carlos C. avatar image
Carlos C. answered ·

Good to know, thanks guys.

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

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Joe H. avatar image
Joe H. answered ·

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.

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Enrico F. avatar image
Enrico F. answered ·

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

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.