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

    Default Exception when sending query to oracle

    Hi,

    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(T4CStatement.java:464)
    oracle.jdbc.driver.OracleStatement.prepareAccessor s(OracleStatement.java:927)
    oracle.jdbc.driver.OracleStatement.executeMaybeDes cribe(OracleStatement.java:1047)
    oracle.jdbc.driver.T4CStatement.executeMaybeDescri be(T4CStatement.java:830)
    oracle.jdbc.driver.OracleStatement.doExecuteWithTi meout(OracleStatement.java:1132)
    oracle.jdbc.driver.OracleStatement.executeInternal (OracleStatement.java:1687)
    oracle.jdbc.driver.OracleStatement.execute(OracleS tatement.java:1653)

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,016
    Rep Power
    20

    Default

    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
    Posts
    90
    Rep Power
    0

    Default

    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, 03: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
  •