Questions tagged [staleobjectstateexception]

8 questions
2
votes
0 answers

Hibernate StaleObjectStateException when reading

I am loading new orders into a row and for some reason occassionally I am getting a StaleObjectException when reading a row: Caused by: org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value…
DD.
  • 21,498
  • 52
  • 157
  • 246
1
vote
1 answer

StaleObjectStateException when retrying repository.save()

I was struggling with an issue for months. I have a requirement to duplicate a set of objects/file from my DB and save it as new instances.Say a student entity with lot of dependent entities.So many files are there in all dependent entities. So I…
1
vote
1 answer

Python Selenium StaleElement Exception

I am looking for a solution to the StaleElementReferenceException that arises when navigating back to a previous page with Selenium. Here is a sample code to reproduce the error: from selenium.webdriver import Chrome from selenium.common.exceptions…
0
votes
2 answers

Recover from Hibernate Optimistic Locking exception

I have been facing a strange problem lately. I tried to handle the the stale state exception gracefully . But in catch block it still throws the exception . Following is the code snippet public void saveObject(Object ob){ try{ …
0
votes
1 answer

Using LocalDateTime as @Version field with Hibernate 5.3 / JPA 2.2 on Java 11 leads to StaleObjectStateException

Consider an entity called Template with a field: @Version @Column(name = "LAST_UPDATE", nullable = false) private LocalDateTime lastUpdate; // Java 8's class The backing Oracle database field is TIMESTAMP. Now executing the following code: …
0
votes
1 answer

StaleElementReferenceError in ruby selenium

I was trying to automate rediff.com . I went from one page to other but when i came back i got staleException . I tried a lot but couldn't fix it. I am attaching the code snippet too. Any help would be appreciated. @driver.get…
user881928
0
votes
0 answers

Grails, AJAX - Row was updated or deleted by another transaction

I have got a very simple gsp-Page with a list of objects and the possibility to edit each of them by clicking on a row. Once clicked a row I fetch the corresponding data via an AJAX call an present the details in some textfields below the table. I…
gabriel
  • 347
  • 3
  • 18
-1
votes
1 answer

Stale element exception still persist in spite of 20 retries

I saw one os the posts before regarding stale element exception and used the retry code for handling it. But inspite of keeping the count at 20 , stale element exception still persists. I can see that the element2 is loaded in the webpage being…
aswathy
  • 821
  • 3
  • 15
  • 27