Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id B9200633AA6 for ; Mon, 11 Jan 2010 16:15:47 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 91857-05 for ; Mon, 11 Jan 2010 20:15:33 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-iw0-f195.google.com (mail-iw0-f195.google.com [209.85.223.195]) by mail.postgresql.org (Postfix) with ESMTP id 268D46336BE for ; Mon, 11 Jan 2010 16:15:29 -0400 (AST) Received: by iwn33 with SMTP id 33so7402485iwn.29 for ; Mon, 11 Jan 2010 12:15:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type; bh=6ZU4GuuaNkVYOsrJHrwJYOghwumQj9cKhTqGoLZ71PI=; b=XuAExpo+7dPLn3qs4sgYlgj9fPcbhANpz66z9y+bBComeI6G55xI0ZnIgxcY8o3+Qi /BYCU7BkrvWSZIKicTG29y9lojo5bhm1ZeqGeJJbWEp8crJrvf8It+2BxJedfe3xiKmY yxtyj4eejzBX9rDfY3ullF35ZXLIsojgxlafY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=XKlzgHfcNJlKU26/K6/hwKCysF8+Ri160Z+s/G7WZm9zUmP9iWAZgB3LIqvt1ds5ix 2Oy2Wwu/gEhMBC+lrhmuDX3/anV7V4Pe1Ob4cIna1k6sW93XJi6wxaVT6iIddOUmtZqM Y4CodXERt0tdb18WYznO9WhpGlaV0Kc9jCF8w= MIME-Version: 1.0 Received: by 10.231.167.65 with SMTP id p1mr853998iby.20.1263240928747; Mon, 11 Jan 2010 12:15:28 -0800 (PST) In-Reply-To: <14B8F27D7CE40C4C9E481B2B845C2E0D724677A2@EXCHANGE.persistent.co.in> References: <14B8F27D7CE40C4C9E481B2B845C2E0D724677A2@EXCHANGE.persistent.co.in> Date: Mon, 11 Jan 2010 15:15:28 -0500 X-Google-Sender-Auth: 1d9de32d1951f9ee Message-ID: <491f66a51001111215l5ef09181j288d4d583bf007e4@mail.gmail.com> Subject: Re: Throwing NumberFormat exception for preparedStatement.setObjcet() From: Dave Cramer To: Srinivas Gunnam Cc: "pgsql-jdbc@postgresql.org" Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=AWL=0.000, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201001/6 X-Sequence-Number: 20202 On Mon, Jan 11, 2010 at 7:58 AM, Srinivas Gunnam wrote: > Hi, > > In our application we are using the Postgres Sql 8.3.3 and jdbc driver is > postgresql-8.0-310.jdbc3. Do you mean 8.0-310 ? if so why not use a more recent driver ? > > > > When I am trying to set the value for id(int) like as follows throwing > exception. > > ps.setObject(1, inputData,columntype); > > where inputdate value is 2 what is the columnType value ? Dave