You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Gustavo Nalle Fernandes <gu...@terra.com.br> on 2004/11/02 22:11:14 UTC

Error deleting document

  I have created a new document, published and the deactivated it. The I
tried to delete the document and the following error appeared:
  Info:
  Lenya 1.2.x executed via lenya.bat (Jetty)
  Windows 2000
  Java 1.4.2_01

  Any clues ?
  

------
 
C:\lenyaBuild\src\lenya_1.2.x\build\lenya\webapp\lenya\pubs\default\conf
ig\tasks\targets.xml:563: org.apache.lenya.workflow.WorkflowException:
The old history file could not be deleted!
------------
StackTrace:
-------------------
org.apache.lenya.cms.task.ExecutionException:
C:\lenyaBuild\src\lenya_1.2.x\build\lenya\webapp\lenya\pubs\default\conf
ig\tasks\targets.xml:563: org.apache.lenya.workflow.WorkflowException:
The old history file could not be deleted!
	at
org.apache.lenya.cms.task.AntTask.executeAntTarget(AntTask.java:129)
	at org.apache.lenya.cms.task.AntTask.execute(AntTask.java:229)
	at
org.apache.lenya.cms.task.DefaultTaskWrapper.execute(DefaultTaskWrapper.
java:248)
	at
org.apache.lenya.cms.cocoon.acting.TaskAction.act(TaskAction.java:62)
	at
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(Ac
tTypeNode.java:124)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invokeNodes(AbstractParentProcessingNode.java:49)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.i
nvoke(PreparableMatchNode.java:130)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invokeNodes(AbstractParentProcessingNode.java:49)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.i
nvoke(PreparableMatchNode.java:130)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invokeNodes(AbstractParentProcessingNode.java:49)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.i
nvoke(PreparableMatchNode.java:130)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invokeNodes(AbstractParentProcessingNode.java:72)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(P
ipelineNode.java:126)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invokeNodes(AbstractParentProcessingNode.java:72)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(
PipelinesNode.java:101)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro
cessor.java:336)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro
cessor.java:277)
	at
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(Moun
tNode.java:103)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invokeNodes(AbstractParentProcessingNode.java:49)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.i
nvoke(PreparableMatchNode.java:130)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invokeNodes(AbstractParentProcessingNode.java:72)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(P
ipelineNode.java:126)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invokeNodes(AbstractParentProcessingNode.java:72)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(
PipelinesNode.java:101)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro
cessor.java:336)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro
cessor.java:277)
	at
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(Moun
tNode.java:103)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invokeNodes(AbstractParentProcessingNode.java:49)
	at
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(Ac
tTypeNode.java:138)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invokeNodes(AbstractParentProcessingNode.java:49)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.i
nvoke(PreparableMatchNode.java:130)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invokeNodes(AbstractParentProcessingNode.java:72)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(P
ipelineNode.java:126)
	at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invokeNodes(AbstractParentProcessingNode.java:72)
	at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(
PipelinesNode.java:101)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro
cessor.java:336)
	at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro
cessor.java:277)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:639)
	at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1098)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
	at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationH
andler.java:294)
	at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
	at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
	at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationCon
text.java:525)
	at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
	at org.mortbay.http.HttpServer.service(HttpServer.java:879)
	at
org.mortbay.http.HttpConnection.service(HttpConnection.java:790)
	at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:961)
	at
org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)
	at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218
)
	at
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:300)
	at
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)
Caused by:
C:\lenyaBuild\src\lenya_1.2.x\build\lenya\webapp\lenya\pubs\default\conf
ig\tasks\targets.xml:563: org.apache.lenya.workflow.WorkflowException:
The old history file could not be deleted!
	at
org.apache.lenya.cms.ant.DocumentOperationTask.execute(DocumentOperation
Task.java:94)
	at
