AnsweredAssumed Answered

Behaviour

Question asked by toze on Oct 23, 2012
Latest reply on Sep 18, 2017 by afaust
Hi!

I have a behavior that its defined like this:

this.onUpdateProperties = new JavaBehaviour(this, "onUpdateProperties",   NotificationFrequency.TRANSACTION_COMMIT);
this.policyComponent.bindClassBehaviour(QName.createQName(nameSpace.ALFRESCO_URI, "onUpdateProperties"),
            ContentModel.PROP_NAME,   this.onUpdateProperties);

but it gives this error when starting server:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'DocumentoBehavior' defined in class path resource [alfresco/module/sample/context/sample-service-context.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Class {http://www.alfresco.org/model/content/1.0}name has not been defined in the data dictionary

Can anyone help me with this?

Thanks

Outcomes