AnsweredAssumed Answered

ContentWriter InvalidTypeException

Question asked by melw on Dec 5, 2005
Latest reply on Dec 5, 2005 by melw
Hi

I think I am missing a basic point here, could anyone help ?

Within the example model, I have created an aspect with a property of type d:content. When I attempt to get a ContentWriter on a node with the aspect and property, the process throws an InvalidTypeException.

As I understand it, the ContentService.getWriter() calls ContentReader.getReader() to validate the type. A PropertyDefinition is obtained from the dictionaryService using the type of the node. In this case the Alfresco model was returned, which does not contain the aspect and property - so it fails.

Thanks and kind regards
Mel.

Outcomes