Skip site navigation (1) Skip section navigation (2)

Bad value for type BigDecimal : Y

From: Ashish Jain <ashjain2(at)gmail(dot)com>
To: pgsql-students(at)postgresql(dot)org
Subject: Bad value for type BigDecimal : Y
Date: 2009-06-11 12:53:07
Message-ID: 14af40510906110553i1cd2586bq65f6fbb388d62217@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-students
Hi,

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
    at
org.postgresql.jdbc2.AbstractJdbc2ResultSet.toBigDecimal(AbstractJdbc2ResultSet.java:2710)
    at
org.postgresql.jdbc2.AbstractJdbc2ResultSet.getBigDecimal(AbstractJdbc2ResultSet.java:2133)
    at
org.postgresql.jdbc2.AbstractJdbc2ResultSet.getBigDecimal(AbstractJdbc2ResultSet.java:311)
    at
org.tranql.connector.jdbc.ResultSetHandle.getBigDecimal(ResultSetHandle.java:179)
    at
org.apache.openjpa.lib.jdbc.DelegatingResultSet.getBigDecimal(DelegatingResultSet.java:282)
    at
org.apache.openjpa.jdbc.sql.DBDictionary.getBigDecimal(DBDictionary.java:389)
    at
org.apache.openjpa.jdbc.sql.PostgresDictionary.getInt(PostgresDictionary.java:210)
    at
org.apache.openjpa.jdbc.sql.DBDictionary.getChar(DBDictionary.java:556)
    at
org.apache.openjpa.jdbc.sql.ResultSetResult.getCharInternal(ResultSetResult.java:288)
    at
org.apache.openjpa.jdbc.sql.ResultSetResult.getObjectInternal(ResultSetResult.java:356)
    at
org.apache.openjpa.jdbc.sql.AbstractResult.getObject(AbstractResult.java:662)
    at
org.apache.openjpa.jdbc.meta.strats.HandlerStrategies.loadDataStore(HandlerStrategies.java:205)
    at
org.apache.openjpa.jdbc.meta.strats.HandlerFieldStrategy.load(HandlerFieldStrategy.java:172)
    at org.apache.openjpa.jdbc.meta.FieldMapping.load(FieldMapping.java:796)
    at
org.apache.openjpa.jdbc.kernel.JDBCStoreManager.load(JDBCStoreManager.java:833)
    at
org.apache.openjpa.jdbc.kernel.JDBCStoreManager.load(JDBCStoreManager.java:785)
    at
org.apache.openjpa.jdbc.kernel.JDBCStoreManager.load(JDBCStoreManager.java:453)
    ... 106 more



Please help!!!

Thanks
Ashish

pgsql-students by date

Next:From: Edson RamiroDate: 2009-08-04 20:14:04
Subject: Executor Material
Previous:From: Lucas FelixDate: 2008-11-06 23:53:28
Subject: Re: ayuda con la instalacion

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group