Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 44022 invoked from network); 5 Dec 2005 17:30:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Dec 2005 17:30:15 -0000 Received: (qmail 41204 invoked by uid 500); 5 Dec 2005 17:30:09 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 41108 invoked by uid 500); 5 Dec 2005 17:30:09 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 41072 invoked by uid 99); 5 Dec 2005 17:30:08 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2005 09:30:08 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [208.42.240.20] (HELO tde00.tde.com) (208.42.240.20) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2005 09:30:08 -0800 Received: from [192.168.5.6] (unverified [208.42.242.15]) by tde00.tde.com (Vircom SMTPRS 3.2.315.0) with ESMTP id for ; Mon, 5 Dec 2005 10:29:46 -0700 Message-ID: <43947915.2040408@tde.com> Date: Mon, 05 Dec 2005 10:29:57 -0700 From: Mike Fagan User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: user-java@ibatis.apache.org Subject: Re: fetch out of sequence References: <43904F13.6030808@tid.es> <43909C6F.4010607@tde.com> <4394029B.3020205@tid.es> In-Reply-To: <4394029B.3020205@tid.es> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Juan, Sorry I missed the change for namespaces. If you download the source from the wiki it should work fine for you. (I even tested with your sample code) Regards, Mike Fagan Juan Ca�adas wrote: > ok, thanks... > > i have been replaced older ibatis jars.... now, i get this error... > > com.ibatis.common.jdbc.exception.NestedSQLException: --- The error > occurred in es/xx/dao/rdb/usuario.xml. --- The error occurred while > applying a parameter map. --- Check the Usuario.getUsuariosRefPM. --- > Check the output parameters (retrieval of output parameters failed). > --- Cause: com.ibatis.sqlmap.client.SqlMapException: There is no > result map named getUsuarioRef in this SqlMap. > Caused by: com.ibatis.sqlmap.client.SqlMapException: There is no > result map named getUsuarioRef in this SqlMap. > at > com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeQueryWithCallback(GeneralStatement.java:188) > > at > com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeQueryForObject(GeneralStatement.java:104) > > at > com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForObject(SqlMapExecutorDelegate.java:561) > > at > com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForObject(SqlMapExecutorDelegate.java:536) > > at > com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForObject(SqlMapSessionImpl.java:93) > > at > com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.queryForObject(SqlMapClientImpl.java:70) > > at es.tid.imagenio.eai.Prueba.main(Prueba.java:100) > > someone can help me? > > thanks.... > > Mike Fagan wrote: > >> Juan, >> >> The source code has been updated to fix this error. You can download >> patch code at: >> http://opensource2.atlassian.com/confluence/oss/pages/viewpageattachments.action?pageId=561 >> >> >> Regards, >> Mike Fagan >> >> Juan Ca�adas wrote: >> >>> Hi >>> >>> I'm trying to get a list of values from an oracle stored procedure.... >>> >>> I've been updated ibates to support oracle's cursor >>> (http://opensource2.atlassian.com/confluence/oss/display/IBATIS/Oracle+REF+CURSOR+Solutions) >>> >>> but when i run the program it raises the error: >>> -------------------- >>> Caused by: java.sql.SQLException: ORA-01002: fetch out of sequence >>> >>> at >>> com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeQueryWithCallback(GeneralStatement.java:185) >>> >>> -------------------- >>> >>> Oracle code: >>> >>> CREATE OR REPLACE Package TypesPackage AS >>> TYPE ref_cursor IS REF CURSOR; >>> END TypesPackage; >>> / >>> >>> CREATE OR REPLACE PACKAGE BODY SYSPackage is >>> PROCEDURE getUsuariosCursor (usuariosCursor OUT >>> TypesPackage.ref_cursor) AS BEGIN >>> OPEN usuariosCursor FOR >>> SELECT userid, login, tipousr, descr, email FROM usuario >>> ORDER BY login; >>> END getUsuariosCursor; >>> END; >>> / >>> >>> -------------------- >>> usuario.xml: >>> >>> >>> >> PUBLIC "-//iBATIS.com//DTD SQL Map 2.0//EN" >>> "http://www.ibatis.com/dtd/sql-map-2.dtd"> >>> >>> >> type="es.miEmpresa.miProyecto.modelo.Usuario" /> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >> mode="OUT" resultMap="getUsuarioRef" /> >>> >>> >>> >>> { call SYSPackage.getUsuariosCursor(?) } >>> >>> >>> >>> -------------------- >>> and the java source: >>> >>> Map map = new HashMap(); >>> //List list; >>> try { >>> Prueba.sqlMap.queryForObject("getUsuariosRef", map); >>> System.out.println(map.get("usuariosCursor")); >>> }catch(Exception e){ >>> e.printStackTrace(); >>> } >>> >>> Can anyone help me? what is wrong? how can i solve this problem? i'm >>> newbie in java and ibates... >>> >>> Thanks >>> >> >> > >