From: | thomas at tada(dot)se (Thomas Hallgren) |
---|---|
To: | |
Subject: | [Pljava-dev] java.lang.UnsupportedOperationException: TYPE_FORWARD_ONLY |
Date: | 2006-03-31 21:57:02 |
Message-ID: | 442DA5AE.4000907@tada.se |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pljava-dev |
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
>
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Hallgren | 2006-04-01 10:09:02 | [Pljava-dev] Remote PL/Java, Summary |
Previous Message | claudio ferraz | 2006-03-31 21:07:55 | [Pljava-dev] java.lang.UnsupportedOperationException: TYPE_FORWARD_ONLY |