cancel
Showing results for 
Search instead for 
Did you mean: 

FileFolderService InvalidTypeException when logging=DEBUG

finner
Champ in-the-making
Champ in-the-making
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
3 REPLIES 3

derek
Star Contributor
Star Contributor
Hi,
Yes and it's been fixed in the Enterprise code line.  It'll be merged to HEAD shortly.
Regards

derek
Star Contributor
Star Contributor
        if (logger.isDebugEnabled())
        {
            logger.debug("Created: \n" +
                    "   parent: " + parentNodeRef + "\n" +
                    "   created: " + fileInfo);
        }

finner
Champ in-the-making
Champ in-the-making
Hi Derek,
Thanks for the info !!
Finner