• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Update error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Update error


  • Subject: Update error
  • From: Tarun Reddy <email@hidden>
  • Date: Sun, 15 Jul 2007 16:39:19 -0600

I have code where I updated a value based upon user input. The first time I update the value, it correctly updates, however if I attempt to update it again through a second web form submit, I get the following error:

Application:   WOIdeas
Error: com.webobjects.eoaccess.EOGeneralAdaptorException: updateValuesInRowDescribedByQualifier -- com.webobjects.jdbcadaptor.JDBCChannel method failed to update row in database
Reason: updateValuesInRowDescribedByQualifier -- com.webobjects.jdbcadaptor.JDBCChannel method failed to update row in database
Stack trace: 
File Line# Method Package



Here is my basic code:
EOEditingContext ec = session.defaultEditingContext();
....
IdeaRating ir = findIdeaRating(session.getUser(), topIdea);
 else {
//update ideaRating
int myRatingInt = new Integer(myRating).intValue();
topIdea.updateRatingToAverage(ir.rating().intValue(), myRatingInt);
ir.setRating(myRatingInt);
ec.saveChanges();
}


Any ideas?

Thanks!
Tarun
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Update error
      • From: Ken Anderson <email@hidden>
  • Prev by Date: Re: An AJP Adaptor for WOAs
  • Next by Date: Re: Update error
  • Previous by thread: Re: Rapid turnaround?
  • Next by thread: Re: Update error
  • Index(es):
    • Date
    • Thread