SiteElf
asked on
Hibernate Problem in saving records
hi guys
i have a problem i want to try to save many entities in hibernate entities have also composite keys i am getting this exception on saving i tried to solve it but i couldn't any help would be appreciated
Thank You
at org.hibernate.type.Abstrac tType.getH ashCode(Ab stractType .java:112)
09:53:24,859 ERROR [STDERR] at org.hibernate.type.Abstrac tType.getH ashCode(Ab stractType .java:120)
09:53:24,859 ERROR [STDERR] at org.hibernate.type.EntityT ype.getHas hCode(Enti tyType.jav a:402)
09:53:24,859 ERROR [STDERR] at org.hibernate.type.Compone ntType.get HashCode(C omponentTy pe.java:16 2)
09:53:24,859 ERROR [STDERR] at org.hibernate.engine.Entit yKey.gener ateHashCod e(EntityKe y.java:103 )
09:53:24,859 ERROR [STDERR] at org.hibernate.engine.Entit yKey.<init >(EntityKe y.java:47)
09:53:24,859 ERROR [STDERR] at org.hibernate.event.def.Ab stractSave EventListe ner.perfor mSave(Abst ractSaveEv entListene r.java:147 )
09:53:24,859 ERROR [STDERR] at org.hibernate.event.def.Ab stractSave EventListe ner.saveWi thGenerate dId(Abstra ctSaveEven tListener. java:114)
09:53:24,859 ERROR [STDERR] at org.hibernate.event.def.De faultSaveO rUpdateEve ntListener .saveWithG eneratedOr RequestedI d(DefaultS aveOrUpdat eEventList ener.java: 186)
09:53:24,859 ERROR [STDERR] at org.hibernate.event.def.De faultSaveE ventListen er.saveWit hGenerated OrRequeste dId(Defaul tSaveEvent Listener.j ava:33)
09:53:24,859 ERROR [STDERR] at org.hibernate.event.def.De faultSaveO rUpdateEve ntListener .entityIsT ransient(D efaultSave OrUpdateEv entListene r.java:175 )
09:53:24,859 ERROR [STDERR] at org.hibernate.event.def.De faultSaveE ventListen er.perform SaveOrUpda te(Default SaveEventL istener.ja va:27)
09:53:24,859 ERROR [STDERR] at org.hibernate.event.def.De faultSaveO rUpdateEve ntListener .onSaveOrU pdate(Defa ultSaveOrU pdateEvent Listener.j ava:70)
09:53:24,859 ERROR [STDERR] at org.hibernate.impl.Session Impl.fireS ave(Sessio nImpl.java :530)
09:53:24,859 ERROR [STDERR] at org.hibernate.impl.Session Impl.save( SessionImp l.java:518 )
09:53:24,859 ERROR [STDERR] at org.hibernate.impl.Session Impl.save( SessionImp l.java:514 )
09:53:24,859 ERROR [STDERR] at com.org.siteelf.shipping.d ao.Shippin gProfileZo neDAO.save (ShippingP rofileZone DAO.java:3 2)
09:53:24,859 ERROR [STDERR] at com.org.siteelf.shipping.d ao.Shippin gProfileZo neHandler. save(Shipp ingProfile ZoneHandle r.java:38)
09:53:24,859 ERROR [STDERR] at com.org.siteelf.shipping.d ao.Shippin gProfileZo neHandler. makeAction (ShippingP rofileZone Handler.ja va:160)
09:53:24,859 ERROR [STDERR] at com.org.siteelf.shipping.b usinesslog ic.Shippin gProfileMa nager.addU pdateShipp ingProfile (ShippingP rofileMana ger.java:1 60)
09:53:24,859 ERROR [STDERR] at com.org.siteelf.shipping.b usinesslog ic.Shippin gProfileMa nager.proc essRequest (ShippingP rofileMana ger.java:5 8)
09:53:24,859 ERROR [STDERR] at com.org.siteelf.workflow.W orkProcess or.startFl ow(WorkPro cessor.jav a:87)
09:53:24,859 ERROR [STDERR] at com.org.siteelf.shipping.b usinessdel egates.Shi ppingProfi leDelegate .doBusines sService(S hippingPro fileDelega te.java:20 2)
09:53:24,859 ERROR [STDERR] at com.org.siteelf.shipping.b usinessdel egates.Shi ppingProfi leDelegate .createReq uest(Shipp ingProfile Delegate.j ava:128)
09:53:24,859 ERROR [STDERR] at com.org.siteelf.customerma nager.stru ts.actionf orms.Contr ollerActio n.execute( Controller Action.jav a:217)
09:53:24,859 ERROR [STDERR] at org.apache.struts.action.R equestProc essor.proc essActionP erform(Req uestProces sor.java:4 19)
09:53:24,859 ERROR [STDERR] at org.apache.struts.action.R equestProc essor.proc ess(Reques tProcessor .java:224)
09:53:24,859 ERROR [STDERR] at org.apache.struts.action.A ctionServl et.process (ActionSer vlet.java: 1194)
09:53:24,859 ERROR [STDERR] at org.apache.struts.action.A ctionServl et.doPost( ActionServ let.java:4 32)
09:53:24,859 ERROR [STDERR] at javax.servlet.http.HttpSer vlet.servi ce(HttpSer vlet.java: 717)
09:53:24,875 ERROR [STDERR] at javax.servlet.http.HttpSer vlet.servi ce(HttpSer vlet.java: 810)
09:53:24,875 ERROR [STDERR] at org.apache.catalina.core.A pplication FilterChai n.internal DoFilter(A pplication FilterChai n.java:252 )
09:53:24,875 ERROR [STDERR] at org.apache.catalina.core.A pplication FilterChai n.doFilter (Applicati onFilterCh ain.java:1 73)
09:53:24,875 ERROR [STDERR] at org.jboss.web.tomcat.filte rs.ReplyHe aderFilter .doFilter( ReplyHeade rFilter.ja va:96)
09:53:24,875 ERROR [STDERR] at org.apache.catalina.core.A pplication FilterChai n.internal DoFilter(A pplication FilterChai n.java:202 )
09:53:24,875 ERROR [STDERR] at org.apache.catalina.core.A pplication FilterChai n.doFilter (Applicati onFilterCh ain.java:1 73)
09:53:24,875 ERROR [STDERR] at org.apache.catalina.core.S tandardWra pperValve. invoke(Sta ndardWrapp erValve.ja va:213)
09:53:24,875 ERROR [STDERR] at org.apache.catalina.core.S tandardCon textValve. invoke(Sta ndardConte xtValve.ja va:178)
09:53:24,875 ERROR [STDERR] at org.jboss.web.tomcat.secur ity.Securi tyAssociat ionValve.i nvoke(Secu rityAssoci ationValve .java:175)
09:53:24,875 ERROR [STDERR] at org.jboss.web.tomcat.secur ity.JaccCo ntextValve .invoke(Ja ccContextV alve.java: 74)
09:53:24,875 ERROR [STDERR] at org.apache.catalina.core.S tandardHos tValve.inv oke(Standa rdHostValv e.java:126 )
09:53:24,875 ERROR [STDERR] at org.apache.catalina.valves .ErrorRepo rtValve.in voke(Error ReportValv e.java:105 )
09:53:24,875 ERROR [STDERR] at org.apache.catalina.core.S tandardEng ineValve.i nvoke(Stan dardEngine Valve.java :107)
09:53:24,875 ERROR [STDERR] at org.apache.catalina.connec tor.Coyote Adapter.se rvice(Coyo teAdapter. java:148)
09:53:24,875 ERROR [STDERR] at org.apache.coyote.http11.H ttp11Proce ssor.proce ss(Http11P rocessor.j ava:869)
09:53:24,875 ERROR [STDERR] at org.apache.coyote.http11.H ttp11BaseP rotocol$Ht tp11Connec tionHandle r.processC onnection( Http11Base Protocol.j ava:664)
09:53:24,875 ERROR [STDERR] at org.apache.tomcat.util.net .PoolTcpEn dpoint.pro cessSocket (PoolTcpEn dpoint.jav a:527)
09:53:24,875 ERROR [STDERR] at org.apache.tomcat.util.net .MasterSla veWorkerTh read.run(M asterSlave WorkerThre ad.java:11 2)
09:53:24,875 ERROR [STDERR] at java.lang.Thread.run(Threa d.java:595 )
i have a problem i want to try to save many entities in hibernate entities have also composite keys i am getting this exception on saving i tried to solve it but i couldn't any help would be appreciated
Thank You
at org.hibernate.type.Abstrac
09:53:24,859 ERROR [STDERR] at org.hibernate.type.Abstrac
09:53:24,859 ERROR [STDERR] at org.hibernate.type.EntityT
09:53:24,859 ERROR [STDERR] at org.hibernate.type.Compone
09:53:24,859 ERROR [STDERR] at org.hibernate.engine.Entit
09:53:24,859 ERROR [STDERR] at org.hibernate.engine.Entit
09:53:24,859 ERROR [STDERR] at org.hibernate.event.def.Ab
09:53:24,859 ERROR [STDERR] at org.hibernate.event.def.Ab
09:53:24,859 ERROR [STDERR] at org.hibernate.event.def.De
09:53:24,859 ERROR [STDERR] at org.hibernate.event.def.De
09:53:24,859 ERROR [STDERR] at org.hibernate.event.def.De
09:53:24,859 ERROR [STDERR] at org.hibernate.event.def.De
09:53:24,859 ERROR [STDERR] at org.hibernate.event.def.De
09:53:24,859 ERROR [STDERR] at org.hibernate.impl.Session
09:53:24,859 ERROR [STDERR] at org.hibernate.impl.Session
09:53:24,859 ERROR [STDERR] at org.hibernate.impl.Session
09:53:24,859 ERROR [STDERR] at com.org.siteelf.shipping.d
09:53:24,859 ERROR [STDERR] at com.org.siteelf.shipping.d
09:53:24,859 ERROR [STDERR] at com.org.siteelf.shipping.d
09:53:24,859 ERROR [STDERR] at com.org.siteelf.shipping.b
09:53:24,859 ERROR [STDERR] at com.org.siteelf.shipping.b
09:53:24,859 ERROR [STDERR] at com.org.siteelf.workflow.W
09:53:24,859 ERROR [STDERR] at com.org.siteelf.shipping.b
09:53:24,859 ERROR [STDERR] at com.org.siteelf.shipping.b
09:53:24,859 ERROR [STDERR] at com.org.siteelf.customerma
09:53:24,859 ERROR [STDERR] at org.apache.struts.action.R
09:53:24,859 ERROR [STDERR] at org.apache.struts.action.R
09:53:24,859 ERROR [STDERR] at org.apache.struts.action.A
09:53:24,859 ERROR [STDERR] at org.apache.struts.action.A
09:53:24,859 ERROR [STDERR] at javax.servlet.http.HttpSer
09:53:24,875 ERROR [STDERR] at javax.servlet.http.HttpSer
09:53:24,875 ERROR [STDERR] at org.apache.catalina.core.A
09:53:24,875 ERROR [STDERR] at org.apache.catalina.core.A
09:53:24,875 ERROR [STDERR] at org.jboss.web.tomcat.filte
09:53:24,875 ERROR [STDERR] at org.apache.catalina.core.A
09:53:24,875 ERROR [STDERR] at org.apache.catalina.core.A
09:53:24,875 ERROR [STDERR] at org.apache.catalina.core.S
09:53:24,875 ERROR [STDERR] at org.apache.catalina.core.S
09:53:24,875 ERROR [STDERR] at org.jboss.web.tomcat.secur
09:53:24,875 ERROR [STDERR] at org.jboss.web.tomcat.secur
09:53:24,875 ERROR [STDERR] at org.apache.catalina.core.S
09:53:24,875 ERROR [STDERR] at org.apache.catalina.valves
09:53:24,875 ERROR [STDERR] at org.apache.catalina.core.S
09:53:24,875 ERROR [STDERR] at org.apache.catalina.connec
09:53:24,875 ERROR [STDERR] at org.apache.coyote.http11.H
09:53:24,875 ERROR [STDERR] at org.apache.coyote.http11.H
09:53:24,875 ERROR [STDERR] at org.apache.tomcat.util.net
09:53:24,875 ERROR [STDERR] at org.apache.tomcat.util.net
09:53:24,875 ERROR [STDERR] at java.lang.Thread.run(Threa
How about some description of your issue? Nobody can decipher your problem through the stack trace.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Forced accept.
Computer101
EE Admin
Computer101
EE Admin