Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

oracle.sql.LnxLibThin.lnxnuc

843854Jun 5 2003 — edited Jul 21 2003
When I try to retrieve a value from a simple select in a SQL

I get the following ugly error:

java.lang.ArrayIndexOutOfBoundsException
at oracle.sql.LnxLibThin.lnxnuc(LnxLibThin.java:6070)
at oracle.sql.NUMBER.toText(NUMBER.java:2664)
at oracle.jdbc.driver.OracleStatement.getStringValue(OracleStatement.java:3531)
at oracle.jdbc.driver.OracleResultSetImpl.getString(OracleResultSetImpl.java:434)


The exception is thrown in point ticked below

while (rs.next())
{

for (int i=1; i<=numberOfColumns; i++) {

// here the exception is THROWN in the first row of Resultset
myvar = "" + rs.getString(i);


}


}


The SQL works in PL/SQL bringing the following resultset:

0,0
2,0
2,0
1,5
0,0



Do u have any idea?
Thanks.

C.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 18 2003
Added on Jun 5 2003
1 comment
583 views