EM 12c: Metric Extension Alert in Enterprise Manager 12c Cloud Control: Java.lang.IndexOutOfBoundsException: Index: 2, Size: 1 (Doc ID 1995824.1)

Last updated on APRIL 08, 2015

Applies to:

Enterprise Manager Base Platform - Version and later
Information in this document applies to any platform.


Creating a SQL Adapter Metric Extension (ME) with fewer columns than the referenced query (i.e. ME 'Columns' Step=1 column, SQL Adapter Query=3 columns) may show the following error when testing this ME:

Failed to get test Metric Extension metric result : Index: 2, Size: 1


If the entered query is not tested (see the 'Run Test' button) during the ME creation process, the ME may deploy successfully, but subsequent ME action will send a Critical Alert email including this error message:

java.lang.IndexOutOfBoundsException: Index: 2, Size: 1


An error similar to the following may be logged in the <AGENT_BASE>/agent_inst/sysman/log/gcagent.log file:



Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms