Bug 309 : Postgres specific error: org.postgresql.util.PSQLException Bad value for type long : ... with @Lob
Priority 
High
Reported Version 
 
Logged By 
Rob
Status 
Fixed
Fixed Version 
2.7.0
Assigned To 
 
Product 
Ebean - core
Duplicate Of 
 
Created 
08/06/2010
Updated 
08/06/2010
Type 
Bug
 
Attachments 
No attachments

Caused by: org.postgresql.util.PSQLException: Bad value for type long : This is a test
at org.postgresql.jdbc2.AbstractJdbc2ResultSet.toLong(AbstractJdbc2ResultSet.java:2796)
at org.postgresql.jdbc2.AbstractJdbc2ResultSet.getLong(AbstractJdbc2ResultSet.java:2019)
at org.postgresql.jdbc4.Jdbc4ResultSet.getClob(Jdbc4ResultSet.java:43)
at com.avaje.ebeaninternal.server.type.RsetDataReader.getStringClob(RsetDataReader.java:190)
at com.avaje.ebeaninternal.server.type.ScalarTypeClob.read(ScalarTypeClob.java:56)
at com.avaje.ebeaninternal.server.type.ScalarTypeClob.read(ScalarTypeClob.java:32)
at com.avaje.ebeaninternal.server.deploy.BeanProperty.read(BeanProperty.java:611)
at com.avaje.ebeaninternal.server.query.SqlBeanLoad.load(SqlBeanLoad.java:111)
... 18 more

 
Rob 08 Jun 10:07
Test case:

See TestBasicClobNoVer.

This logged based on http://groups.google.com/group/ebean/browse_thread/thread/b9c09e6522af453b

Rob 08 Jun 10:11
Fixed in HEAD

Fixed in HEAD.

woResponse

Upload a file