What is error during sync listener execution?

Every time i create a new Workspace and then a File or Folder, nuxeo doesnt show me the containers for Name and Description, by reading my server.log i found that everytime i try to create a container inside another container for the first time this ERROR appears Error during sync listener execution, and i give it a second try then the error goes away, so my question is, what is this all about? i have nuxeo dm and MySql

0 votes

1 answers

3334 views

ANSWER

Can you give us your listener code/purpose and the ERROR from your logs.
11/09/2011

This is the content of my server.log at the moment i try to create a new folder as i mentioned before

> 2011-11-08 16:20:14,853 ERROR [org.nuxeo.ecm.core.event.impl.EventServiceImpl] Error during sync listener execution org.nuxeo.ecm.core.api.model.PropertyNotFoundException: Property not found: webc:url. Document '/default-domain/workspaces/Error in Workspace' with title 'Error in Workspace' and type 'Workspace' does not have any schema with prefix 'webc'

at org.nuxeo.ecm.core.api.impl.DocumentModelImpl.getProperty(DocumentModelImpl.java:1491)
at org.nuxeo.ecm.core.api.impl.DocumentModelImpl.setPropertyValue(DocumentModelImpl.java:1509)
at org.nuxeo.webengine.sites.listeners.SiteActionListener.handleEvent(SiteActionListener.java:75)

at $Proxy25.createDocument(Unknown Source)
at org.nuxeo.ecm.webapp.contentbrowser.DocumentActionsBean.saveDocument(DocumentActionsBean.java:446)

2011-11-08 16:20:14,963 WARN [org.nuxeo.ecm.platform.el.DocumentModelResolver] Property not found: webc:isWebContainer. Document 'c21b0d55-4c70-4212-90ec-915f5f24a02a' with title 'Error in Workspace' and type 'Workspace' does not have any schema with prefix 'webc'

11/09/2011



If you used Studio, in fact you have to add these following schema (into the first tab, below) into your Workspace Type Definition:

  • publishing
  • webc

We identified this problem, we miss to add these schema by default when you extends the Workspace Type.

But if you create your Document by yourself, If you look the ERROR you see:

Document '/default-domain/workspaces/Error found in workspace' 
with title 'Error found in workspace' and type 'Workspace' 
does not have any schema with prefix 'webc'

That's mean the type Workspace doesn't implement the webcontainer.xsd schema. But this type by default in Nuxeo DM implements this schema:

    <doctype name="Workspace" extends="Folder">
        <!-- for logo -->
        <schema name="file"/>
        <schema name="webcontainer"/>
        <schema name="publishing"/>
        <!-- the content of webcontainer -->
        ...

So add it to your document type.

Hope this is the solution :D Did you override this type without the web container schema?

1 votes



My guess is the overriding was done by import the default DM config template in Studio
11/09/2011

It was the overriding in Studio, like Thierry mentioned, but the New Folder keeps showing me "blank" spaces, i mean whitout the Name and Description containers, the error goes away, but the containers are not displayed, so what could it be?
11/09/2011