My Oracle Support Banner

Oracle JDBC Connection Using SCAN Fails With java.lang.ArrayIndexOutOfBoundsException: -1 (Doc ID 1586834.1)

Last updated on FEBRUARY 14, 2018

Applies to:

JDBC - Version and later
Oracle WebLogic Server - Version 10.3.6 to 10.3.6
Information in this document applies to any platform.


Testing an Oracle JDBC connection with the next section of code:

fails with the next error:

Aug 26, 2013 11:59:10 AM oracle.jdbc.driver.OracleDriver registerMBeans
WARNING: Error while registering Oracle JDBC Diagnosability MBean. access denied ( createMBeanServer)
at java.lang.SecurityManager.checkPermission(
at oracle.jdbc.driver.OracleDriver.registerMBeans(
at oracle.jdbc.driver.OracleDriver$
at Method)
at oracle.jdbc.driver.OracleDriver.(
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
at java.lang.reflect.Constructor.newInstance(
at java.lang.Class.newInstance0(
at java.lang.Class.newInstance(
at sun.misc.Service$
at Method)
at java.sql.DriverManager.loadInitialDrivers(
at java.sql.DriverManager.initialize(
at java.sql.DriverManager.getConnection(
at java.sql.DriverManager.getConnection(

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -1
at oracle.jdbc.driver.T4CTTIoauthenticate.setSessionFields(
at oracle.jdbc.driver.T4CTTIoauthenticate.(
at oracle.jdbc.driver.T4CConnection.logon(
at oracle.jdbc.driver.PhysicalConnection.(
at oracle.jdbc.driver.T4CConnection.(
at oracle.jdbc.driver.T4CDriverExtension.getConnection(
at oracle.jdbc.driver.OracleDriver.connect(
at java.sql.DriverManager.getConnection(
at java.sql.DriverManager.getConnection(


To view full details, 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 a vibrant support community of peers and Oracle experts.