• /
  • EnglishEspañolFrançais日本語한국어Português
  • 로그인지금 시작하기

Kotlin instrumentation not reporting

|View as Markdown (English)

Problem

If you are missing instrumentation in your Kotlin app, set agent logs to be at the finest level.

The logs should mention ArrayIndexOutOfBoundsException. Customers with agent version 8.2.0 and up will see the following messge:

Unexpected ArrayIndexOutOfBoundsException thrown during class transformation. Try restarting the Java Agent with flag -Dnewrelic.config.class_transformer.clear_return_stacks=true

Solution

Make sure that the Java agent version is 8.20 or later. If the installed version is earlier than 8.20, upgrade the Java agent to a supported version (the latest version is recommended).

Restart the Java Agent or your Java app with the system property:

-Dnewrelic.config.class_transformer.clear_return_stacks=true
Copyright © 2026 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.