-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: SQLDataException: Reading an Integer with a Reader?
PostPosted: Thu May 26, 2011 6:38 pm 
Newbie

Joined: Tue Jan 04, 2011 4:03 pm
Posts: 2
I'm not sure if this is an issue with the Derby driver or Hibernate. I do know that it surfaced after upgrading Hibernate to 3.5.6 Final from 3.3.2. Final.

Any suggestions as to what might cause this?

Caused by: java.sql.SQLDataException: An attempt was made to get a data value of type 'java.sql.Types 4' from a data value of type 'java.io.Reader'.
at org.apache.derby.client.am.SQLExceptionFactory40.getSQLException(Unknown Source)
at org.apache.derby.client.am.SqlException.getSQLException(Unknown Source)
at org.apache.derby.client.am.ResultSet.getCharacterStream(Unknown Source)
at org.apache.derby.client.am.ResultSet.getCharacterStream(Unknown Source)
at org.apache.commons.dbcp.DelegatingResultSet.getCharacterStream(DelegatingResultSet.java:299)
at org.hibernate.type.AbstractLongStringType.get(AbstractLongStringType.java:54)
at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:186)
at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:212)
at org.hibernate.loader.criteria.CriteriaLoader.getResultColumnOrRow(CriteriaLoader.java:148)
at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:647)
at org.hibernate.loader.Loader.doQuery(Loader.java:745)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:270)
at org.hibernate.loader.Loader.doList(Loader.java:2449)
... 42 more
Caused by: org.apache.derby.client.am.ColumnTypeConversionException: An attempt was made to get a data value of type 'java.sql.Types 4' from a data value of type 'java.io.Reader'.
at org.apache.derby.client.am.Cursor.getCharacterStream(Unknown Source)
... 53 more


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.