-->
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.  [ 2 posts ] 
Author Message
 Post subject: Unable to retrieve float value from db2
PostPosted: Fri Sep 01, 2006 3:54 am 
Newbie

Joined: Fri Sep 01, 2006 3:44 am
Posts: 1
Hi,

I have problem to retrieve float value from db2 database. The field datatype in db2 is real(because in db2, doesn't have float datatype). And in the bean, the field is declared as float. When I insert data into db2, it has no problem. But, when I try to retrieve data from db2, it hits error on the SQLGetFloatData.

I have followed the online Hibernate Reference Documentation, but it still has the same problem.

May I know anyone has found same problem as me? Please reply me if there is any solution for this. Thanks in advance.


Best Regards,
Fooyen


Top
 Profile  
 
 Post subject: Re: Unable to retrieve float value from db2
PostPosted: Wed Jun 30, 2010 4:15 pm 
Newbie

Joined: Wed Jun 30, 2010 4:05 pm
Posts: 1
Hi,

Did you resolve your issue. If yes, how? I am having a similar problem on my application, please see below:

Code:
by: java.lang.UnsatisfiedLinkError: SQLGetFloatData
   at COM.ibm.db2.jdbc.app.DB2ResultSet.SQLGetFloatData(Native Method)
   at COM.ibm.db2.jdbc.app.DB2ResultSet.getFloat2(Unknown Source)
   at COM.ibm.db2.jdbc.app.DB2ResultSet.getFloat(Unknown Source)
   at org.jboss.resource.adapter.jdbc.WrappedResultSet.getFloat(WrappedResultSet.java:318)
   at net.sf.hibernate.type.FloatType.get(FloatType.java:16)
   at net.sf.hibernate.type.NullableType.nullSafeGet(NullableType.java:62)
   at net.sf.hibernate.type.NullableType.nullSafeGet(NullableType.java:53)
   at net.sf.hibernate.type.AbstractType.hydrate(AbstractType.java:66)
   at net.sf.hibernate.loader.Loader.hydrate(Loader.java:606)
   at net.sf.hibernate.loader.Loader.loadFromResultSet(Loader.java:547)
   at net.sf.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:506)
   at net.sf.hibernate.loader.Loader.getRow(Loader.java:421)
   at net.sf.hibernate.loader.Loader.doQuery(Loader.java:204)
   at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:128)
   at net.sf.hibernate.loader.Loader.loadEntity(Loader.java:826)
   at net.sf.hibernate.loader.Loader.loadEntity(Loader.java:846)
   at net.sf.hibernate.loader.EntityLoader.load(EntityLoader.java:57)
   at net.sf.hibernate.loader.EntityLoader.load(EntityLoader.java:49)
   at net.sf.hibernate.persister.EntityPersister.load(EntityPersister.java:420)
   at net.sf.hibernate.impl.SessionImpl.refresh(SessionImpl.java:2108)
   at net.sf.hibernate.impl.SessionImpl.refresh(SessionImpl.java:2071)


Only difference is I am experiencing it only on our Stage server and both while reading and updating float data.

PLease help. Thanks in advance.


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

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.