org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.orm.ObjectOptimisticLockingFailureException: Object of class [gus.model.Person] with identifier [cd8973f6-fcc4-44e3-9692-fb5c4c81ac58]: optimistic locking failed; nested exception is org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect) : [gus.model.Person#cd8973f6-fcc4-44e3-9692-fb5c4c81ac58]

  1. 0

    StaleObjectStateException appears when I test a REST project, how can I solve it?

    Stack Overflow | 5 months ago | Juan Caleb Rizo Vilchis
    org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.orm.ObjectOptimisticLockingFailureException: Object of class [gus.model.Person] with identifier [cd8973f6-fcc4-44e3-9692-fb5c4c81ac58]: optimistic locking failed; nested exception is org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect) : [gus.model.Person#cd8973f6-fcc4-44e3-9692-fb5c4c81ac58]
  2. 0

    Spring MockMVC test with JSON content is throwing NullPointerException from Spring code

    Stack Overflow | 2 years ago | Sam Jones
    org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.NullPointerException
  3. 0

    Spring Data JPA: OneToOne with shared primary key doesn't seem to work

    Stack Overflow | 9 months ago | Vlasec
    org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.dao.DataIntegrityViolationException: A different object with the same identifier value was already associated with the session : [blah.payment.PaymentFailure#172656]; nested exception is javax.persistence.EntityExistsException: A different object with the same identifier value was already associated with the session : [blah.payment.PaymentFailure#172656]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Database (PostgreSQL) constraint violation not wrapped in JPA's PersistenceException

    Stack Overflow | 5 months ago | LAC
    org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.dao.DataIntegrityViolationException: could not execute statement; SQL [n/a]; constraint [duplicate_entry]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement
  6. 0

    Hibernate - Spring MVC - llegal attempt to associate a collection with two open sessions

    Stack Overflow | 3 years ago | iProgrammer
    org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.transaction.UnexpectedRollbackException: JTA transaction unexpectedly rolled back (maybe due to a timeout); nested exception is bitronix.tm.internal.BitronixRollbackException: transaction was marked as rollback only and has been rolled back

  1. tfr 1 times, last 4 months ago
15 unregistered visitors
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.springframework.web.util.NestedServletException

    Request processing failed; nested exception is org.springframework.orm.ObjectOptimisticLockingFailureException: Object of class [gus.model.Person] with identifier [cd8973f6-fcc4-44e3-9692-fb5c4c81ac58]: optimistic locking failed; nested exception is org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect) : [gus.model.Person#cd8973f6-fcc4-44e3-9692-fb5c4c81ac58]

    at org.springframework.web.servlet.FrameworkServlet.processRequest()
  2. Spring MVC
    FrameworkServlet.doPost
    1. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:979)
    2. org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:869)
    2 frames
  3. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    1 frame
  4. Spring MVC
    FrameworkServlet.service
    1. org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:843)
    1 frame
  5. Spring TestContext
    TestDispatcherServlet.service
    1. org.springframework.test.web.servlet.TestDispatcherServlet.service(TestDispatcherServlet.java:65)
    1 frame
  6. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
    1 frame
  7. Spring TestContext
    MockMvc.perform
    1. org.springframework.mock.web.MockFilterChain$ServletFilterProxy.doFilter(MockFilterChain.java:167)
    2. org.springframework.mock.web.MockFilterChain.doFilter(MockFilterChain.java:134)
    3. org.springframework.test.web.servlet.MockMvc.perform(MockMvc.java:155)
    3 frames