[OGo-Developer] "(no database messages found)" when doing a job action
Adam Williams
developer@opengroupware.org
Mon, 09 Oct 2006 20:51:44 -0400
I'm confused by the error message "(no database messages found)" from
LSDBObjectCommandException. I am attempting to perform an action on a
task, and I get the "<jobhistory::new> TODO: register in objinfo:
JobHistory / 13660" message in the logs like the history has been
stored. But then an exception occurs in LSDBObjectCommandException and
nothing is stored in the job history tables. The process seems pretty
straight forward, and it certainly looks like "task" is a valid
EOGenericRecord of a task.
Code
--------------------------------------
[self logWithFormat:@"----_doTaskAction:(...)-------<start>----"];
task = [[self _getUnrenderedTasksForKeys:_pk] lastObject];
[self logWithFormat:@"job = %@", task];
if (_comment != nil)
/* With Comment */
result = [[self getCTX] runCommand:@"job::jobaction",
@"object", task,
@"action", _action,
@"comment", _comment,
nil];
else
/* No Comment */
result = [[self getCTX] runCommand:@"job::jobaction",
@"object", task,
@"action", _action,
nil];
Log
--------------------------------------
Oct 10 00:42:51 ogo-zidestore-1.5 [6799]: >zOGITaskAction>
----_doTaskAction:(...)-------<start>----
Oct 10 00:42:51 ogo-zidestore-1.5 [6799]: >zOGITaskAction> job =
<EOGenericRecord: description Job attributes={ accountingInfo = "";
actualWork = 0;
associatedCompanies = "";
associatedContacts = "";
category = "";
\nc comment for the task";
completionDate = "";
creatorId = 10120;
dbStatus = inserted;
endDate = "2006-10-11 17:59:59 -0400";
executantId = 10003;
isControlJob = "";
isTeamJob = 1;
jobId = 13530;
jobStatus = "00_created";
keywords = "task 2006-10-03";
kilometers = "";
kind = "";
lastModified = "";
name = "New Task 2006-10-03";
notify = 0;
objectVersion = "";
parentJobId = "";
percentComplete = 0;
priority = 2;
projectId = "";
sensitivity = 1;
sourceUrl = "";
startDate = "2006-10-03 18:00:00 -0400";
timerDate = "";
totalWork = 0;
}>
Oct 10 00:42:51 ogo-zidestore-1.5 [6799]: Note: PostgreSQL72 adaptor
using timezone 'GMT' as default
Oct 10 00:42:51 ogo-zidestore-1.5 [6799]: <jobhistory::new> TODO:
register in objinfo: JobHistory / 13660
Oct 10 00:42:51 ogo-zidestore-1.5 [6799]: [obj-xmlrpc-dispatch]
-[SoObjectXmlRpcDispatcher faultFromException:methodCall:]: turning
exception into fault (Exception name:LSDBObjectCommandException
class:LSDBObjectCommandException reason:job::set failed: unknown reason
(no database messages found) info:{
methodName = "zogi.putTaskNotation";
methodParameters = (
13530,
accept,
""
);
})