472,961 Members | 2,000 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Getting exception in Java application with error code "DB2 SQL error: SQLCODE: -901"

Hi,
Need help for this as i have been looking for it but could not get any results.
We are using java as front end and DB2 as backend, i m getting the exception while executing a particular query with following error description:

DB2 SQL error: SQLCODE: -901, SQLSTATE: 58004, SQLERRMC: sqlno_itr_plan::next [300]:rc( 0)

SQLCODE: -901 this error code says "Non severe System error"

This query was working fine till now but recently it has started throwing error.
My query is a search query and it works fine for blank search but as we enter any search criteria it gives the above error.
Query is some what like this:

SELECT * FROM ( SELECT TEMP1.*,ROW_NUMBER() OVER() AS ROW_NUM FROM ( select distinct
------------- some more AND conditions -----------------)
AND exists (SELECT 1 FROM SESSION.tmpDepartment WHERE divisioncode = A.divisioncode AND loccd = A.loccd AND dptcd = A.dptcd) AND ltrim(rtrim(UPPER(A.dptcd))) like '%abc%' order by 1 ASC ) AS TEMP1 ) AS TEMP2 WHERE ((ROW_NUM -1) /5) + 1 = 1

Need your help.
Thanks to all those who will be replying.
Apr 30 '07 #1
1 11120
kalexin
20
Hi,
Need help for this as i have been looking for it but could not get any results.
We are using java as front end and DB2 as backend, i m getting the exception while executing a particular query with following error description:

DB2 SQL error: SQLCODE: -901, SQLSTATE: 58004, SQLERRMC: sqlno_itr_plan::next [300]:rc( 0)

SQLCODE: -901 this error code says "Non severe System error"

This query was working fine till now but recently it has started throwing error.
My query is a search query and it works fine for blank search but as we enter any search criteria it gives the above error.
Query is some what like this:

SELECT * FROM ( SELECT TEMP1.*,ROW_NUMBER() OVER() AS ROW_NUM FROM ( select distinct
------------- some more AND conditions -----------------)
AND exists (SELECT 1 FROM SESSION.tmpDepartment WHERE divisioncode = A.divisioncode AND loccd = A.loccd AND dptcd = A.dptcd) AND ltrim(rtrim(UPPER(A.dptcd))) like '%abc%' order by 1 ASC ) AS TEMP1 ) AS TEMP2 WHERE ((ROW_NUM -1) /5) + 1 = 1

Need your help.
Thanks to all those who will be replying.

Is there an abend? A -901 error is normally caused by a prior error that prevents the current SQL being executed. Check to make sure there are no resources locked or pending commits.
May 1 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: J. Muenchbourg | last post by:
The following line in part of my asp-sql block: Set rs = Server.CreateObject("ADODB.Recordset") creates an application error: "Set" assignment statements are no longer supported (in this...
9
by: Wally | last post by:
I am trying to display images from an Access 2000 database and I get an error "Invalid Parameter Used" when I execute the code line "picBLOB.Image = Image.FromStream(stmBLOBData)" in my Visual...
2
by: Agnes | last post by:
Same application, When use the dataset expor to EXCEL, work very well. However, for some PC I will got the following error "DOES NOT SUPPORT A COLLECTION.(EXCEPTION FROM HRESULT :...
1
by: sathyp | last post by:
Public Function SetPrinterDefaultsW(ByVal sPrinterName As String, _ ByVal nPaperSize As Long, ByVal nOrientation As Long) As Boolean Dim Prn As Printer Dim hPrinter As Long Dim pd As...
1
by: imranabdulaziz | last post by:
Dear All, I am using sql2005. i am writing stored procedure to save various master data . I recognize master by @type (input verible) and assign it to @mst veriable then based on @mst no I...
0
by: UT-BadBoy | last post by:
Hi, I've been working with ASP.NET for about a year so I'm still considering myself to be somewhat of a novice in this field. I am receiving this particualr error when trying to hit a...
5
patjones
by: patjones | last post by:
Hi: I've got a backend database, with several tables linked together via one-to-many relationships, and a front end database that links to those tables. The problem is, when I attempt to look...
3
blazedaces
by: blazedaces | last post by:
Hello, it's been a while since I posted on these forums. My issue I think isn't as much in my code as it's in the syntax and structure in references other packages. I'll get straight to it then: ...
1
by: kamcap | last post by:
I have referenced a COM dll (unmanagged code) in a C# console application and this DLL is referenced in C# program using Interop facility in .NET. This dll actually a dataset/table which is written...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.