javax.persistence.PersistenceException: org.hibernate.PersistentObjectException: detached entity passed to persist: nl.b3p.viewer.config.app.Level

GitHub | KJLammers | 2 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to poroszd . Or join the community to write better ones.
  1. 0
    samebug tip
    Check your annotations to use the proper table and column names.
  2. 0
    samebug tip
    Check your annotations to use the proper table and column names.
  3. 0

    Spring 3 Forms + ModelAttribute + Deteched Entity

    Stack Overflow | 7 years ago | Jan
    javax.persistence.PersistenceException: org.hibernate.PersistentObjectException: detached entity passed to persist: some.package.Entity
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Copying mash-up not possible

    GitHub | 2 months ago | KJLammers
    javax.persistence.PersistenceException: org.hibernate.PersistentObjectException: detached entity passed to persist: nl.b3p.viewer.config.app.Level
  6. 0

    Best way to replace an entity using EntityManager

    Stack Overflow | 4 years ago | Depressio
    javax.persistence.PersistenceException: org.hibernate.PersistentObjectException: detached entity passed to persist: com.depressio.SomeObject

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.hibernate.PersistentObjectException

      detached entity passed to persist: nl.b3p.viewer.config.app.Level

      at org.hibernate.event.def.DefaultPersistEventListener.onPersist()
    2. Hibernate
      SessionImpl.persistOnFlush
      1. org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:127)
      2. org.hibernate.impl.SessionImpl.firePersistOnFlush(SessionImpl.java:834)
      3. org.hibernate.impl.SessionImpl.persistOnFlush(SessionImpl.java:826)
      3 frames
    3. Hibernate
      Cascade.cascade
      1. org.hibernate.engine.CascadingAction$9.cascade(CascadingAction.java:357)
      2. org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:392)
      3. org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:335)
      4. org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:204)
      5. org.hibernate.engine.Cascade.cascade(Cascade.java:161)
      5 frames
    4. Hibernate
      SessionImpl.flush
      1. org.hibernate.event.def.AbstractFlushingEventListener.cascadeOnFlush(AbstractFlushingEventListener.java:154)
      2. org.hibernate.event.def.AbstractFlushingEventListener.prepareEntityFlushes(AbstractFlushingEventListener.java:145)
      3. org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:88)
      4. org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50)
      5. org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1216)
      5 frames
    5. Hibernate EJB
      AbstractEntityManagerImpl.flush
      1. org.hibernate.ejb.AbstractEntityManagerImpl.flush(AbstractEntityManagerImpl.java:960)
      1 frame
    6. nl.b3p.viewer
      ApplicationSettingsActionBean.copy
      1. nl.b3p.viewer.admin.stripes.ApplicationSettingsActionBean.copy(ApplicationSettingsActionBean.java:378)
      1 frame
    7. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    8. Stripes
      ExecutionContext.proceed
      1. net.sourceforge.stripes.controller.DispatcherHelper$6.intercept(DispatcherHelper.java:456)
      2. net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:176)
      2 frames
    9. org.stripesstuff.plugin
      SecurityInterceptor.intercept
      1. org.stripesstuff.plugin.security.SecurityInterceptor.interceptEventHandling(SecurityInterceptor.java:201)
      2. org.stripesstuff.plugin.security.SecurityInterceptor.intercept(SecurityInterceptor.java:131)
      2 frames
    10. Stripes
      ExecutionContext.proceed
      1. net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:173)
      1 frame
    11. org.stripesstuff.plugin
      SessionStoreInterceptor.intercept
      1. org.stripesstuff.plugin.session.SessionStoreInterceptor.intercept(SessionStoreInterceptor.java:48)
      1 frame
    12. Stripes
      ExecutionContext.proceed
      1. net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:173)
      2. net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor.intercept(BeforeAfterMethodInterceptor.java:113)
      3. net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:173)
      3 frames
    13. org.stripesstuff.plugin
      WaitPageInterceptor.intercept
      1. org.stripesstuff.plugin.waitpage.WaitPageInterceptor.intercept(WaitPageInterceptor.java:175)
      1 frame
    14. Stripes
      DispatcherServlet.service
      1. net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:173)
      2. net.sourceforge.stripes.controller.ExecutionContext.wrap(ExecutionContext.java:86)
      3. net.sourceforge.stripes.controller.DispatcherHelper.invokeEventHandler(DispatcherHelper.java:454)
      4. net.sourceforge.stripes.controller.DispatcherServlet.invokeEventHandler(DispatcherServlet.java:278)
      5. net.sourceforge.stripes.controller.DispatcherServlet.service(DispatcherServlet.java:160)
      5 frames
    15. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      1 frame
    16. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
      2 frames
    17. Stripes
      StripesFilter.doFilter
      1. net.sourceforge.stripes.controller.StripesFilter.doFilter(StripesFilter.java:260)
      1 frame
    18. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
      2 frames
    19. Tomcat WS
      WsFilter.doFilter
      1. org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      1 frame
    20. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
      2 frames
    21. nl.b3p.web
      GeoToolsFilter.doFilter
      1. nl.b3p.web.geotools.GeoToolsFilter.doFilter(GeoToolsFilter.java:52)
      1 frame
    22. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
      2 frames
    23. nl.b3p.web
      SetCharacterEncodingFilter.doFilter
      1. nl.b3p.web.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:122)
      1 frame
    24. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
      5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:614)
      6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
      7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
      8. org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
      9. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
      10. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
      10 frames
    25. org.apache.coyote
      AbstractAjpProcessor.process
      1. org.apache.coyote.ajp.AbstractAjpProcessor.process(AbstractAjpProcessor.java:868)
      1 frame
    26. Grizzly HTTP
      NioEndpoint$SocketProcessor.run
      1. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
      2. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
      3. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
      3 frames
    27. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      2 frames
    28. Tomcat Util
      TaskThread$WrappingRunnable.run
      1. org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      1 frame
    29. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame