Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8847727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:15:32+00:00 2026-06-14T12:15:32+00:00

On our web site we have two operations which work against the same table,

  • 0

On our web site we have two operations which work against the same table, one does a read of multiple rows and the other deletes a row.

We’re using Spring 3.1 and Hibernate 3.6.

The exact operations are

EntityManager.createQuery().getResultList();

and

EntityManager.remove();

We are getting the StaleObjectStateException on the remove() thread, not on the getResultList() thread. The question is, why would a read cause a StaleObjectException?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T12:15:34+00:00Added an answer on June 14, 2026 at 12:15 pm

    The underlying cause of this problem turned out to be completely unrelated to Hibernate or Spring, it was an HTML/Javascript problem that was causing two separate HTTP requests to be sent every time the link in question was clicked. (Both requests were edits, so that was the source of the conflict.)

    Just putting this answer out here so that people will know that Spring and Hibernate DO work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have clients that use our web site (asp.net) that they have to be
We have with success been updating our development web site at a daily basis
I have a asp.net web site for our company and handles about 1000 -
I have an ASP.NET web site that responds with multiple skins depending on the
I have two *.sql files that I use when creating a new web site
We have two subdomains for the same site, we would like that depending on
We have the +1 Button on our website which is available in different languages.
we have a small flash component on our website/application to upload multiple files. This
We're seeing an odd pattern in our QA Lab. We have two ASP.NET applications,
We (our IT partner really) recently changed some DNS for a web farmed site

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.