java.lang.ArrayIndexOutOfBoundsException: 10

QOS.ch JIRA | Manuel Kueblboeck | 7 years ago
  1. 0

    When using the Oracle driver ojdbc6 (11.1.0.7.0) an ArrayIndexOutOfBoundsException occurs when trying to write a log message to the database (see stacktrace below). I am using ch.qos.logback.core.db.DriverManagerConnectionSource in my logback.xml. When using ojdbc14 (10.2.0.4), this works fine. 07:31:43,997 |-ERROR in ch.qos.logback.classic.db.DBAppender[LogDB] - problem appending event java.lang.ArrayIndexOutOfBoundsException: 10 at java.lang.ArrayIndexOutOfBoundsException: 10 at at oracle.jdbc.driver.OracleSql.computeBasicInfo(OracleSql.java:950) at at oracle.jdbc.driver.OracleSql.getSqlKind(OracleSql.java:623) at at oracle.jdbc.driver.OraclePreparedStatement.<init>(OraclePreparedStatement.java:1212) at at oracle.jdbc.driver.T4CPreparedStatement.<init>(T4CPreparedStatement.java:28) at at oracle.jdbc.driver.T4CDriverExtension.allocatePreparedStatement(T4CDriverExtension.java:68) at at oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:3140) at at oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:3042) at at oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:6022) at at ch.qos.logback.core.db.DBAppenderBase.append(DBAppenderBase.java:90) at at ch.qos.logback.core.AppenderBase.doAppend(AppenderBase.java:87) at at ch.qos.logback.core.spi.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:60) at at ch.qos.logback.classic.Logger.appendLoopOnAppenders(Logger.java:271) at at ch.qos.logback.classic.Logger.callAppenders(Logger.java:258) at at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:440) at at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:394) at at ch.qos.logback.classic.Logger.debug(Logger.java:521) at at nz.co.integrationworks.reporting.AbstractReporter.log(AbstractReporter.java:37) at at nz.co.integrationworks.reporting.AbstractReporter.log(AbstractReporter.java:29) at at nz.co.integrationworks.reporting.BusinessLoggerManualTest.main(BusinessLoggerManualTest.java:28)

    QOS.ch JIRA | 7 years ago | Manuel Kueblboeck
    java.lang.ArrayIndexOutOfBoundsException: 10
  2. 0

    When using the Oracle driver ojdbc6 (11.1.0.7.0) an ArrayIndexOutOfBoundsException occurs when trying to write a log message to the database (see stacktrace below). I am using ch.qos.logback.core.db.DriverManagerConnectionSource in my logback.xml. When using ojdbc14 (10.2.0.4), this works fine. 07:31:43,997 |-ERROR in ch.qos.logback.classic.db.DBAppender[LogDB] - problem appending event java.lang.ArrayIndexOutOfBoundsException: 10 at java.lang.ArrayIndexOutOfBoundsException: 10 at at oracle.jdbc.driver.OracleSql.computeBasicInfo(OracleSql.java:950) at at oracle.jdbc.driver.OracleSql.getSqlKind(OracleSql.java:623) at at oracle.jdbc.driver.OraclePreparedStatement.<init>(OraclePreparedStatement.java:1212) at at oracle.jdbc.driver.T4CPreparedStatement.<init>(T4CPreparedStatement.java:28) at at oracle.jdbc.driver.T4CDriverExtension.allocatePreparedStatement(T4CDriverExtension.java:68) at at oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:3140) at at oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:3042) at at oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:6022) at at ch.qos.logback.core.db.DBAppenderBase.append(DBAppenderBase.java:90) at at ch.qos.logback.core.AppenderBase.doAppend(AppenderBase.java:87) at at ch.qos.logback.core.spi.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:60) at at ch.qos.logback.classic.Logger.appendLoopOnAppenders(Logger.java:271) at at ch.qos.logback.classic.Logger.callAppenders(Logger.java:258) at at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:440) at at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:394) at at ch.qos.logback.classic.Logger.debug(Logger.java:521) at at nz.co.integrationworks.reporting.AbstractReporter.log(AbstractReporter.java:37) at at nz.co.integrationworks.reporting.AbstractReporter.log(AbstractReporter.java:29) at at nz.co.integrationworks.reporting.BusinessLoggerManualTest.main(BusinessLoggerManualTest.java:28)

    QOS.ch JIRA | 7 years ago | Manuel Kueblboeck
    java.lang.ArrayIndexOutOfBoundsException: 10
  3. 0

    [logback-user] DbAppender does not write log messages to Oracle

    qos.ch | 5 months ago
    java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 14
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ArrayIndexOutOfBoundsException using Oracle 11g driver

    Oracle Community | 8 years ago | 678489
    java.lang.ArrayIndexOutOfBoundsException: 8

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ArrayIndexOutOfBoundsException

      10

      at oracle.jdbc.driver.OracleSql.computeBasicInfo()
    2. Oracle jdbc
      PhysicalConnection.prepareStatement
      1. oracle.jdbc.driver.OracleSql.computeBasicInfo(OracleSql.java:950)
      2. oracle.jdbc.driver.OracleSql.getSqlKind(OracleSql.java:623)
      3. oracle.jdbc.driver.OraclePreparedStatement.<init>(OraclePreparedStatement.java:1212)
      4. oracle.jdbc.driver.T4CPreparedStatement.<init>(T4CPreparedStatement.java:28)
      5. oracle.jdbc.driver.T4CDriverExtension.allocatePreparedStatement(T4CDriverExtension.java:68)
      6. oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:3140)
      7. oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:3042)
      8. oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:6022)
      8 frames
    3. Logback Core Module
      AppenderAttachableImpl.appendLoopOnAppenders
      1. ch.qos.logback.core.db.DBAppenderBase.append(DBAppenderBase.java:90)
      2. ch.qos.logback.core.AppenderBase.doAppend(AppenderBase.java:87)
      3. ch.qos.logback.core.spi.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:60)
      3 frames
    4. Logback Classic Module
      Logger.debug
      1. ch.qos.logback.classic.Logger.appendLoopOnAppenders(Logger.java:271)
      2. ch.qos.logback.classic.Logger.callAppenders(Logger.java:258)
      3. ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:440)
      4. ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:394)
      5. ch.qos.logback.classic.Logger.debug(Logger.java:521)
      5 frames
    5. nz.co.integrationworks
      BusinessLoggerManualTest.main
      1. nz.co.integrationworks.reporting.AbstractReporter.log(AbstractReporter.java:37)
      2. nz.co.integrationworks.reporting.AbstractReporter.log(AbstractReporter.java:29)
      3. nz.co.integrationworks.reporting.BusinessLoggerManualTest.main(BusinessLoggerManualTest.java:28)
      3 frames