Bad value for type BigDecimal : Y

From: Ashish Jain <ashjain2(at)gmail(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Bad value for type BigDecimal : Y
Date: 2009-06-11 14:01:14
Message-ID: 14af40510906110701g15f5f9edx1178b96a0237bcd0@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Richard Broersma 2009-06-11 16:30:50 Re: Bad value for type BigDecimal : Y
Previous Message Achilleas Mantzios 2009-06-11 09:04:12 Re: R: Re: Applet & SSL