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

DB2 EE (or Connect) and iSeries Scrollable cursor problem

Hello,
I'm trying to retrieve some records in my web application using a jdbc
Statement like this:

statement =
connection.createStatement(ResultSet.TYPE_SCROLL_I NSENSITIVE,ResultSet.CONCUR_READ_ONLY);
resultSet = statement.executeQuery(...);

with DB2 v8.2 EE that has a connection to an iSeries v5.3 and JBoss as
application server.

If I call the last() method on the ResultSet it works fine at the
beginning.
Later if a reset the application url to the context root, and I reenter
the application it throws the following error when it reaches the
last() method:

This method should only be called on ResultSet objects that are
scrollable(type TYPE_SCROLL_SENSITIVE or TYPE_SCROLL_INSENSITIVE)]
at com.ibm.db2.jcc.b.kf.nb(kf.java:3454)

The same thing happens if I call the isLast() method.
It seems that something becomes dirty into the driver and it stops to
run correctly.
If I run the same code with a DB2 database that has not a connection to
an iSeries, all works fine.

Classe containing that kind of code are BMP entities...

Any Idea?

Thank You!!!

Roberto

db2 EE version detail:
================================================== ==========
About DB2 Administration Tools Environment
================================================== ==========
DB2 administration tools level:
Product identifier SQL08025
Level identifier 03060106
Level DB2 v8.1.12.99
Build level s060429
PTF WR21368
================================================== ==========
Java development kit (JDK):
Level IBM Corporation 1.4.1
================================================== ==========

Jun 26 '06 #1
2 2142
roberto wrote:
Hello,
I'm trying to retrieve some records in my web application using a jdbc
Statement like this:

statement =
connection.createStatement(ResultSet.TYPE_SCROLL_I NSENSITIVE,ResultSet.CONCUR_READ_ONLY);
resultSet = statement.executeQuery(...);

with DB2 v8.2 EE that has a connection to an iSeries v5.3 and JBoss as
application server.

If I call the last() method on the ResultSet it works fine at the
beginning.
Later if a reset the application url to the context root, and I reenter
the application it throws the following error when it reaches the
last() method:

This method should only be called on ResultSet objects that are
scrollable(type TYPE_SCROLL_SENSITIVE or TYPE_SCROLL_INSENSITIVE)]
at com.ibm.db2.jcc.b.kf.nb(kf.java:3454)

The same thing happens if I call the isLast() method.
It seems that something becomes dirty into the driver and it stops to
run correctly.
If I run the same code with a DB2 database that has not a connection to
an iSeries, all works fine.

Classe containing that kind of code are BMP entities...

Any Idea?

<snip>

On the iSeries check that you have the latest DB Group PTF installed:
http://www-912.ibm.com/s_dir/slkbase...commendedfixes
In particular, these PTFs may be relevant: SI24258 v5r3, SI24257 v5r4

If you still have the problem, I recommend contacting your IBM Service
provider. The JCC cursor management aspect may need to be investigated.

--
Karl Hanson
Jun 26 '06 #2
Thank You Karl!

I haven't that kind of PTF installed.
ASAP i will install it and try again.

Jun 27 '06 #3

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

Similar topics

1
by: GAS | last post by:
I have tried to figure this out for a couple of days now and I'm not making much headway. I have a cursor that I can't get to work properly. There are two cursors in the stored procedure. The...
3
by: DarthMacgyver | last post by:
Hello, I recently wrote a survey application. Each question is very similar. The first questions gives me a problem when there are multiple people taking the survey (The Database connection...
1
by: Brami Yair | last post by:
Hi, below is example js: function SomeLongProcess() { for(var i=0;i<document.all.length;i++) document.all(i).style.cursor="wait"; // some long process here !!
1
by: Yanik Reid | last post by:
When I run the following vb.net code, I'm not able to acces the my database AMFLIB. I use to be able to access AMFLIB with the old ODBC driver from IBM iSeries Access but now I want to use the...
0
by: Dominic Paquette | last post by:
Hi, I encountered a problem and I don't know if it's a bug or if I'm doing something wrong. I wrote a UserControl in which I wireup 2 event handlers MouseDown and MouseUp. MouseDown changes the...
0
by: Ethan S. | last post by:
Hi everyone, I'm working on a small little project of mine and got stuck trying to add my own usercontrol into a scrollable object. For example, when a download is initiated under Mozilla...
6
by: Tomek | last post by:
In my page I reload JavaScript. When it is reloading the cursor change to "wait" (hourglass). After javascript loaded it does not change back to the "hand" if cursor stay on hyperlinks. How can I...
2
by: BilalGhazi | last post by:
Hi All, I have this strange problem. I am user of two different database (both are same version 9i). I created a procedure and within this procedure i used a cursor to select the values, this is...
1
menayah
by: menayah | last post by:
Hi, I want to do a fixed sized scrollable side menu. A simple way which i'm doing is to place the menu in a <DIV> with an overflow of auto. My menu have child items inside, so if u scroll to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.