I am using the trial version of the db2 v8.1 server on a RedHat 8.0
Linux box. I am using the version of the type 4 jdbc driver that
came with the release (db2jcc.jar) on a Sun running Solaris 9, tomcat
4.1.18 using J2SE 1.4.1_01.
I am running the following query:
select pr_type, pr_number, comment_number, email, authuser, remark,
mime_type, date_submit, pr_filename, ccomment, bcomment from pr_comment
where pr_type='PR' and pr_number in (
47243, 47273, 47287, 47355, 47356, 47365, 47386, 47396, 47438, 47448,
45013, 46258, 47072, 47145, 47223, 47224, 47226, 47229, 47233, 47235,
47246, 47276, 47364, 46491, 46825, 46866, 44798, 45757, 46029, 46442,
46688, 46751, 47069, 41635, 42613, 43086, 43036, 45511, 41453, 41998,
42529, 43033, 43467, 44210, 44434, 43233, 40695, 40696, 42932, 43095,
43219, 43320, 44031, 44302, 44796, 44864, 45043, 45371, 45419, 45458,
45600, 45910, 46311, 46380, 46532)
order by pr_type, pr_number, comment_number
I get the following exception when calling ResultSet.next()
java.lang.ArrayIndexOutOfBoundsException: 4
at com.ibm.db2.jcc.a.d.bc(d.java:681)
at com.ibm.db2.jcc.a.d.A(d.java:643)
at com.ibm.db2.jcc.a.d.f(d.java:258)
at com.ibm.db2.jcc.b.o.a(o.java:183)
at com.ibm.db2.jcc.b.ca.next(ca.java:220)
ccomment and bcomment are CLOB and BLOB fields, but other than that
the data is very basic data types. All I could think of was a hidden
limitation on the "in". I was wondering if anyone else had run into
something like this and knew how to get around it. The same software
runs fine using a Sybase and Oracle JDBC drivers/databases.
Thanks,
Fred Romelfanger
fr...@stsci.edu
Have you tried the db2drdat tool to trace? (drda trace)
You say it's not your case but just in case....
There is a sp1 for v8 and it contains a bad driver. (there is another one
available as a fix)
Verify your db2level.
PM
and maybe check these just in case
db2diag.log file
(JDK_PATH)
(JAVA_HEAP_SZ) (not 512)
PM