Hi all,
I have a Cocoon task that takes a lot of time which splits an
OpenDocument file and has to
add new entries to the Lenya Sitetree for the splitted file. Therefore
I have put this action inside a different Thread so the user can
continue browsing:
act(..) {
Thread approveThread = new Thread(this);
approveThread.start();
return null;
}
However, when a user requests some Lenya page during this background
processing (with sitetree.save() operations), the sitetree.xml is
sometimes in an inconsistent state (see end).
I guess this is when the save() operation is writing its output and a
user requests the page.
Is there some way of preventing Cocoon to read the sitetree.xml while
it is being written to ?
Or any other suggestions for performing a task in the background ?
thx,
Dominique De Munck
"
org.apache.cocoon.ProcessingException: Error executing pipeline.:
org.apache.cocoon.ProcessingException: Error executing pipeline.:
org.xml.sax.SAXParseException: XML document structures must start and
end within the same entity.
column: 4
line: 858
cause: org.xml.sax.SAXParseException: XML document structures must
start and end within the same entity.
location:
file:/home/devel/web_software/web_software/tomcat-5.0.28/webapps/lenya/lenya/pubs/ParlementaireActiviteiten/content/authoring/sitetree.xml
"
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]