From: thomas at tada.se (Thomas Hallgren) Date: Fri, 31 Mar 2006 23:57:02 +0200 Subject: [Pljava-dev] java.lang.UnsupportedOperationException: TYPE_FORWARD_ONLY In-Reply-To: References: Message-ID: <442DA5AE.4000907@tada.se> 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 * ResultSet.TYPE_FORWARD_ONLY, * ResultSet.TYPE_SCROLL_INSENSITIVE, or * ResultSet.TYPE_SCROLL_SENSITIVE 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 >