Getting "This ResultSet is closed" exceptions

Поиск
Список
Период
Сортировка
От Paul Tomblin
Тема Getting "This ResultSet is closed" exceptions
Дата
Msg-id 8efd35820802180619l352d9b0eta35788642a5fc4eb@mail.gmail.com
обсуждение исходный текст
Ответы Re: Getting "This ResultSet is closed" exceptions  ("Andres Olarte" <olarte.andres@gmail.com>)
Список pgsql-jdbc
I have some code that works most of the time, but I left it running
overnight and at 3am I got the "This ResultSet is closed" exception on
the "while (rs.next())" line in the following code:

            ResultSet rs = getPerformancesOnVenueStmt.executeQuery();

            while(rs.next())
            {
                Performance performance = parseResultSet(null, null, rs);
                if (performance != null)
                  retList.add(performance);
            }
            rs.close();

The method "parseResultSet" does not close the result set, it just
does the various "rs.get..." calls and creates a Performance object.

Is it possible that another thread doing a commit on the same
Connection could cause this?

--
For my assured failures and derelictions I ask pardon beforehand of my
betters and my equals in my Calling here assembled, praying that in
the hour of my temptations, weakness and weariness, the memory of this
my Obligation and of the company before whom it was entered into, may
return to me to aid, comfort and restrain.

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Andrew
Дата:
Сообщение: Re: UUID datatype
Следующее
От: "Andres Olarte"
Дата:
Сообщение: Re: Getting "This ResultSet is closed" exceptions