sorry, I found the mistake:
Tasks newtask = (Tasks)theDataContext.registeredObject(new
ObjectId("Tasks", "id" ,tasksID.intValue()));
the DB-attribute "id" was wrong correct is "ID", now it works fine
This archive was generated by hypermail 2.0.0 : Thu Dec 05 2002 - 16:36:13 EST