• 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
Problems updating a row
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems updating a row


  • Subject: Problems updating a row
  • From: "Alberto de Arriba" <email@hidden>
  • Date: Fri, 11 Jun 2004 15:00:42 +0200

Hi all, I've been reading you for some months and this is my first post.

I have a problem in a form with a WOFileUpload component. When the form is
submitted it throws the following exception:

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


In the action method I have this code:

if (uploadedData != null && uploadedData.length()>0)
      data.takeStoredValueForKey(uploadedData,"photograph");
session().defaultEditingContext().saveChanges();


uploadedData is an instance variable of type NSData used to hold the file
contents. If i comment out the first two lines it does perform the
saveChanges correctly, so I think it must have something to do with NSData
handling.

Any suggestion?


Thanks in advance.
Alberto.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: RE: Catching an exception thrown by invalid IP address
  • Next by Date: RE: Problems updating a row
  • Previous by thread: Re: Catching an exception thrown by invalid IP address
  • Next by thread: RE: Problems updating a row
  • Index(es):
    • Date
    • Thread