AnsweredAssumed Answered

FileFolderService InvalidTypeException when logging=DEBUG

Question asked by finner on Aug 30, 2007
Latest reply on Sep 6, 2007 by finner
Hi,
Alfresco doesn't deploy on JBoss when logging is at DEBUG level.
I've debugged this and there is an InvalidTypeException thrown from FileFolderService. The code below is where it fails:




public FileInfo create(NodeRef parentNodeRef, String name, QName typeQName) throws FileExistsException
. . .
        if (logger.isDebugEnabled())
        {
            FileInfo parentFileInfo = toFileInfo(parentNodeRef, false);
            logger.debug("Created: \n" +
                    "   parent: " + parentFileInfo + "\n" +
                    "   created: " + fileInfo);
        }
. . .
Because DEBUG is on logging it executes this piece of code.
toFileInfo() fails and throws the Exception because the parentNodeRef (workspace://SpacesStore/646683dd-56ed-11dc-9c86-8b044c255c9e) is a type {http://www.alfresco.org/model/content/1.0}systemfolder.

Has anyone seen this before ?

Thanks
Finner

Outcomes