473,385 Members | 1,343 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,385 software developers and data experts.

CLI0125E Function Sequence Error. SQL STATE=HY010

Hi,
I have some code that I run in a JSP that breaks with the above error, but
works ok in a standalone Java Program. Could this be a bug in DB2 / JDBC ?
I've installed the latest DB2 fixpack (8). - Or is there something about
running in a servlet that causes the problem?

thanks
RG

------------------------------------------
code ---------------------------------
java.sql.Connection jc = SetupDatasource.getConnection(application);
ResultSet rs2 = null;
Statement stmt2 = null;
try
{
stmt2 = jc.createStatement();

String sql = "SELECT ... FROM ..." ;

rs2 = stmt2.executeQuery(sql);

while (rs2.next())
{
if (rs2.getObject("PT_ID") != null)
{
%><TR> <TD>FEA <TD><%=rs2.getString("PROJ_NAME")%><%

Statement stmt3 = null ;
ResultSet rs3 = null;

try
{
String sql3 = "SELECT * FROM MYTAB2 WHERE PT_ID=" + rs2.getString("ID") +
" and pt_pt_mesh_rc = 0";

stmt3 = jc.createStatement();

rs3 = stmt3.executeQuery(sql3);

while (rs3.next())
{
%><TD><%=rs3.getString("TITLE")%></TD><%
}

}
finally
{
if (rs3 != null) rs3.close(); // ** COMMENTING OUT BOTH OF THESE REMOVES
PROBLEM
if (stmt3 != null) stmt3.close(); // ** COMMENTING OUT BOTH OF THESE
REMOVES PROBLEM
}
}

Object o = rs2.getObject("S_ID") ; // ******************* EXCEPTION THROWN
HERE ***********************, only when rs3 was open

if (rs2.getObject("S_ID") != null)
{
%><TR><TD><%=rs2.getString("PROJ_NAME")%></TR><%
}
}
}
finally
{

if (rs2 != null) rs2.close();
if (stmt2 != null) stmt2.close();
}

jc.close();

Nov 12 '05 #1
2 14718

"Richard Gooding" <rw*@soton.ac.uk> wrote in message
news:d0**********@aspen.sucs.soton.ac.uk...
Hi,
I have some code that I run in a JSP that breaks with the above error, but
works ok in a standalone Java Program. Could this be a bug in DB2 / JDBC ? I've installed the latest DB2 fixpack (8). - Or is there something about
running in a servlet that causes the problem?

I used to get CLI0125E errors all the time back in DB2 V6.1. It was a
masking error of some sort; there was actually something else wrong and
CLI0125E happened as a consequence, masking the _real_ error. Unfortunately,
I'm drawing a blank about what the real problem was or how to resolve it. I
remember that it turned out to be quite easy to resolve but I truly don't
remember how I did it. It *might* have had something to do with the JRE/JDK
version but I hesitate to say that because it might have been something else
and I don't want to send you down the wrong path.

Perhaps the best thing for you to do would be to Google on CLI0125E within
the archives of this newsgroup and see what you find; with any luck, someone
else had the problem and its solution was disclosed here. Of course, that
assumes that the CLI0125E has the same causes in Version 8 Fixpack 8 as my
problems in Version 6 had; that might be a big stretch!

Sorry I couldn't be more help....

Rhino
Nov 12 '05 #2
Richard,

I has been my experience that a CLI0125E masks an ODBC timeout. Try
putting this in your DB2CLI.INI on your client -
[COMMON]
QueryTimeOutInterval=0

Or, you can set the ConnectionTimeout property of your ODBC connection
object.

Hope this helps.

Craig Wahlmeier

Nov 12 '05 #3

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

Similar topics

4
by: Nyul | last post by:
Gurus, I have a verb big problem which I'm unable to explain. We have a DB2 V6.1.0 on AIX 4.3 I want to make a C stored procedure which at the end will be called by a PHP script. The...
0
by: Shilpa | last post by:
We are using Java Stored Procs to pull data from application DB2 tables and the final output is written to a file. Stored Procs are structured as mentioned below: There is a driver table from...
0
by: Martin | last post by:
Hi, does anybody know whether it is possible in C application (using CLI) to have multi-row parameter descriptor with column of LOB type (BLOB, CLOB, DBCLOB) whose data will be supplied at...
0
by: ivb | last post by:
Hi all, I am using DB2 8.1.11.1 on NT with ASP.NET 1.1 When application make connection to database (via ADO.NET), it set "Connection timeout" parameter to 30 seconds. After, when my webpage...
0
by: N61601 | last post by:
I'm trying to call a very basic stored procedure from "Command Line Processor for DB2 Client 9.5.0" to "DB2 OS/390 8.1.5". The call statement- call DB2DB.STORPROC() The result - CLI0125E ...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.