From: Wolfgang M. <wol...@ex...> - 2012-07-18 18:18:26
|
Hi Casey, the NullPointerException in your logs occur after the corresponding documents have been locked. It thus seems the locking did fail or miss some nodes for unknown reasons and the update tried to operate on a node which was deleted. To avoid such issues, it might help to explicitely put a lock on the documents before you start the actual modifications. There's a (pseudo-) function: util:exclusive-lock($nodes as node()*, $expression as item()*) item()*. It takes a sequence of nodes from documents to be locked and acquires an exclusive lock before it executes the code block given in $expression. Wolfgang |