A different object with the same identifier value is already associated with the session 2

Source: Internet
Author: User
Tags tomcat
This problem, I assign the object to null, it is also very useful. In my system, the update is good, but the insertion is not useful. Before the change, is inserted easy to use, and the update is not used. It was a problem in the system, but the catch just caught, from but, did not print out the log, Finding the reason is hard to find. When you are in a high database, it is best to print out the information in the exception capture. Org.springframework.orm.hibernate.hibernatesystemexception:a different object With the same identifier value is already associated with the session:4443398, of class:com.onewaveinc.media.cms.entity . Syncimportfolder; Nested exception is net.sf.hibernate.nonuniqueobjectexception:a different object with the same identifier value was Alrea Dy associated with the session:4443398, of Class:com.onewaveinc.media.cms.entity.SyncImportFolder
Net.sf.hibernate.nonuniqueobjectexception:a different object with the same identifier value is already associated with T He session:4443398, of Class:com.onewaveinc.media.cms.entity.SyncImportFolder
At Net.sf.hibernate.impl.SessionImpl.doSave (sessionimpl.java:852)
At Net.sf.hibernate.impl.SessionImpl.saveWithGeneratedIdentifier (sessionimpl.java:790)
At Net.sf.hibernate.impl.SessionImpl.save (sessionimpl.java:749)
At Org.springframework.orm.hibernate.hibernatetemplate$9.doinhibernate (hibernatetemplate.java:555)
At Org.springframework.orm.hibernate.HibernateTemplate.execute (hibernatetemplate.java:363)
At Org.springframework.orm.hibernate.HibernateTemplate.save (hibernatetemplate.java:552)
At Com.onewaveinc.media.cms.dao.impl.SyncFolderHibernateDao.insertHavaIndex (syncfolderhibernatedao.java:31)
At Com.onewaveinc.media.cms.manager.SyncFolderManager.doImportSyncFolder (syncfoldermanager.java:193)
At Com.onewaveinc.media.cms.manager.SyncFolderManager.insertHavaIndex (syncfoldermanager.java:107)
At Com.onewaveinc.media.cms.manager.SyncFolderManager.importSyncFolderList (syncfoldermanager.java:607)
At Com.onewaveinc.media.cms.web.SyncFolderImportAction.post (syncfolderimportaction.java:41)
At Com.onewaveinc.media.common.web.HttpMethodAction.execute (httpmethodaction.java:36)
At Org.apache.struts.action.RequestProcessor.processActionPerform (requestprocessor.java:421)
At Com.onewaveinc.media.web.struts.MediaRequestProcessor.processActionPerform (mediarequestprocessor.java:51)
At Org.apache.struts.action.RequestProcessor.process (requestprocessor.java:226)
At Org.apache.struts.action.ActionServlet.process (actionservlet.java:1164)
At Org.apache.struts.action.ActionServlet.doPost (actionservlet.java:415)
At Javax.servlet.http.HttpServlet.service (httpservlet.java:709)
At Javax.servlet.http.HttpServlet.service (httpservlet.java:802)
At Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (applicationfilterchain.java:237)
At Org.apache.catalina.core.ApplicationFilterChain.doFilter (applicationfilterchain.java:157)
At Org.ajaxanywhere.AAFilter.doFilter (aafilter.java:41)
At Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (applicationfilterchain.java:186)
At Org.apache.catalina.core.ApplicationFilterChain.doFilter (applicationfilterchain.java:157)
At Com.onewaveinc.appcommon.security.web.utils.SecurityFilter.doFilter (securityfilter.java:89)
At Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (applicationfilterchain.java:186)
At Org.apache.catalina.core.ApplicationFilterChain.doFilter (applicationfilterchain.java:157)
At Org.springframework.orm.hibernate.support.OpenSessionInViewFilter.doFilterInternal ( opensessioninviewfilter.java:174)
At Com.onewaveinc.media.common.web.SpringHibernateSessionFilter.doFilterInternal ( SPRINGHIBERNATESESSIONFILTER.JAVA:50)
At Org.springframework.web.filter.OncePerRequestFilter.doFilter (onceperrequestfilter.java:76)
At Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (applicationfilterchain.java:186)
At Org.apache.catalina.core.ApplicationFilterChain.doFilter (applicationfilterchain.java:157)
At Com.onewaveinc.media.web.struts.StrutsValidateFilter.doFilter (strutsvalidatefilter.java:38)
At Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (applicationfilterchain.java:186)
At Org.apache.catalina.core.ApplicationFilterChain.doFilter (applicationfilterchain.java:157)
At Com.onewaveinc.appcommon.utils.web.SetCharacterEncodingFilter.doFilter (setcharacterencodingfilter.java:168)
At Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (applicationfilterchain.java:186)
At Org.apache.catalina.core.ApplicationFilterChain.doFilter (applicationfilterchain.java:157)
At Org.apache.catalina.core.StandardWrapperValve.invoke (standardwrappervalve.java:214)
At Org.apache.catalina.core.StandardValveContext.invokeNext (standardvalvecontext.java:104)
At Org.apache.catalina.core.StandardPipeline.invoke (standardpipeline.java:520)
At Org.apache.catalina.core.StandardContextValve.invokeInternal (standardcontextvalve.java:198)
At Org.apache.catalina.core.StandardContextValve.invoke (standardcontextvalve.java:152)
At Org.apache.catalina.core.StandardValveContext.invokeNext (standardvalvecontext.java:104)
At Org.apache.catalina.core.StandardPipeline.invoke (standardpipeline.java:520)
At Org.apache.catalina.core.StandardHostValve.invoke (standardhostvalve.java:137)
At Org.apache.catalina.core.StandardValveContext.invokeNext (standardvalvecontext.java:104)
At Org.apache.catalina.valves.ErrorReportValve.invoke (errorreportvalve.java:118)
At Org.apache.catalina.core.StandardValveContext.invokeNext (standardvalvecontext.java:102)
At Org.apache.catalina.core.StandardPipeline.invoke (standardpipeline.java:520)
At Org.apache.catalina.core.StandardEngin.ve.invoke (standardengin.ve.java:109)
At Org.apache.catalina.core.StandardValveContext.invokeNext (standardvalvecontext.java:104)
At Org.apache.catalina.core.StandardPipeline.invoke (standardpipeline.java:520)
At Org.apache.catalina.core.ContainerBase.invoke (containerbase.java:929)
At Org.apache.coyote.tomcat5.CoyoteAdapter.service (coyoteadapter.java:160)
At Org.apache.coyote.http11.Http11Processor.process (http11processor.java:799)
At Org.apache.coyote.http11.http11protocol$http11connectionhandler.processconnection (Http11Protocol.java:705)
At Org.apache.tomcat.util.net.TcpWorkerThread.runIt (pooltcpendpoint.java:577)
At Org.apache.tomcat.util.threads.threadpool$controlrunnable.run (threadpool.java:683)
At Java.lang.Thread.run (thread.java:534)



A different object with the same identifier value WA

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.