You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Christian Pfaff <ch...@she.net> on 2004/09/01 11:00:09 UTC

Error Deleting Files

Hi

When I try to create a new page in Lenya, I get the following error after
"New Document"-page:


org.apache.cocoon.sitemap.PatternException: Cannot get variable
'{page-envelope:area' in expression
'{document-url:{page-envelope:area}:{request-param:properties.create.parent-
id}/{request-param:properties.create.child-id}:{request-param:properties.cre
ate.language}}'



Well, pages, that i have created like this (with an error) though exist in
the navigation.
They can be submitted and published, but not deleted.
The attempt to delete such a page creats this error message.



org.apache.lenya.cms.task.ExecutionException:
C:\Programme\Lenya\build\lenya\webapp\lenya\pubs\she\config\tasks\targets.xm
l:334: org.apache.lenya.workflow.WorkflowException: The old history file
could not be deleted!



After that, the page is still alive, but can't be edited by the known
editors, nor submitted, nor published.

I have no clue, where I could start dealing with this, any ideas?


Lenya version is a last week's cvs snapshot running on the default jetty
deploy.


Greetings Chris


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


AW: AW: Error Deleting Files

Posted by Christian Pfaff <ch...@she.net>.
>
> > yes, i ve thought about this before, and it is some kind of
> > work-around for getting rid of the inconsistent state. It works
> > fine, but it's only a cure for the symptoms, not for the basic
> > problem. That seems to be an error in the workflow configuration
> > in the sitemap...
>
> Is the problem repeatable for all the documents or only a single
> document?  It could be that a transformer is failing on only one
> document causing the inconsistent state.  So the problem may not be
> with the workflow but the document content or the transformer.
>

It is repeatable for all documents.
One remarkable point is, that the sitemap.xml is resetted with the old
values, altough I have deleted  or edited all of the files in the previously
mentioned folders. so, there must be more.


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


Error Deleting Files

Posted by Christian Pfaff <ch...@she.net>.
Hi

I was able to isolate the error in usecase.xmap, line 241

<map:redirect-to
uri="{document-url:{page-envelope:area}:{request-param:properties.create.par
ent-id}/{request-param:properties.create.child-id}:{request-param:properties
.create.language}}"/>


well, that does not help me much, but maybe anybody else?

Chris

>
>
> On Wed, 1 Sep 2004, Christian Pfaff wrote:
>
> > yes, i ve thought about this before, and it is some kind of
> > work-around for getting rid of the inconsistent state. It works
> > fine, but it's only a cure for the symptoms, not for the basic
> > problem. That seems to be an error in the workflow configuration
> > in the sitemap...
>
> Is the problem repeatable for all the documents or only a single
> document?  It could be that a transformer is failing on only one
> document causing the inconsistent state.  So the problem may not be
> with the workflow but the document content or the transformer.
>
> --
> JP
>
>
>
> ---------------------------------------------------------------------
> 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: AW: Error Deleting Files

Posted by Jean Pierre LeJacq <jp...@quoininc.com>.
On Wed, 1 Sep 2004, Christian Pfaff wrote:

> yes, i ve thought about this before, and it is some kind of
> work-around for getting rid of the inconsistent state. It works
> fine, but it's only a cure for the symptoms, not for the basic
> problem. That seems to be an error in the workflow configuration
> in the sitemap...

Is the problem repeatable for all the documents or only a single
document?  It could be that a transformer is failing on only one
document causing the inconsistent state.  So the problem may not be
with the workflow but the document content or the transformer.

-- 
JP



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


AW: Error Deleting Files

Posted by Christian Pfaff <ch...@she.net>.
>
> I ran across a similar problem which turned out to have been caused
> by Lenya not completing an operation completely.  Lenya is not
> transaction safe so it is possible to get into inconsistent states
> if Lenya fails halfway through an operation.
>
> My guess is that one of the workflow state files is missing or
> inconsistent.  For the document in question, check these files:
>
> * sitetree.xml in authoring and live.
> * content/workflow/history/authoring/...
> * content/rcml/content/authoring/...




yes, i ve thought about this before, and it is some kind of work-around for
getting rid of the inconsistent state. It works fine, but it's only a cure
for the symptoms, not for the basic problem.
That seems to be an error in the workflow configuration in the sitemap...





>
> You should be able to bring the document back to a consistent state
> by editing these files.
>
> --
> JP
>
>


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


Re: Error Deleting Files

Posted by Jean Pierre LeJacq <jp...@quoininc.com>.
On Wed, 1 Sep 2004, Christian Pfaff wrote:

> When I try to create a new page in Lenya, I get the following error after
> "New Document"-page:
>
>
> org.apache.cocoon.sitemap.PatternException: Cannot get variable
> '{page-envelope:area' in expression
> '{document-url:{page-envelope:area}:{request-param:properties.create.parent-
> id}/{request-param:properties.create.child-id}:{request-param:properties.cre
> ate.language}}'
>
>
>
> Well, pages, that i have created like this (with an error) though exist in
> the navigation.
> They can be submitted and published, but not deleted.
> The attempt to delete such a page creats this error message.
>
>
>
> org.apache.lenya.cms.task.ExecutionException:
> C:\Programme\Lenya\build\lenya\webapp\lenya\pubs\she\config\tasks\targets.xm
> l:334: org.apache.lenya.workflow.WorkflowException: The old history file
> could not be deleted!
>
>
>
> After that, the page is still alive, but can't be edited by the known
> editors, nor submitted, nor published.

I ran across a similar problem which turned out to have been caused
by Lenya not completing an operation completely.  Lenya is not
transaction safe so it is possible to get into inconsistent states
if Lenya fails halfway through an operation.

My guess is that one of the workflow state files is missing or
inconsistent.  For the document in question, check these files:

* sitetree.xml in authoring and live.
* content/workflow/history/authoring/...
* content/rcml/content/authoring/...

You should be able to bring the document back to a consistent state
by editing these files.

-- 
JP



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