Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 39006 invoked from network); 11 Aug 2005 11:30:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Aug 2005 11:30:56 -0000 Received: (qmail 49492 invoked by uid 500); 11 Aug 2005 11:30:56 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 49160 invoked by uid 500); 11 Aug 2005 11:30:54 -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 49147 invoked by uid 99); 11 Aug 2005 11:30:54 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Aug 2005 04:30:54 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [203.124.136.17] (HELO mummrtg.mummrtg.ezbroadnet.com) (203.124.136.17) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Aug 2005 04:31:15 -0700 Received: from ind-spz7gwy003.mastek.com ([203.124.144.12]) by mummrtg.mummrtg.ezbroadnet.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 11 Aug 2005 17:00:59 +0530 Received: From ind-spz7gwy002.mastek.com ([172.16.32.49]) by ind-spz7gwy003.mastek.com (WebShield SMTP v4.5 MR1a P0803.345); id 1123759826714; Thu, 11 Aug 2005 17:00:26 +0530 Received: from ind-spz7exh003.mastek.com (unverified [172.16.32.129]) by ind-spz7gwy002.mastek.com (Content Technologies SMTPRS 4.3.12) with ESMTP id for ; Thu, 11 Aug 2005 17:00:26 +0530 Received: from IND-MHP1ECL001.mastek.com ([172.16.202.16]) by ind-spz7exh003.mastek.com with Microsoft SMTPSVC (5.0.2195.6713); Thu, 11 Aug 2005 17:00:26 +0530 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: stored procedures/functions Date: Thu, 11 Aug 2005 17:00:25 +0530 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: stored procedures/functions Thread-Index: AcWeZ71rReMXrYkmTEej0c1aFjpAmQAAEIMw From: "Priyesh Mashelkar" To: X-OriginalArrivalTime: 11 Aug 2005 11:30:26.0037 (UTC) FILETIME=[11AE9A50:01C59E68] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N jdbcType should be VARCHAR and not VARCHAR2 i suppose. -----Original Message----- From: Denis Vladimirov [mailto:denis.vladimirov@gmail.com] Sent: Thursday, August 11, 2005 4:58 PM To: user-java@ibatis.apache.org Subject: stored procedures/functions Hi there, I am trying to make a call to a stored Oracle function and I get the following error. What am I doing wrong? Or what is the best and simple way to call stored functions? Error =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D The error occurred while executing query procedure. --- Check the {? =3D call parameter.get_string(?)}. --- Check the output parameters (register output parameters failed). --- Cause: java.sql.SQLException: Invalid column type; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException: --- My Xml file =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D {? =3D call parameter.get_string(?)} My Java src =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Map map =3D new HashMap(); map.put("result", ""); map.put("param_name ", parameter); result =3D (String) getSqlMapClientTemplate().queryForObject( "getStringParameter", map); =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Thanks, Denis MASTEK "Making a valuable difference" Mastek in NASSCOM's 'India Top 20' Software Service Exporters List. In the US, we're called MAJESCO ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Opinions expressed in this e-mail are those of the individual and not that = of Mastek Limited, unless specifically indicated to that effect. Mastek Lim= ited does not accept any responsibility or liability for it. This e-mail an= d attachments (if any) transmitted with it are confidential and/or privileg= ed and solely for the use of the intended person or entity to which it is a= ddressed. Any review, re-transmission, dissemination or other use of or tak= ing of any action in reliance upon this information by persons or entities = other than the intended recipient is prohibited. This e-mail and its attach= ments have been scanned for the presence of computer viruses. It is the res= ponsibility of the recipient to run the virus check on e-mails and attachme= nts before opening them. If you have received this e-mail in error, kindly = delete this e-mail from all computers. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~