473,664 Members | 2,972 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

1 New Member
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_NUM BER() OVER() AS ROW_NUM FROM ( select distinct
------------- some more AND conditions -----------------)
AND exists (SELECT 1 FROM SESSION.tmpDepa rtment WHERE divisioncode = A.divisioncode AND loccd = A.loccd AND dptcd = A.dptcd) AND ltrim(rtrim(UPP ER(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 11204
kalexin
20 New Member
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_NUM BER() OVER() AS ROW_NUM FROM ( select distinct
------------- some more AND conditions -----------------)
AND exists (SELECT 1 FROM SESSION.tmpDepa rtment WHERE divisioncode = A.divisioncode AND loccd = A.loccd AND dptcd = A.dptcd) AND ltrim(rtrim(UPP ER(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
3914
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 particular block): <% Dim rs, strSQLd
9
1966
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 Basic .Net application. I have researched MSDN for help and found the example article 321900 (see below) and set up a test and everything works fine when I use SQL Server 2000 but when I modify the code and use data from Access 2000 using an...
2
3966
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 : 0X80020011(DISP_E_NOTACOLLECTION) I am using Excel10.0 libary . Does anyknow know what's wrong ? thanks From AGnes
1
6111
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 PRINTER_DEFAULTS Dim pinfo2 As PRINTER_INFO_2 Dim pinfo8 As PRINTER_INFO_8 Dim pinfo9 As PRINTER_INFO_9 Dim dm As DEVMODEW Dim yDevModeData() As Byte
1
3165
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 perform saving task . I created sp . now I am trying to execute then I am getting error “Invalid object name 'SizeMst'. “ I am running this query from its database. Stored perocedure is Alter procedure . @type int ,
0
1561
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 webservice from an IE browser: The namespace, , is a duplicate. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more
5
25190
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 at the relationships from the front end, I get '' is not a valid name. Make sure that it does not include invalid characters or punctuation and that it is not too long. According to the help window, this is Error 3125. Any ideas? Thank you ......
3
8764
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: There's a package called "randomX" which, while I don't know if you care to know, has a program that accesses a site called hotbits to produce true random numbers based on radioactive decay. You can look it up if you're any interested. Anyway,...
1
3745
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 in Borland Delphi. static int Main(string args) { ClientVarDataSet vds = new ClientVarDataSet(); vds.XML = ""; vds.AddField("x", 3); //"x" field name and 3 field type
0
8348
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8861
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8778
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8549
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6187
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4185
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4351
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2764
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1759
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.