Forum Stats

  • 3,854,391 Users
  • 2,264,362 Discussions


java.lang.ArrayIndexOutOfBoundsException: -32503

KeithWilliams Member Posts: 133
I am getting this error in setupBindBuffers() when I issue an executeBatch() using the JDBC driver. This code works fine with all of the 10.x drivers.

Here is the stack trace:

java.lang.ArrayIndexOutOfBoundsException: -32503
at oracle.jdbc.driver.OraclePreparedStatement.setupBindBuffers(
at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(
at oracle.jdbc.driver.OracleStatementWrapper.executeBatch(
at org.apache.tomcat.dbcp.dbcp.DelegatingStatement.executeBatch(
at com.troux.servercommon.db.BulkTableAdder.flushToDatabase(
at com.troux.tux.TUXManagerImpl.flushToDatabase(
at com.troux.tux.TUXManagerFactory.updateBatches(
at com.troux.tux.TUXManagerFactory.commitBatches(
at com.troux.tux.stage.StageAPIImpl.processCounters(
at com.troux.tux.stage.StageAPIImpl.saveObject(
at com.troux.tux.processor.extract.sax.ComponentHandler.verifyAndSave(
at com.troux.tux.processor.extract.sax.ComponentHandler.endElement(
at com.troux.tux.processor.extract.sax.SaxElementProcessor.endElement(
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at com.troux.tux.processor.extract.steps.ExtractProcessingStep.runStep(
at com.troux.tux.processor.TUXJobProcessorImpl.runAllSteps(
at com.troux.tux.processor.extract.ExtractProcessorImpl.doRunJobWork(
at com.troux.tux.processor.JobProcessorImpl.runJob(
at com.troux.tux.jobmanager.jobrunners.TUXJobRunner.doRunJob(
at com.troux.tux.jobmanager.jobrunners.TUXJobRunner$1.doWork(
at com.troux.tux.jobmanager.jobrunners.TUXJobRunner.impersonateJobUser(
at com.troux.tux.jobmanager.jobrunners.TUXJobRunner.runJob(
at com.troux.tux.jobmanager.jobrunners.TUXSimpleJobRunnerThread.processObject(
at com.troux.common.ThreadPool$


  • Turn on logging at Level.FINE and get a trace of the exact JDBC methods called. Then see if you can create a pure JDBC test case. That will make it much easier to figure out what is going on. There's a JDBC logging white paper on the OTN JDBC/SQLJ home page.

  • So this happened yesterday. All I did was start up tomcat and then try to execute this process and I got these errors. So today, for some unknown reason to me, I decided to repeat my steps. It worked today. Nothing has changed except the weather. So until I get a reproducible case I am going to move on.
  • 14736
    14736 Member Posts: 85
    I've encountered the same issue with the 11g driver. It turned out the bug is a function of the size of the batch and the number of rows in the table being inserted into. A patch can be found in metalink with the id of 6396242.

  • Yes, Oracle support just sent me the patch information on MetaLink.

    Thanks, all.
  • I get the following error when applying the patch. Anyone know what causes this?

    11:56:22.51>opatch apply
    File Not Found
    Invoking OPatch

    Oracle Interim Patch Installer version
    Copyright (c) 2007, Oracle Corporation. All rights reserved.

    Oracle Home : F:\oracle\product\11.1.0\db_1
    Central Inventory : C:\Program Files\Oracle\Inventory
    from : n/a
    OPatch version :
    OUI version :
    OUI location : F:\oracle\product\11.1.0\db_1\oui
    Log file location : F:\oracle\product\11.1.0\db_1\cfgtoollogs\opatch\opatch2007-12-18_11-57-21AM.log

    ApplySession applying interim patch '6396242' to OH 'F:\oracle\product\11.1.0\db_1'

    Running prerequisite checks...
    Prerequisite check "CheckActiveFilesAndExecutables" failed.
    The details are:

    Following files are active :
    ApplySession failed during prerequisite checks: Prerequisite check "CheckActiveFilesAndExecutables" failed.
    System intact, OPatch will not attempt to restore the system

    OPatch failed with error code = 74
  • 14736
    14736 Member Posts: 85
    Not sure if this is supported but you could just unpack the ojdbc5.jar and replace the class files with those that are included in the patch and then package it back up. I did it this way since I was patching the jar on a host that didn't have opatch/db installed.

    Good luck,

  • Lol, that's what I ended up doing also. :-)
  • 199713
    199713 Member Posts: 6
    I can't get access to metalink.

    Is a fixed version not available for download?

  • 586088
    586088 Member Posts: 15
    I hit this same error when using the 11g jdbc driver against a 10g or 11g database.
    If I use a 10g jdbc driver I don't get the error.

    If I search the patch number, there is a patch supplied for the database server side.

    Why isn't the patch for the jdbc driver that would be deployed at the client?
  • 585768
    585768 Member Posts: 4
    Is there any way to get the patch if I do not have any account at MetaLink?
This discussion has been closed.