Results 1 to 3 of 3
  1. #1
    hadar1 is offline Member
    Join Date
    Feb 2011
    Rep Power

    Default Exception when sending query to oracle


    I have java application that send queries to oracle DB.
    In some cases I got exception.
    If I catch this exception and send again the same query it works OK.
    What can cause this issue ?

    The exception:
    java.lang.ArrayIndexOutOfBoundsException : -2
    oracle.jdbc.driver.T4CStatement.saveDefineBuffersI fRequired(
    oracle.jdbc.driver.OracleStatement.prepareAccessor s(
    oracle.jdbc.driver.OracleStatement.executeMaybeDes cribe(
    oracle.jdbc.driver.T4CStatement.executeMaybeDescri be(
    oracle.jdbc.driver.OracleStatement.doExecuteWithTi meout(
    oracle.jdbc.driver.OracleStatement.executeInternal (

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Rep Power


    Probably need to see your code, since that trace doesn't actually help by itself.

  3. #3
    Cbani is offline Member
    Join Date
    Jan 2010
    Rep Power


    Probably the query is expecting more number of parameters and the app is sending some of them; might be the argument list (probaly a collection object is added with elements at runtime depending on some conditions)

    Do check the code that is adding the elements into the collection of arguments

Similar Threads

  1. Exception in sending mail....plz help
    By snehil2009 in forum JavaServer Pages (JSP) and JSTL
    Replies: 2
    Last Post: 01-12-2010, 04:55 PM
  2. Replies: 1
    Last Post: 08-07-2009, 09:37 PM
  3. Replies: 1
    Last Post: 07-24-2007, 12:15 AM
  4. ń in an oracle query
    By bbq in forum JDBC
    Replies: 2
    Last Post: 07-04-2007, 07:53 AM
  5. oracle query with date question
    By orchid in forum JDBC
    Replies: 1
    Last Post: 05-09-2007, 12:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts