You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Laurent Perez <ha...@gmail.com> on 2005/06/30 14:30:09 UTC

Can't delete documents

Hello

I can't delete documents, while in the authoring view. The following
exception is thrown :

org.apache.lenya.cms.task.ExecutionException:
C:\svn\APACHE_LENYA\build\lenya\webapp\lenya\pubs\default\config\tasks\targets.xml:676:
org.apache.lenya.cms.publication.DocumentException:
javax.xml.transform.TransformerException:
java.io.FileNotFoundException:
C:\svn\APACHE_LENYA\build\lenya\webapp\lenya\pubs\default\content\authoring\features\index_en.xml
(L'opération demandée n'a pu s'accomplir sur un fichier ayant une
section mappée utilisateur ouverte)

The translated error means something like : "The operation did not
succeed on a file already having an opened mapped user section ", I
have no idea of what it means, I just logged in after the installation
and tried to delete documents from the default publication, nothing
else.

This happens on a vanilla install of both "stable" 1.2.4 and from the
trunk, which I believe is 1.4, but says "You have successfully built
Apache Lenya 1.2.4 (..)" once the build is done, don't understand why.

Thanks for any input

Laurent

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Can't delete documents

Posted by Christian Schubert <jo...@gmail.com>.
Hi folks,

we applied the patch to our Lenya (1.2.4) Version. Unfortunately its
not a solution for our problem. Our problem behaves a little
different. Every x-times we save a document the file is locked by a
process. The only way to solve this is to restart the Tomcat
App-Server. I also tried to use the 'build-in'- app-server jetty and
the problem disappears.

My Environment is Windows 2003 , Tomcat 5.5.9.

Kind Regards,
Chris



2005/12/28, Michael Ralston <mi...@ralston.id.au>:
> Patch attached to this email, also added it to bugzilla.
>
> http://issues.apache.org/bugzilla/show_bug.cgi?id=38060
>
> Michael
>
> On Thursday 22 December 2005 23:51, Michael Wechner wrote:
> > Michael Ralston wrote:
> > >I sent a patch to the list to fix this on the 11th of October. It was a
> > >DocumentParser not closing a file when it was finished with it, hence the
> > >file was locked and could not be deleted.
> >
> > right, now I remember. Did anyone actually apply that patch.
> > Could you resend your patch resp. attach it to Bugzilla?
> >
> > Michi
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Can't delete documents

Posted by Michael Ralston <mi...@ralston.id.au>.
Patch attached to this email, also added it to bugzilla.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38060

Michael

On Thursday 22 December 2005 23:51, Michael Wechner wrote:
> Michael Ralston wrote:
> >I sent a patch to the list to fix this on the 11th of October. It was a
> >DocumentParser not closing a file when it was finished with it, hence the
> >file was locked and could not be deleted.
>
> right, now I remember. Did anyone actually apply that patch.
> Could you resend your patch resp. attach it to Bugzilla?
>
> Michi
>

Re: Can't delete documents

Posted by Michael Wechner <mi...@wyona.com>.
Michael Ralston wrote:

>I sent a patch to the list to fix this on the 11th of October. It was a 
>DocumentParser not closing a file when it was finished with it, hence the 
>file was locked and could not be deleted.
>

right, now I remember. Did anyone actually apply that patch.
Could you resend your patch resp. attach it to Bugzilla?

Michi

> I would not be surprised if the 
>same bug occurs in many locations throughout lenya...
>
>Michael
>
>On Thursday 22 December 2005 20:21, Michael Wechner wrote:
>  
>
>>Rovi wrote:
>>    
>>
>>>I am facing the same issue in Win2K and Lenya 1.2.4 (Packaged version).
>>>First the file does not de-activate (fives out java class errors) and
>>>prompts for login; then the menu's for the document disappear. I am able
>>>to correct it on the server by deleting the nodes in the site XML and the
>>>corresponding folders and files, but this way-around is good only for a
>>>sandbox environment. Any updates on this will be much appreciated.
>>>Thanks!
>>>      
>>>
>>has anyone file a bug for this?
>>
>>Michi
>>
>>    
>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>>>For additional commands, e-mail: user-help@lenya.apache.org
>>>      
>>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>For additional commands, e-mail: user-help@lenya.apache.org
>
>
>  
>


