Maybe a bug in CForms ?
Hope this will help
Cheers,
Marc
Marc Salvetti a �crit :
Hello,
I have a function in flowscript that do something like this :
var document = loadDocument(documentURI); form.load(document); form.showForm(displayPipeline); form.save(document); var invoicesDocURI = "xdocs/invoices/invoices_4.xml"; var invoicesDoc = loadDocument(invoicesDocURI); saveDocument(invoicesDoc, invoicesDocURI); saveDocument(document, documentURI); cocoon.sendPage(successPipeline);
The pb is that the second time the function is called after the server is started, the doc invoicesDoc is not saved, due to a flushing pb.
here is the error from the log
ERROR (2005-01-26) 15:47.41:206 [flow] (/cfm/cruise.continue) http-8080-Processor24/FOM_Cocoon.FOM_Log: Could not flush/close outputstream: java.io.IOException: Could not rename C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\cfm\cfm\xdocs\invoices\invoices_4.xml.tmp to C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\cfm\cfm\xdocs\invoices\invoices_4.xml
Somehow, by commenting/uncommenting the code until it works, i managed to understand that the call to form.load() is responsible, and that a call to form.save() allow you not to reboot completely to be able to save the file again !
If someone have an idea of a workaround ?
thanks,
Marc
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
