javax.persistence.PersistenceException: org.hibernate.HibernateException: identifier of an instance of org.navigo.gena3.modelo.Articulo was altered from 1 to 2

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via openxava by pespadas
, 1 year ago
org.hibernate.HibernateException: identifier of an instance of org.navigo.gena3.modelo.Articulo was altered from 1 to 2
via blogspot.com by Unknown author, 2 years ago
org.hibernate.PersistentObjectException: detached entity passed to persist: com.quadrimular.fyfe.fulfillment.domain.BoxItem
via Stack Overflow by peter.petrov
, 10 months ago
org.hibernate.PropertyAccessException: IllegalArgumentException occurred calling getter of com.hibu.microservices.dataaccess.sql.bean.KeywordReportQueue.reportRequestID
via GitHub by adeptues
, 1 year ago
org.hibernate.HibernateException: org.postgresql.util.PSQLException: Large Objects may not be used in auto-commit mode.
via atlassian.net by Unknown author, 2 years ago
org.hibernate.PropertyAccessException: could not get a field value by reflection getter of com.doblones.data.Trader.id
via codegur.press by Unknown author, 1 year ago
org.hibernate.HibernateException: identifier of an B was altered from BPK@7fa6cf87 to BPK@62310b05
javax.persistence.PersistenceException: org.hibernate.HibernateException: identifier of an instance of org.navigo.gena3.modelo.Articulo was altered from 1 to 2
at org.hibernate.event.internal.DefaultFlushEntityEventListener.checkId(DefaultFlushEntityEventListener.java:80)
at org.hibernate.event.internal.DefaultFlushEntityEventListener.getValues(DefaultFlushEntityEventListener.java:192)
at org.hibernate.event.internal.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:152)
at org.hibernate.event.internal.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:231)
at org.hibernate.event.internal.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:102)
at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:55)
at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1258)
at org.hibernate.jpa.spi.AbstractEntityManagerImpl.flush(AbstractEntityManagerImpl.java:1335)
at org.openxava.jpa.impl.EntityManagerDecorator.flush(EntityManagerDecorator.java:157)
at org.openxava.model.impl.JPAPersistenceProvider.flush(JPAPersistenceProvider.java:97)
at org.openxava.model.impl.JPAPersistenceProvider.find(JPAPersistenceProvider.java:26)
at org.openxava.model.impl.POJOPersistenceProviderBase.find(POJOPersistenceProviderBase.java:92)
at org.openxava.model.impl.POJOPersistenceProviderBase.find(POJOPersistenceProviderBase.java:63)
at org.openxava.model.impl.MapFacadeBean.findEntity(MapFacadeBean.java:1576)
at org.openxava.model.impl.MapFacadeBean.findEntity(MapFacadeBean.java:1720)
at org.openxava.model.impl.MapFacadeBean.findEntity(MapFacadeBean.java:219)
at org.openxava.model.MapFacade.findEntity(MapFacade.java:634)
at org.openxava.view.View.getPOJO(View.java:3216)
at org.openxava.view.View.calculateValue(View.java:3161)
at org.openxava.view.View.tryPropertyChanged(View.java:2940)
at org.openxava.view.View.propertyChanged(View.java:2924)
at org.openxava.view.View.propertyChanged(View.java:2906)
at org.openxava.view.View.setValueNotifying(View.java:1132)
at org.openxava.view.View.calculateValue(View.java:3182)
at org.openxava.view.View.tryPropertyChanged(View.java:2940)
at org.openxava.view.View.propertyChanged(View.java:2924)
at org.openxava.view.View.propertyChanged(View.java:2906)
at org.openxava.view.View.setValueNotifying(View.java:1132)
at org.openxava.view.View.calculateValue(View.java:3182)
at org.openxava.view.View.tryPropertyChanged(View.java:2944)
at org.openxava.view.View.propertyChanged(View.java:2924)
at org.openxava.view.View.propertyChanged(View.java:2909)
at org.openxava.view.View.propertyChanged(View.java:2894)
at org.openxava.view.View.assignValuesToWebView(View.java:2507)
at org.openxava.view.View.assignValuesToWebView(View.java:2470)
at org.apache.jsp.xava.execute_jsp._jspService(execute_jsp.java:190)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544)
at org.openxava.web.servlets.Servlets.getURIAsStream(Servlets.java:66)
at org.openxava.web.dwr.Module.getURIAsStream(Module.java:202)
at org.openxava.web.dwr.Module.request(Module.java:61)
at sun.reflect.GeneratedMethodAccessor259.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.directwebremoting.impl.ExecuteAjaxFilter.doFilter(ExecuteAjaxFilter.java:34)
at org.directwebremoting.impl.DefaultRemoter$1.doFilter(DefaultRemoter.java:428)
at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:431)
at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:283)
at org.directwebremoting.servlet.PlainCallHandler.handle(PlainCallHandler.java:52)
at org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:101)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1044)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
223 times, 4 months ago
Once, 5 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.