Questions tagged [stalestateexception]
11 questions
6
votes
5 answers
org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
Sometimes when persisting an obj, one of its field is too large to fit into the db field, resulting in a data truncation exception. In the following code, I attempt to catch the DataException and simply empty out the field, and the resave. However I…

user121196
- 30,032
- 57
- 148
- 198
2
votes
0 answers
Hibernate Stale State Exception while deleting from DB
I am using Hazelcast with Mysql and ofc hibernate for connectivity. I have a multithreaded application, which is processing data and then tries to remove from both hazelcast and db.
But after some time, I am getting…

denizdurmus
- 1,289
- 1
- 13
- 39
2
votes
1 answer
Mix raw queries and ORM operations within the same cftransaction
Is it safe to mix raw queries using cfquery and ORM operations within the same cftransaction tag?
...
…

plalx
- 42,889
- 6
- 74
- 90
1
vote
1 answer
StateStateException in SpringBoot 2.7.0 SpringBootTest
I am trying to upgrade Spring Boot server from 2.6.8 to 2.7.0 and when running tests I'm getting the following exception that didn't appear on 2.6.8:
org.springframework.orm.ObjectOptimisticLockingFailureException: Batch update returned unexpected…

user_4685247
- 2,878
- 2
- 17
- 43
1
vote
1 answer
Wicket 9: stale page exception no longer handled by recreating the page
After upgrading from Wicket 1.5 to Wicket 9, our users now may sometimes cause a Stale Page Exception by:
Duplicating a tab
Clicking a link, submitting a form, etc., in the second tab
Returning to the first tab
Trying to click a link, submit a…

sushilab
- 21
- 6
1
vote
2 answers
Hibernate session not refreshing data from DB after initial commit failure
I am working on a multithreaded Java application that uses Hibernate. We are getting a org.hibernate.StaleObjectStateException because we have optimistic locking in place and a certain entity (let's call it Pojo) is updated from many application…

amphibient
- 29,770
- 54
- 146
- 240
1
vote
0 answers
Tests run fine one by one but fail a lot when run in parallel
I have the following problem:
I've created a bunch of test using WebDriver + Java + TestNG + Maven which work just fine when I run them one by one- when the thread-count is 1 in my testng.xml file but when I increase the number of threads the tests…

Murzilka
- 11
- 1
0
votes
0 answers
Stale element exception under shadow dom
I'm facing a problem with a stale element under the shadow DOM, scenario below:
hover to the video and the dock is shown and vice versa
HTML Dom changes from not hovering to hovering and vice versa:
The below html is for not hovering.

Chuoi
- 5
- 5
0
votes
0 answers
getting StaleStateException while updating same DB from two tomcat instances(rows to be updated are different)
Getting following exception while trying to update two different rows of a table using hibernate from two different instances of tomcat.All sources obtained suggest a concurrent update problem,but here two different rows are being updated still…

shadow3
- 107
- 1
- 5
0
votes
1 answer
Selenium StaleElementReferenceException while using EventFiringWebDriver
Dear all I am using Selenium EventFiringWebDriver to record the called web driver methods. I recognised that I often get a "StaleReferenceException" while when I just use the HtmlUnitDriver alone I don't have the issue.
I also recognised that the…

megloff
- 1,400
- 4
- 27
- 44
0
votes
1 answer
Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1 on updating of an entity via hibernate
When trying to update an entity from the controller, I keep getting this exception. Rest assured, thorough research regarding this exception has been made, but none of the suggestions have worked in my case.
I am trying to update the doctor entity…

Alexa
- 71
- 3
- 5