473,395 Members | 1,457 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

SQLException on ResultSet.next

Hi,

we have a query that returns only a few rows, but has a lot of columns in
group by clause. In some cases we receive an SQL Exception.
Here is the trace

[PreparedStatement@1d226a7] setString (1, 20040928001) called
[PreparedStatement@1d226a7] setString (2, 200409160000000000071168) called
[PreparedStatement@1d226a7] setDouble (3, 4701298.0) called
[PreparedStatement@1d226a7] setMaxRows (5001) called
[PreparedStatement@1d226a7] executeQuery () called
[ibm][db2][jcc][t4] SEND BUFFER: OPNQRY
....
[ibm][db2][jcc][t4] RECEIVE BUFFER: OPNQRYRM
....
[PreparedStatement@1d226a7] executeQuery () returned ResultSet@153e9cf
[ResultSet@153e9cf] getMetaData () called
[ResultSet@153e9cf] getMetaData () returned com.ibm.db2.jcc.a.j@1e7c4d4
[ResultSet@153e9cf] next () called
SQLException: SQLState(null) vendor code(-99999)
com.ibm.db2.jcc.a.SqlException: Query processing has been terminated due to
error on the server.
at com.ibm.db2.jcc.c.c.A(c.java:1041)
at com.ibm.db2.jcc.c.c.a(c.java:499)
at com.ibm.db2.jcc.c.c.b(c.java:205)
at com.ibm.db2.jcc.a.o.a(o.java:190)
at com.ibm.db2.jcc.a.cj.c(cj.java:304)
at com.ibm.db2.jcc.a.cj.next(cj.java:279)
at weblogic.jdbc.wrapper.ResultSet_com_ibm_db2_jcc_c_ g.next(Unknown Source)
Our database: IBM DB2 8.1 (Linux)
Our JDBC driver: IBM type 4

Thank you
Eckard
Nov 12 '05 #1
0 2276

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: gsuns82 | last post by:
hi, my java code: **************** import java.sql.*; public class sqljdbc { public static void main(String args) { try {
0
by: jazz1 | last post by:
my coding is <% //Connection conn=null; //Statement st=null; //ResultSet rs=null; int msgCount; try { String userid=request.getParameter("application_no");
1
by: rajamohammed | last post by:
Hi Everyone, I gettiing exception while deleting a record,that java.sql.SQLException: No ResultSet set was produced. But the record is deleted successfully. Please help me. Thanks. Raja...
6
by: rajamohammed | last post by:
Hi Everyone, I am gettiing exception while deleting a record,that java.sql.SQLException: No ResultSet set was produced. But the record is deleted successfully. Please help me. Thanks, Raja...
2
by: lunas | last post by:
hi i am trying to update a table selecting a value from another table and ve written the following codes for it.. import java.sql.*; import java.io.*; import java.util.*; public class...
21
madhoriya22
by: madhoriya22 | last post by:
Hi, Here is the query which I am using to get the values from the database:- "SELECT ?, COUNT(*) AS COUNT " + "FROM DEFECT_DETAIL " + "WHERE TARGET_MILESTONE = ? " + "GROUP BY ?"; ...
8
by: ajos | last post by:
hi frnds, im trying to convert my servlets database configuration from ms access to mysql database.however im getting some error like no driver found exception. to verify this error ive...
2
by: siladityadash | last post by:
I'am facing a error when populating the resultset i.e java.sql.SQLException:Closed Resultset:next
9
by: freethinker | last post by:
Hi, I have a database class I use to get and drop db connections: public class Database { protected static Connection c; //.... /// .. c = DriverManager.getConnection .... ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.