This is a discussion on BUG #3615: Exception with loading string value within the pgsql Bugs forums, part of the PostgreSQL category; --> The following bug has been logged online: Bug reference: 3615 Logged by: Sundarrajan Email address: ssuyamboo@yahoo.com PostgreSQL version: 8.1.3 ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| The following bug has been logged online: Bug reference: 3615 Logged by: Sundarrajan Email address: ssuyamboo@yahoo.com PostgreSQL version: 8.1.3 Operating system: Windows Description: Exception with loading string value Details: I am trying to load table data using hibernate 3.1/postgres driver. I tried with the following driver versions, postgresql-8.2-504.jdbc2ee.jar postgresql-8.2-506.jdbc2ee.jar postgresql-8.2-506.jdbc3.jar All ended up in , Caused by: org.postgresql.util.PSQLException: Bad value for type int : STOREMODEL at org.postgresql.jdbc2.AbstractJdbc2ResultSet.toInt( AbstractJdbc2ResultSet.jav a:2653) at org.postgresql.jdbc2.AbstractJdbc2ResultSet.getInt (AbstractJdbc2ResultSet.ja va:1983) at org.postgresql.jdbc2.AbstractJdbc2ResultSet.getInt (AbstractJdbc2ResultSet.ja va:2327) at org.hibernate.type.IntegerType.get(IntegerType.jav a:28) at org.hibernate.type.NullableType.nullSafeGet(Nullab leType.java:113) at org.hibernate.type.NullableType.nullSafeGet(Nullab leType.java:102) at org.hibernate.type.ManyToOneType.hydrate(ManyToOne Type.java:95) at org.hibernate.persister.entity.AbstractEntityPersi ster.hydrate(AbstractEntit yPersister.java:1899) at org.hibernate.loader.Loader.loadFromResultSet(Load er.java:1372) at org.hibernate.loader.Loader.instanceNotYetLoaded(L oader.java:1300) at org.hibernate.loader.Loader.getRow(Loader.java:119 7) at org.hibernate.loader.Loader.getRowFromResultSet(Lo ader.java:569) at org.hibernate.loader.Loader.doQuery(Loader.java:68 9) at org.hibernate.loader.Loader.doQueryAndInitializeNo nLazyCollections(Loader.ja va:224) at org.hibernate.loader.Loader.doList(Loader.java:214 5) This happened when my code tried to load String data of data type bpchar in postgres. Column size used in table defn is 10 and the data length is 10. Could you please guide me how to resolve this? Thanks Sundar ---------------------------(end of broadcast)--------------------------- TIP 2: Don't 'kill -9' the postmaster |
| Thread Tools | |
| Display Modes | |
|
|