Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate Stale State Exception

sankey jain
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

I am encountering an hibernate stale state exception using the following piece of codes

Step 1. List of Emails are got from the View Layer, and are assigned to a hasmap

Now every email has an id associated with it, this is assigned to the session and the story continues

there is a send button which is clicked if the user wants to send out all the emails, the below happens when that is done

Step 2:

Step 3:

Now, Flow continues, and there is a new player, selectedEmailsToSend, which is list, and contains the emails which were chosen by the user ( User does this by using a check box )

Step 4

What we have now is a list of emails to be sent, now we call the function which formats the emails and send them

after each email is sent i do the below, this is where i get the Stale State exception, please help

Above code is where i get the stale state exception, i am really not able to find out the reason, assistance of fellow ranchers required
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!