-- 
Michael Wechner
Wyona      -   Open Source Content Management   -    Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
michael.wechner@wyona.com                        michi@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Can't delete documents

Posted by Michael Ralston <mi...@ralston.id.au>.
I sent a patch to the list to fix this on the 11th of October. It was a 
DocumentParser not closing a file when it was finished with it, hence the 
file was locked and could not be deleted. I would not be surprised if the 
same bug occurs in many locations throughout lenya...

Michael

On Thursday 22 December 2005 20:21, Michael Wechner wrote:
> Rovi wrote:
> >I am facing the same issue in Win2K and Lenya 1.2.4 (Packaged version).
> > First the file does not de-activate (fives out java class errors) and
> > prompts for login; then the menu's for the document disappear. I am able
> > to correct it on the server by deleting the nodes in the site XML and the
> > corresponding folders and files, but this way-around is good only for a
> > sandbox environment. Any updates on this will be much appreciated.
> > Thanks!
>
> has anyone file a bug for this?
>
> Michi
>
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> >For additional commands, e-mail: user-help@lenya.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Can't delete documents

Posted by Michael Wohlfart <mi...@zsw-bw.de>.
Hi Michi,

I had similar issues and filed a bug some time ago, to me it
sounds like the same problem:

http://issues.apache.org/bugzilla/show_bug.cgi?id=35586


Michael


Michael Wechner wrote:
> Rovi wrote:
> 
>> I am facing the same issue in Win2K and Lenya 1.2.4 (Packaged
>> version). First the file does not de-activate (fives out java class
>> errors) and prompts for login; then the menu's for the document
>> disappear. I am able to correct it on the server by deleting the nodes
>> in the site XML and the corresponding folders and files, but this
>> way-around is good only for a sandbox environment.
>> Any updates on this will be much appreciated. Thanks!
>>  
>>
> 
> has anyone file a bug for this?
> 
> Michi
> 
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>> For additional commands, e-mail: user-help@lenya.apache.org
>>
>>
>>  
>>
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Can't delete documents

Posted by Michael Wechner <mi...@wyona.com>.
Rovi wrote:

>I am facing the same issue in Win2K and Lenya 1.2.4 (Packaged version). First 
>the file does not de-activate (fives out java class errors) and prompts for 
>login; then the menu's for the document disappear. I am able to correct it on 
>the server by deleting the nodes in the site XML and the corresponding folders 
>and files, but this way-around is good only for a sandbox environment.
>Any updates on this will be much appreciated. Thanks!
>  
>

has anyone file a bug for this?

Michi

>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>For additional commands, e-mail: user-help@lenya.apache.org
>
>
>  
>


-- 
Michael Wechner
Wyona      -   Open Source Content Management   -    Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
michael.wechner@wyona.com                        michi@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Can't delete documents

Posted by Rovi <ro...@yahoo.com>.
I am facing the same issue in Win2K and Lenya 1.2.4 (Packaged version). First 
the file does not de-activate (fives out java class errors) and prompts for 
login; then the menu's for the document disappear. I am able to correct it on 
the server by deleting the nodes in the site XML and the corresponding folders 
and files, but this way-around is good only for a sandbox environment.
Any updates on this will be much appreciated. Thanks!



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Can't delete documents

Posted by sito <vr...@uib.es>.
any solution to this bug?

