db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rajesh Kartha" <karth...@gmail.com>
Subject Re: read-only scrolling exception
Date Fri, 09 Feb 2007 01:38:29 GMT
Hi Alex,

What is the resultSetConcurrency type that you are using while creating the
SELECT statement ?

I have not been able to reproduce this issue on a read-only db  with Derby - (485682) and using
different result set types and concurrency.

Moreover I don't think the error could be because of the resultSetType - (

Using ResultSet.CONCUR_UPDATABLE type of resultSetConcurrency the select
does fail while opening the result set (first iteration) with 'ERROR 40XD1:
Container was opened in read-only mode.'
as Suresh pointed out.

In any case, if you are able to provide a reproducible test that will be
really useful.


On 2/2/07, Alex Pooley <alex@riters.com> wrote:
> I'm iterating a ResultSet from a read-only database. If the ResultSet is
> not created from a TYPE_FORWARD_ONLY Statement, then on interation 230
> the following exception is thrown:
> "java.sql.SQLException: Container was opened in read-only mode."
> I have set derby.storage.tempDirectory, and derby.stream.error.file to
> writable locations as the docs specify.
> Is this behavior correct?
> Thanks,
> Alex.

View raw message