Hi,
I get this exception when trying on fetching records using session.load(). The column on which this fails has a null value and the data type of the column in double.
net.sf.hibernate.PropertyAccessException: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of com.ge.erc.uww.actuarial.ro.OLAPricingLayerRow.setLimitPct
Caused by: net.sf.cglib.beans.BulkBeanException
at com.ge.erc.uww.actuarial.ro.OLAPricingLayerRow$$BulkBeanByCGLIB$$e6ba9662.setPropertyValues(<generated>)
at net.sf.hibernate.persister.AbstractEntityPersister.setPropertyValues(AbstractEntityPersister.java:208)
... 45 more
Caused by: java.lang.NullPointerException
... 47 more
The java variable declaration:
Code:
private double limitPct;
public double getLimitPct() {
return limitPct;
}
public void setLimitPct(double d) {
limitPct = d;
}
Hibernate mapping file:
Code:
<property name="limitPct" column="LIMIT_PCT" type="double"/>
Would anybody know why this's happening?
Thanks in advance.