:(

Laurent Perez wrote:

>Hello
>
>I have the same problem as Michael, using JDK 1.4.2_04 on Win XP SP2.
>This is also a random error.
>
>I also tried to close every possible program accessing the document
>(browser tabs in firefox, whole browser firefox/ie, xml editors, even
>my antivirus software), it still does randomly crash. This is under
>the bundled Jetty, I do not have enough time yet to try this under
>Tomcat.
>This is quite embarrassing, because when this error happens, the
>document switches into some ghost state, i.e all its menus options are
>greyed, and I can't get rid of it anymore, not even by restarting the
>container.
>Unfortunately I don't have the luxury to use a linux box just to "fix"
>this error.
>
>Laurent
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>For additional commands, e-mail: user-help@lenya.apache.org
>
>
>  
>

-- 
---------------======ooOO000OOoo======---------------
Vicente Javier Rosselló Ferrer
E-mail: vrossello@uib.es
Tel: 971 17 2884
Centre de Tecnologies de la Informació a la UIB

Edifici Anselm Turmeda - CTI
Ctra. Valldemossa 7.5km
Universitat de les Illes Balears
============================================== 

Este mensaje, y toda la información adjunta, es confidencial y puede ser de uso restringido. 
Si Ud. no es uno de los destinatarios señalados, por favor informe al emisor, y borre y destruya el original y todas las copias del mensaje.  
No debe copiar, reenviar y / o revelar este mensaje , total o parcialmente, sin autorización del emisor.

This message, including attachments, is confidential and may be privileged. 
If you ar not an intended recipient, please notify the sender then delete and destroy the orginial message and all copies. 
You should not copy, forward and/or disclose this message, in whole or in part, without permission of the sender.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Can't delete documents

Posted by Laurent Perez <ha...@gmail.com>.
Hello

I have the same problem as Michael, using JDK 1.4.2_04 on Win XP SP2.
This is also a random error.

I also tried to close every possible program accessing the document
(browser tabs in firefox, whole browser firefox/ie, xml editors, even
my antivirus software), it still does randomly crash. This is under
the bundled Jetty, I do not have enough time yet to try this under
Tomcat.
This is quite embarrassing, because when this error happens, the
document switches into some ghost state, i.e all its menus options are
greyed, and I can't get rid of it anymore, not even by restarting the
container.
Unfortunately I don't have the luxury to use a linux box just to "fix"
this error.

Laurent

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Can't delete documents

Posted by Michael Wohlfart <mi...@zsw-bw.de>.
Gregor J. Rothfuss wrote:
> Laurent Perez wrote:
> 
>> javax.xml.transform.TransformerException:
>> java.io.FileNotFoundException:
>> C:\svn\APACHE_LENYA\build\lenya\webapp\lenya\pubs\default\content\authoring\features\index_en.xml 
>>
>> (L'opération demandée n'a pu s'accomplir sur un fichier ayant une
>> section mappée utilisateur ouverte)
> 
> 
> are you using jdk 1.5? if yes:
> 
> http://issues.apache.org/bugzilla/show_bug.cgi?id=33966

I have the same Problem using Leny 1.2.4, Windows XP and
JDK 1.4.2. This is not deterministic, in 1 out of 5 tries
I get the following error when I want to delete a file:

org.apache.lenya.cms.task.ExecutionException:
E:\lenya_workspace\lenya\build\lenya\webapp\lenya\pubs\default\config\tasks\targets.xml:676:
org.apache.lenya.cms.publication.DocumentException:
javax.xml.transform.TransformerException:
java.io.FileNotFoundException:
E:\lenya_workspace\lenya\build\lenya\webapp\lenya\pubs\default\content\authoring\testarea\b1\b2\b3\b4\index_de.xml
(Der Vorgang ist bei einer Datei mit einem geöffneten Bereich, der einem Benutzer zugeordnet ist, nicht anwendbar)

The windows error code is:
4C8 1224 USER_MAPPED_FILE: The requested operation cannot be performed on a file with a user-mapped section open

I think windows tries to tell us that another process is using the file
while I try to remove it (which isn't a problem on Linux but doesn't
work on windows as far as I know) There is no one else surfing in the
authoring and live area while I try to remove the file so it seems like
some kind of race condition to me but I have no clue where to look...


Michael



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Can't delete documents

Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Laurent Perez wrote:

> javax.xml.transform.TransformerException:
> java.io.FileNotFoundException:
> C:\svn\APACHE_LENYA\build\lenya\webapp\lenya\pubs\default\content\authoring\features\index_en.xml
> (L'opération demandée n'a pu s'accomplir sur un fichier ayant une
> section mappée utilisateur ouverte)

are you using jdk 1.5? if yes:

http://issues.apache.org/bugzilla/show_bug.cgi?id=33966

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org