Unix Technical Forum

BUG #3615: Exception with loading string value

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 ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Bugs

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 12:07 PM
Sundarrajan
 
Posts: n/a
Default BUG #3615: Exception with loading string value


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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:57 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com