Problems updating a row
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.