I am trying to make work a very simple WebObjects app. I have a minimalist EOModel with only one entity for testing purposes.
When I try to insert or update an existing object with editingContext.saveChanges() the connection
to the db is ok, but when executing the query, it throws an exception with the following stack:
A fatal exception occurred: EvaluateExpression failed: <com.webobjects.jdbcadaptor.JDBCExpression: "UPDATE pages SET description = ?, options = ? WHERE id = ?" withBindings: 1:"test"(description), 2:"test options"(options), 3:7103(id)>:
Next exception:SQL State:null -- error code: 0 -- msg: no ResultSet available
[2009-01-17 14:59:04 CET] <main> com.webobjects.eoaccess.EOGeneralAdaptorException: EvaluateExpression failed: <com.webobjects.jdbcadaptor.JDBCExpression: "UPDATE pages SET description = ?, options = ? WHERE id = ?" withBindings: 1:"test"(description), 2:"test options"(options), 3:7103(id)>:
Next exception:SQL State:null -- error code: 0 -- msg: no ResultSet available
at com.webobjects.eoaccess.EODatabaseContext._exceptionWithDatabaseContextInformationAdded(EODatabaseContext.java:4685)
at com.webobjects.eoaccess.EODatabaseContext.performChanges(EODatabaseContext.java:6393)
at com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditingContext(EOObjectStoreCoordinator.java:415)
at com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3226)
Does anybody have a clue what am I doing wrong here ?
Many thanks
Josef