1 Reply Latest reply on Apr 27, 2007 1:09 PM by joel

    Freemarker exception listing "what's new"

      I'm getting an exception during the display of "what's new":

       

      Method public com.jivesoftware.community.Document com.jivesoftware.community.proxy.DocumentManagerProxy.getDocument(long) throws com.jivesoftware.community.DocumentObjectNotFoundException,com.jivesoftware.base.UnauthorizedException threw an exception when invoked on com.jivesoftware.community.proxy.DocumentManagerProxy@1b923e7

      The problematic instruction:


      ==> assignment: document=jiveContext.getDocumentManager().getDocument(object.ID?long) on line 122, column 33 in whatsnew:/template/clearspace/main.ftl


       

      Java backtrace for programmers:


      freemarker.template.TemplateModelException: Method public com.jivesoftware.community.Document com.jivesoftware.community.proxy.DocumentManagerProxy.getDocument(long) throws com.jivesoftware.community.DocumentObjectNotFoundException,com.jivesoftware.base.UnauthorizedException threw an exception when invoked on com.jivesoftware.community.proxy.DocumentManagerProxy@1b923e7

      .

      .

      .

       

      The line reference in main.ftl is:

      <#assign document = jiveContext.getDocumentManager().getDocument(object.ID?long)>

       

      ---

      Because this looks like a permission problem, if someone creates a draft or protected document, does it (should it) show up in "what's new"?

       

      Doug