agora inbox for pljava-dev@postgresql.org
help / color / mirror / Atom feedSubject: [Pljava-dev] java.lang.UnsupportedOperationException: TYPE_FORWARD_ONLY
Date: Fri, 31 Mar 2006 23:57:02 +0200
Message-ID: <442DA5AE.4000907@tada.se> (raw)
In-Reply-To: <d522589d0603311307j56258bc7p30535bbed3383497@mail.gmail.com>
References: <d522589d0603311307j56258bc7p30535bbed3383497@mail.gmail.com>
Hi Claudio,
Your code is incorrect since the constant ResultSet.FETCH_FORWARD is not
a result set type. From javadoc for java.sql.Connection.createStatement():
* @param resultSetType a result set type; one of
* <code>ResultSet.TYPE_FORWARD_ONLY</code>,
* <code>ResultSet.TYPE_SCROLL_INSENSITIVE</code>, or
* <code>ResultSet.TYPE_SCROLL_SENSITIVE</code>
Regards,
Thomas Hallgren
claudio ferraz wrote:
>
> Hi ,
>
> I am receiving the following error message, but I do not know the reason:
>
>
> ERROR: 01 Jan 02 02:45:26 axml.Active
> java.lang.UnsupportedOperationException: TYPE_FORWARD_ONLY supported
> ResultSet type
> java.lang.UnsupportedOperationException: TYPE_FORWARD_ONLY supported
> ResultSet type
> at
> org.postgresql.pljava.jdbc.SPIConnection.createStatement(SPIConnection.java:293)
> at axml.GerenteServicos.prepairService(GerenteServicos.java:83)
> at axml.Active.executeService(Active.java:13)
>
> My code line error :
> Statement stmt2 = con2.createStatement( ResultSet.FETCH_FORWARD,
> ResultSet.CONCUR_READ_ONLY);
>
> Somebody knows which can be the reason?
> Thank's!!!
>
> --
> Cl?udio A. Ferraz - Analista de Sistemas
> "Se n?o puder fazer tudo, fa?a tudo o que puder."
> "Nigu?m ? rico o suficiente para n?o poder ser ajudado, ningu?m ?
> pobre o suficiente para n?o poder ajudar."
> ------------------------------------------------------------------------
>
> _______________________________________________
> Pljava-dev mailing list
> Pljava-dev at gborg.postgresql.org
> http://gborg.postgresql.org/mailman/listinfo/pljava-dev
>
view thread (2+ messages)
Message-ID: <442DA5AE.4000907@tada.se>
Permalink: ../442DA5AE.4000907@tada.se/
Also on: postgresql.org/message-id/442DA5AE.4000907@tada.se
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pljava-dev@postgresql.org
Subject: Re: [Pljava-dev] java.lang.UnsupportedOperationException: TYPE_FORWARD_ONLY
In-Reply-To: <442DA5AE.4000907@tada.se>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox