473,503 Members | 2,046 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SQL0502N -- open cursor -- jdbc type 2 driver

don't find any mention on either udb/APARS or 390/APARS.

since upgrading 390 to 7.1.1 over the weekend, the following now
happens, when run from udb to 390:

....
Statement stmt = conn.createStatement();
ResultSet rs;

<do stuff>

rs.close();
stmt.close();
stmt = conn.createStatement();

now we get the 0502N.

worked OK with both 7/8 UDB and 6 390. from what i can find,
the cursor is either on the ResultSet or the Statement; and
the error is bogus (shouldn't be happening).

is this a known issue not yet in APARS??

thanks,
robert
Nov 12 '05 #1
3 3641
maybe ....

rs.close()
stmt.close()
conn.commit()
stmt = conn.createStatement()

will work. (I believe the cursor behind the result set needs a commit
or rollback to close it, and that only after the rs.close() because of
"with hold".)

Regards,
Ed Lang

robert wrote:
don't find any mention on either udb/APARS or 390/APARS.

since upgrading 390 to 7.1.1 over the weekend, the following now
happens, when run from udb to 390:

...
Statement stmt = conn.createStatement();
ResultSet rs;

<do stuff>

rs.close();
stmt.close();
stmt = conn.createStatement();

now we get the 0502N.

worked OK with both 7/8 UDB and 6 390. from what i can find,
the cursor is either on the ResultSet or the Statement; and
the error is bogus (shouldn't be happening).

is this a known issue not yet in APARS??

thanks,
robert


Nov 12 '05 #2
Ed Lang <el*@softpro.de> wrote in message news:<vk***********@lucy.ux.softpro.de>...
maybe ....

rs.close()
stmt.close()
conn.commit()
stmt = conn.createStatement()

will work. (I believe the cursor behind the result set needs a commit
or rollback to close it, and that only after the rs.close() because of
"with hold".)

Regards,
Ed Lang

robert wrote:
don't find any mention on either udb/APARS or 390/APARS.

since upgrading 390 to 7.1.1 over the weekend, the following now
happens, when run from udb to 390:

...
Statement stmt = conn.createStatement();
ResultSet rs;

<do stuff>

rs.close();
stmt.close();
stmt = conn.createStatement();

now we get the 0502N.

worked OK with both 7/8 UDB and 6 390. from what i can find,
the cursor is either on the ResultSet or the Statement; and
the error is bogus (shouldn't be happening).

is this a known issue not yet in APARS??

thanks,
robert


turns out to be an (unadmitted) bug in UDB. need 8.1.6. just trying
to access one of these databases from AQT throws the message. i can
see the databases from DB2 Command Center, but that's so lame, i gave
up on it years ago. of course, no one here has tried 8.1.6, so that
might be just as broken.

thanks,
robert
Nov 12 '05 #3
gn*****@rcn.com (robert) wrote in message news:<da**************************@posting.google. com>...
Ed Lang <el*@softpro.de> wrote in message news:<vk***********@lucy.ux.softpro.de>...
maybe ....

rs.close()
stmt.close()
conn.commit()
stmt = conn.createStatement()

will work. (I believe the cursor behind the result set needs a commit
or rollback to close it, and that only after the rs.close() because of
"with hold".)

Regards,
Ed Lang

robert wrote:
don't find any mention on either udb/APARS or 390/APARS.

since upgrading 390 to 7.1.1 over the weekend, the following now
happens, when run from udb to 390:

...
Statement stmt = conn.createStatement();
ResultSet rs;

<do stuff>

rs.close();
stmt.close();
stmt = conn.createStatement();

now we get the 0502N.

worked OK with both 7/8 UDB and 6 390. from what i can find,
the cursor is either on the ResultSet or the Statement; and
the error is bogus (shouldn't be happening).

is this a known issue not yet in APARS??

thanks,
robert


turns out to be an (unadmitted) bug in UDB. need 8.1.6. just trying
to access one of these databases from AQT throws the message. i can
see the databases from DB2 Command Center, but that's so lame, i gave
up on it years ago. of course, no one here has tried 8.1.6, so that
might be just as broken.

thanks,
robert


well, setting ODBC CURSORHOLD off does allow access. why the behaviour
changed in V8, IDK. whether this will screw up inserts and updates,
i haven't tested. select works OK.
Nov 12 '05 #4

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

Similar topics

0
4472
by: JShurmatz | last post by:
If anyone can shed some light on this problem I would greatly appreciate it. I am unsuccessfully trying to use a database connnection retrieved from a pool configured using Java System Web...
1
2972
by: Ajay | last post by:
Hi, Could some please tell me whether Microsoft provides Type 2 and Type 4 jdbc driver ? For Type 4 MS provides com.microsoft.jdbc.sqlserver.SQLServerDriver driver. What is the cofiguration...
2
6552
by: Paul Reddin | last post by:
Hi, (V8.1 Fp2) Our application uses JDBC batch to execute mutiple insert statements and we saw a strange thing this morning. There were 4 SQL Insert statements in the batch, and we know the...
3
6045
by: Steverino | last post by:
Hi, I'm currently trying to learn DB2. I have the following version below installed on my server machine on my little LAN. However when I try to connect to it from my client machine, I receive...
4
6324
by: Dani | last post by:
Hi everyone Description of the problem: Using a PreparedStatement to write down an integer (int) plus a timestamp for testing purposes. When read out again the integer looks very different. We...
0
3064
by: Bing | last post by:
Hi, I am configuring the same DB2 v8.1 JDBC universal driver (db2jcc.jar and db2jcc_license_cisuz.jar) from DB2 SP5 fix pack under WSAD 5.1.x environment and WebSphere application Server 5.0.2...
2
3731
by: Raquel | last post by:
Read this about the Universal JDBC Driver.... "In a Type 2 mode, the Universal JDBC driver provides local application performance gains (because it avoids using TCP/IP protocol to communicate to...
3
4958
by: kavallin | last post by:
I wonder if anyone has compared the db2 universal jdbc driver type 2 and 4 with the legacy db2 driver. Which one is the best to use ? I'm working in a project where the envm looks like this ...
3
22824
by: Anoop | last post by:
Is it true that there are no type 4 jdbc drivers to connect to a DB2 server v7.1? The DB2 server is hosted on ACF2 (OS/390). We would be connecting from windows and solaris boxes. If it is true,...
0
7204
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
7282
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,...
0
7342
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...
1
6998
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...
0
7464
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
5586
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,...
0
3171
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...
0
3162
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1516
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 ...

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.