anieshuk
Oct 5th, 2005, 07:03 AM
Hai EveryONe
I am using spring and hibernate.The integration works smoothly for all the setter and getter datatype but for float datatype i am getting the following errorCaused by: org.springframework.orm.hibernate3.HibernateSystem Exception: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of bus.LH_M_EBooking.Booking.setPf_gross_wt; nested exception is org.hibernate.PropertyAccessException: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of bus.LH_M_EBooking.Booking.setPf_gross_wt
at org.springframework.orm.hibernate3.SessionFactoryU tils.convertHibernateAccessException(SessionFactor yUtils.java:632)
at org.springframework.orm.hibernate3.HibernateAccess or.convertHibernateAccessException(HibernateAccess or.java:229)
at org.springframework.orm.hibernate3.HibernateTempla te.execute(HibernateTemplate.java:316)
at org.springframework.orm.hibernate3.HibernateTempla te.find(HibernateTemplate.java:740)
at org.springframework.orm.hibernate3.HibernateTempla te.find(HibernateTemplate.java:732)
at db.LH_M_EBooking.EBookingHibernate.getQuerylist(EB ookingHibernate.java:17)
at bus.LH_M_EBooking.Bookingmanager.Query(Bookingmana ger.java:55)
at web.Exportbookingcontroller.HQuery(Exportbookingco ntroller.java:363)
... 34 more
Caused by: org.hibernate.PropertyAccessException: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of bus.LH_M_EBooking.Booking.setPf_gross_wt
at org.hibernate.tuple.PojoTuplizer.setPropertyValues WithOptimizer(PojoTuplizer.java:203)
at org.hibernate.tuple.PojoTuplizer.setPropertyValues (PojoTuplizer.java:173)
at org.hibernate.persister.entity.BasicEntityPersiste r.setPropertyValues(BasicEntityPersister.java:2919 )
at org.hibernate.engine.TwoPhaseLoad.initializeEntity (TwoPhaseLoad.java:113)
at org.hibernate.loader.Loader.initializeEntitiesAndC ollections(Loader.java:530)
at org.hibernate.loader.Loader.doQuery(Loader.java:43 6)
at org.hibernate.loader.Loader.doQueryAndInitializeNo nLazyCollections(Loader.java:218)
at org.hibernate.loader.Loader.doList(Loader.java:159 3)
at org.hibernate.loader.Loader.list(Loader.java:1577)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoa der.java:395)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(Que ryTranslatorImpl.java:271)
at org.hibernate.impl.SessionImpl.list(SessionImpl.ja va:844)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:7 4)
at org.springframework.orm.hibernate3.HibernateTempla te$29.doInHibernate(HibernateTemplate.java:749)
at org.springframework.orm.hibernate3.HibernateTempla te.execute(HibernateTemplate.java:311)
... 39 more
Caused by: net.sf.cglib.beans.BulkBeanException
at bus.LH_M_EBooking.Booking$$BulkBeanByCGLIB$$2785c8 9f.setPropertyValues(<generated>)
at org.hibernate.tuple.PojoTuplizer.setPropertyValues WithOptimizer(PojoTuplizer.java:200)
... 53 more
Caused by: java.lang.NullPointerException
... 55 more
Can any one help me here is my hbm file
<hibernate-mapping auto-import="true">
<class name="bus.LH_M_EBooking.Booking" table="qtlh.t_booking">
<id name="refno" column="refno">
<generator class="assigned"/>
</id>
<property name="ps_customercode" column="customercode"/>
<property name="pf_gross_wt" column="gross_wt"/>
<property name="pf_net_wt" column="net_wt"/>
<property name="pi_pkgs" column="pkgs"/>
<property name="pf_total_qty" column="total_qty"/>
</hibernate-mapping>
Help pls
Aniesh U.K
I am using spring and hibernate.The integration works smoothly for all the setter and getter datatype but for float datatype i am getting the following errorCaused by: org.springframework.orm.hibernate3.HibernateSystem Exception: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of bus.LH_M_EBooking.Booking.setPf_gross_wt; nested exception is org.hibernate.PropertyAccessException: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of bus.LH_M_EBooking.Booking.setPf_gross_wt
at org.springframework.orm.hibernate3.SessionFactoryU tils.convertHibernateAccessException(SessionFactor yUtils.java:632)
at org.springframework.orm.hibernate3.HibernateAccess or.convertHibernateAccessException(HibernateAccess or.java:229)
at org.springframework.orm.hibernate3.HibernateTempla te.execute(HibernateTemplate.java:316)
at org.springframework.orm.hibernate3.HibernateTempla te.find(HibernateTemplate.java:740)
at org.springframework.orm.hibernate3.HibernateTempla te.find(HibernateTemplate.java:732)
at db.LH_M_EBooking.EBookingHibernate.getQuerylist(EB ookingHibernate.java:17)
at bus.LH_M_EBooking.Bookingmanager.Query(Bookingmana ger.java:55)
at web.Exportbookingcontroller.HQuery(Exportbookingco ntroller.java:363)
... 34 more
Caused by: org.hibernate.PropertyAccessException: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of bus.LH_M_EBooking.Booking.setPf_gross_wt
at org.hibernate.tuple.PojoTuplizer.setPropertyValues WithOptimizer(PojoTuplizer.java:203)
at org.hibernate.tuple.PojoTuplizer.setPropertyValues (PojoTuplizer.java:173)
at org.hibernate.persister.entity.BasicEntityPersiste r.setPropertyValues(BasicEntityPersister.java:2919 )
at org.hibernate.engine.TwoPhaseLoad.initializeEntity (TwoPhaseLoad.java:113)
at org.hibernate.loader.Loader.initializeEntitiesAndC ollections(Loader.java:530)
at org.hibernate.loader.Loader.doQuery(Loader.java:43 6)
at org.hibernate.loader.Loader.doQueryAndInitializeNo nLazyCollections(Loader.java:218)
at org.hibernate.loader.Loader.doList(Loader.java:159 3)
at org.hibernate.loader.Loader.list(Loader.java:1577)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoa der.java:395)
at org.hibernate.hql.ast.QueryTranslatorImpl.list(Que ryTranslatorImpl.java:271)
at org.hibernate.impl.SessionImpl.list(SessionImpl.ja va:844)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:7 4)
at org.springframework.orm.hibernate3.HibernateTempla te$29.doInHibernate(HibernateTemplate.java:749)
at org.springframework.orm.hibernate3.HibernateTempla te.execute(HibernateTemplate.java:311)
... 39 more
Caused by: net.sf.cglib.beans.BulkBeanException
at bus.LH_M_EBooking.Booking$$BulkBeanByCGLIB$$2785c8 9f.setPropertyValues(<generated>)
at org.hibernate.tuple.PojoTuplizer.setPropertyValues WithOptimizer(PojoTuplizer.java:200)
... 53 more
Caused by: java.lang.NullPointerException
... 55 more
Can any one help me here is my hbm file
<hibernate-mapping auto-import="true">
<class name="bus.LH_M_EBooking.Booking" table="qtlh.t_booking">
<id name="refno" column="refno">
<generator class="assigned"/>
</id>
<property name="ps_customercode" column="customercode"/>
<property name="pf_gross_wt" column="gross_wt"/>
<property name="pf_net_wt" column="net_wt"/>
<property name="pi_pkgs" column="pkgs"/>
<property name="pf_total_qty" column="total_qty"/>
</hibernate-mapping>
Help pls
Aniesh U.K