-->
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: while commiing the transaction throws exception
PostPosted: Sat May 08, 2004 5:02 am 
Newbie

Joined: Tue Dec 23, 2003 5:53 am
Posts: 7
Location: India
hi, while adding objects into database it fire the insert stmt , but not commited.

Hibernate: insert into M2IREMITTXNAUDIT (VERSION, M2ICUSTID, REMTXNID, M2IPRODID, CURRENCYID, COUNTRYCCYID, DISBCODE, TRACKNO, REMITAMOUNT, PURPOSECODE, ACCINSTID, DEPOPERIOD, DESTCURRID, INRFLAG, INRAMOUNT, CUSTRATE, STATID, ACHFILEID, REFTRACKNO, RETURNDATE, REJECTID, CBBPCCOMMENT, CANCEL_DATE, COMMISION, AGENCYCHG, RETCHARGE, MATCHED_FLAG, ACTDATE, BRANCHCODE, BANKID, INRPERCENT, INRACTNO, FILESTATUS, EMAILFLAG, STATUS, MAKER, MAKERSTAMP, UPDSTAMP, REMITTERCOUNTRYID, AUDITID) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: insert into M2IREMACHTXNAUDIT (ACHACNID, ROUTINGNO, M2IACCTYPE, ACCOUNTNO, RECTYPE, NOOFREQ, RECFREQ, FILESTATUS, REMITTANCEID, AUDITID) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
java.lang.ClassCastException: java.lang.Long
at net.sf.hibernate.type.IntegerType.set(IntegerType.java:31)
at net.sf.hibernate.type.NullableType.nullSafeSet(NullableType.java:48)
at net.sf.hibernate.type.NullableType.nullSafeSet(NullableType.java:35)
at net.sf.hibernate.persister.NormalizedEntityPersister.dehydrate(NormalizedEntityPersister.java:379)
at net.sf.hibernate.persister.NormalizedEntityPersister.dehydrate(NormalizedEntityPersister.java:362)
at net.sf.hibernate.persister.NormalizedEntityPersister.insert(NormalizedEntityPersister.java:504)
at net.sf.hibernate.persister.NormalizedEntityPersister.insert(NormalizedEntityPersister.java:478)
at net.sf.hibernate.impl.ScheduledInsertion.execute(ScheduledInsertion.java:28)
at net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:2306)
at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2259)
at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2185)
at net.sf.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:61)
at com.cashtech.crab.hibernate.HibernateTransaction.commit(HibernateTransaction.java:75)
at TestAudit.main(TestAudit.java:42)


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 10, 2004 11:30 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Chec your hbm files AND your POJO
You somewhere use Integer as a type and Long for the same property.

_________________
Emmanuel


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.