| To: | "Jason Kretzer/STAR BASE Consulting Inc." <JKretzer@xxxxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [cinjug-users] ResultSet closing prematurely |
| From: | Scott T Weaver <sweaver@xxxxxxxxxxxxxxx> |
| Date: | Thu, 20 May 2004 16:30:14 -0400 |
| Cc: | users@xxxxxxxxxx |
| Delivered-to: | mailing list users@cinjug.org |
| In-reply-to: | <OFE4CE3EBF.40221676-ON85256E9A.006F6AA2-85256E9A.006F7DB6@starbaseinc.com> |
| Mailing-list: | contact users-help@cinjug.org; run by ezmlm |
| References: | <OFE4CE3EBF.40221676-ON85256E9A.006F6AA2-85256E9A.006F7DB6@starbaseinc.com> |
Something may be happening your jdbc connection. For debugging sake,
why don't you check on each iteration if your connection is still open.
On Thu, 2004-05-20 at 16:17, Jason Kretzer/STAR BASE Consulting Inc.
wrote:
> I have a query that returns two records and using a standard while
> loop, I get the records. For some reason the loop is only entered
> once and then I get the exception at the bottom on the second
> iteration. The exception references the while(rs.next())
>
> Anyone know what could cause this?
>
>
>
>
> ResultSet rs = stmt.executeQuery("some_query");
>
> while(rs.next())
> {
> //do something with rs
> }
>
>
>
>
> com.ibm.db2.jcc.b.SQLException: Invalid operation: result set closed
--
******************************************
* Scott T. Weaver *
* <weaver@xxxxxxxxxx> *
* <http://www.einnovation.com> *
* -------------------------------------- *
* Apache Jetspeed Enterprise Portal *
* Apache Pluto Portlet Container *
* *
* OpenEditPro, Website Content Mangement *
* <http://www.openeditpro.com> *
******************************************
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | RE: [cinjug-users] ResultSet closing prematurely, Turner, Keith |
|---|---|
| Next by Date: | Re: [cinjug-users] ResultSet closing prematurely, Greg Williams |
| Previous by Thread: | ResultSet closing prematurely, Jason Kretzer/STAR BASE Consulting Inc. |
| Next by Thread: | Re: [cinjug-users] ResultSet closing prematurely, Greg Williams |
| Indexes: | [Date] [Thread] [Top] [All Lists] |