Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 8C8DA6352D2 for ; Thu, 11 Jun 2009 13:30:54 -0300 (ADT) 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 80977-10 for ; Thu, 11 Jun 2009 13:30:50 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.27]) by mail.postgresql.org (Postfix) with ESMTP id 30F166350E5 for ; Thu, 11 Jun 2009 13:30:51 -0300 (ADT) Received: by qw-out-2122.google.com with SMTP id 8so857828qwh.61 for ; Thu, 11 Jun 2009 09:30:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Z/4vG//2prWu0lZra3kKo5cJl4Ag1/a9w/G699qlxTw=; b=EE/CtsIQrhf6uzokoea2ljy12xZlmB/34nQ+VG9wxFVZd/S+jW7z1k7UHQ+U95ExaQ SsCEz6/V9hEf45JGf6iE2sUGiCuTB/MAdSXrWIAbv8iXuTDBvcnr3WztOOe25Do2Zdk5 TK3heV/4TOxKx/S6ahCQwPZoPYYTRy4gtmzeg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=p1oMETis5X3aG2b9aLffb8jDY5ozpwrRAj0ttOts6GFlYL6kKhllAFJ8NKTwMIqorV LF75y0zh/8V86fAMfJThEmBQUzc7ZFeAK0h/A+jaJ6Gq7erwIdsdgTAkpO5yKvfJw815 AV5S1g2lcXns4J16ipVN9BD44XPxBmEMCMaMc= MIME-Version: 1.0 Received: by 10.220.100.16 with SMTP id w16mr2333144vcn.110.1244737850323; Thu, 11 Jun 2009 09:30:50 -0700 (PDT) In-Reply-To: <14af40510906110701g15f5f9edx1178b96a0237bcd0@mail.gmail.com> References: <14af40510906110701g15f5f9edx1178b96a0237bcd0@mail.gmail.com> Date: Thu, 11 Jun 2009 09:30:50 -0700 Message-ID: <396486430906110930s33c6f95bjc6848775d20049df@mail.gmail.com> Subject: Re: Bad value for type BigDecimal : Y From: Richard Broersma To: Ashish Jain Cc: pgsql-jdbc@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.099 tagged_above=0 required=5 tests=AWL=0.099 X-Spam-Level: X-Archive-Number: 200906/52 X-Sequence-Number: 19716 On Thu, Jun 11, 2009 at 7:01 AM, Ashish Jain wrote: > I am using postgresql 8.3 with openJPA 1.2.1. I hit the following error > > org.postgresql.util. > PSQLException: Bad value for type BigDecimal : Y =A0=A0=A0 at > org.postgresql.jdbc2.AbstractJdbc2ResultSet.toBigDecimal(AbstractJdbc2Res= ultSet.java:2710) I'm curious what the column definition is for the mapped field that is defined as a BigDecimal in your JPA ORM. Is it possible for PostgreSQL's numeric data to represent values that exceed the limits of java BigDecimal class? --=20 Regards, Richard Broersma Jr. Visit the Los Angeles PostgreSQL Users Group (LAPUG) http://pugs.postgresql.org/lapug