Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id C848C125101 for ; Tue, 15 May 2012 09:46:29 -0300 (ADT) Received: from sam.nabble.com ([216.139.236.26]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SUH92-0006H8-RJ for pgsql-jdbc@postgresql.org; Tue, 15 May 2012 12:46:29 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1SUH8p-0002kf-Os for pgsql-jdbc@postgresql.org; Tue, 15 May 2012 05:46:15 -0700 Date: Tue, 15 May 2012 05:46:15 -0700 (PDT) From: jonykapil To: pgsql-jdbc@postgresql.org Message-ID: <1337085975761-5708766.post@n5.nabble.com> In-Reply-To: <1337079586.90024.YahooMailNeo@web121302.mail.ne1.yahoo.com> References: <1333637920442-5620617.post@n5.nabble.com> <1333710841.58069.YahooMailNeo@web110406.mail.gq1.yahoo.com> <1333717349570-5622702.post@n5.nabble.com> <1337061122958-5708726.post@n5.nabble.com> <1337079586.90024.YahooMailNeo@web121302.mail.ne1.yahoo.com> Subject: Re: Issues with IN-OUT parameters for Array of Objects in EDB using Java MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 0.0 (/) X-Archive-Number: 201205/48 X-Sequence-Number: 22948 Hello Altaf, Thanks for your reply. I changed my calling code as following. * objCstmt = objConn.prepareCall("{? = call SFBLPRDBILLDATA(?,?,?, cast(? as timestamp without time zone),cast(? as timestamp without time zone),cast(? as timestamp without time zone) )}"); objCstmt.registerOutParameter(1,Types.VARCHAR); objCstmt.setInt(2,iBillDay); objCstmt.setInt(3,iBillDay); objCstmt.setString(4,strBillFrequency); objCstmt.setDate(5,dtSysDate); objCstmt.registerOutParameter(6,Types.DATE); objCstmt.registerOutParameter(7,Types.DATE); objCstmt.execute();* Exception thrown by Postgres is :: *org.postgresql.util.PSQLException: ERROR: cannot cast type void to timestamp without time zone Position:84* I am not able to understand why now it is taking registerOutParameter as void. Please help me out of this... Thanks & regards jony -- View this message in context: http://postgresql.1045698.n5.nabble.com/Issues-with-IN-OUT-parameters-for-Array-of-Objects-in-EDB-using-Java-tp5620617p5708766.html Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.