agora inbox for pljava-dev@postgresql.org  
help / color / mirror / Atom feed
[Pljava-dev] java.lang.UnsupportedOperationException: TYPE_FORWARD_ONLY
2+ messages / 0 participants
[nested] [flat]

* [Pljava-dev] java.lang.UnsupportedOperationException: TYPE_FORWARD_ONLY
@ 2006-03-31 21:07  
  0 siblings, 1 reply; 2+ messages in thread

From:  @ 2006-03-31 21:07 UTC (permalink / raw)

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."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20060331/7f496d88/attachment.html;



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* [Pljava-dev] java.lang.UnsupportedOperationException:	TYPE_FORWARD_ONLY
@ 2006-03-31 21:57  
  parent: 
  0 siblings, 0 replies; 2+ messages in thread

From:  @ 2006-03-31 21:57 UTC (permalink / raw)

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
>   





^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2006-03-31 21:57 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-03-31 21:07 [Pljava-dev] java.lang.UnsupportedOperationException: TYPE_FORWARD_ONLY 
2006-03-31 21:57 ` [Pljava-dev] java.lang.UnsupportedOperationException:	TYPE_FORWARD_ONLY 

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox