I am seeing this error, reported some time back, in Lenya 1.2.

The editDocument() routine in webapps\lenya\lenya\usecases\edit_document.js
is giving an Exception on trying to save modifications to a file a second
time around.

Note: I had to change the logging call to get a message in the logfile as
below;

          //cocoon.log.error("Can not edit document.", exception); 
        cocoon.log.error("Can not edit document: "  + exception.toString());

The error message I am seeing is as below:

ERROR flow.invoke0():?  - Can not edit document: JavaException:
java.io.IOException: Could not rename
C:\tomcat\webapps\lenya\lenya\pubs\tlp\content\authoring\index\index_en.xml.tmp
to
C:\tomcat\webapps\lenya\lenya\pubs\tlp\content\authoring\index\index_en.xml

This is being caused by the call below;

        SourceUtil.copy(resolver, cocoon.parameters["sourceUri"], dstUri,
_getParameter("useBuffer", "false") == "true");

which is to the static method in
org.apache.lenya.cms.cocoon.source.SourceUtil.

There is no actual index_en.xml.tmp file being left behind.

I'm wondering if anyone has any suggestions. 

Thanks

Steve Cameron




Rovi wrote:
> 
> This is a very random behavior. Sometime this has got corrected if I close
> and 
> open a new browser session. At times, I have to restart Lenya server. Is
> there 
> any way to correct this? Thanks!
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Changes-disappear-in-Kupu-on-Save-tp2141594p16717824.html
Sent from the Lenya - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to