org.apache.lenya.cms.ant.TwoDocumentsOperationTask.execute(TwoDocumentsO
perationTask.java:71)
	at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
	at org.apache.tools.ant.Task.perform(Task.java:364)
	at org.apache.tools.ant.Target.execute(Target.java:341)
	at org.apache.tools.ant.Target.performTasks(Target.java:369)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
	at
org.apache.lenya.cms.task.AntTask.executeAntTarget(AntTask.java:126)
	... 52 more
Caused by: org.apache.lenya.workflow.WorkflowException: The old history
file could not be deleted!
	at
org.apache.lenya.cms.ant.MoveWorkflowTask.visitSiteTreeNode(MoveWorkflow
Task.java:86)
	at
org.apache.lenya.cms.publication.SiteTreeNodeImpl.accept(SiteTreeNodeImp
l.java:335)
	at
org.apache.lenya.cms.publication.SiteTreeNodeImpl.acceptSubtree(SiteTree
NodeImpl.java:343)
	at
org.apache.lenya.cms.ant.DocumentOperationTask.execute(DocumentOperation
Task.java:92)
	... 59 more
Caused by: org.apache.lenya.workflow.WorkflowException: The old history
file could not be deleted!
	at org.apache.lenya.workflow.impl.History.move(History.java:393)
	at
org.apache.lenya.cms.workflow.CMSHistory.move(CMSHistory.java:189)
	at
org.apache.lenya.cms.workflow.WorkflowFactory.moveHistory(WorkflowFactor
y.java:95)
	at
org.apache.lenya.cms.ant.MoveWorkflowTask.visitSiteTreeNode(MoveWorkflow
Task.java:82)
	... 62 more


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


RES: Error deleting document

Posted by Gustavo Nalle Fernandes <gu...@terra.com.br>.
 I found no handle in any file other than *.jar, *.log and xconf!

 Gustavo

-----Mensagem original-----
De: Gregor J. Rothfuss [mailto:gregor@apache.org] 
Enviada em: terça-feira, 2 de novembro de 2004 19:17
Para: Lenya Users List
Assunto: Re: Error deleting document


Gustavo Nalle Fernandes wrote:
>   I have created a new document, published and the deactivated it. The

> I tried to delete the document and the following error appeared:
>   Info:
>   Lenya 1.2.x executed via lenya.bat (Jetty)
>   Windows 2000
>   Java 1.4.2_01
>  
> C:\lenyaBuild\src\lenya_1.2.x\build\lenya\webapp\lenya\pubs\default\co
> nf
> ig\tasks\targets.xml:563: org.apache.lenya.workflow.WorkflowException:
> The old history file could not be deleted!

i think this is the old windows file locking issue we used to see. for 
some reason, there is a problem on windows with files that are being
locked.

can you check with handle if lenya keeps a handle open to one of the 
workflow files?

http://sysinternals.com/ntw2k/freeware/handle.shtml

-- 
Gregor J. Rothfuss
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://wyona.com                          http://lenya.apache.org
gregor.rothfuss@wyona.com                       gregor@apache.org

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



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


Re: Error deleting document

Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Gustavo Nalle Fernandes wrote:
>   I have created a new document, published and the deactivated it. The I
> tried to delete the document and the following error appeared:
>   Info:
>   Lenya 1.2.x executed via lenya.bat (Jetty)
>   Windows 2000
>   Java 1.4.2_01
>  
> C:\lenyaBuild\src\lenya_1.2.x\build\lenya\webapp\lenya\pubs\default\conf
> ig\tasks\targets.xml:563: org.apache.lenya.workflow.WorkflowException:
> The old history file could not be deleted!

i think this is the old windows file locking issue we used to see. for 
some reason, there is a problem on windows with files that are being locked.

can you check with handle if lenya keeps a handle open to one of the 
workflow files?

http://sysinternals.com/ntw2k/freeware/handle.shtml

-- 
Gregor J. Rothfuss
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://wyona.com                          http://lenya.apache.org
gregor.rothfuss@wyona.com                       gregor@apache.org

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