Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-7663

NodeRef is missing in log on "Problem converting to Freemarker" error

    Details

    • Bug Priority:
      Category 2

      Description

      We recently experienced the error below during SolR indexation but had no trace in the log mentionning the concerned noderef.
      So we modified alfresco-remote-api\org\alfresco\repo\web\scripts\solr\NodesMetaDataGet.java (line 198) that helped us to analyse the error.
      It could be interesting to integrate this in future version.

      ==========source correction proposition===========
      catch(Exception e)

      { throw new AlfrescoRuntimeException("Problem converting to Freemarker using node " + nodeMetaData.getNodeRef().toString(), e); }

      ========= log before correction =================
      2012-09-12 13:36:33,252 ERROR [extensions.webscripts.AbstractRuntime] [http-8443-10] Exception from executeScript - redirecting to status template error: 08120002 Wrapped Exception (with status template): 08120358 Problem converting to Freemarker
      org.springframework.extensions.webscripts.WebScriptException: 08120002 Wrapped Exception (with status template): 08120358 Problem converting to Freemarker
      at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:1047)
      at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:171)
      at org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:407)
      at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:388)
      at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:476)
      at
      ...
      ... 25 more
      Caused by: org.alfresco.service.namespace.NamespaceException: A namespace prefix is not registered for uri http://www.alfresco.org/model/website/1.0
      at org.alfresco.service.namespace.QName.toPrefixString(QName.java:414)
      at org.alfresco.repo.web.scripts.solr.SOLRSerializer$SOLRTypeConverter$2.convert(SOLRSerializer.java:231)
      at org.alfresco.repo.web.scripts.solr.SOLRSerializer$SOLRTypeConverter$2.convert(SOLRSerializer.java:228)
      at org.alfresco.service.cmr.repository.datatype.TypeConverter.convert(TypeConverter.java:112)
      at org.alfresco.repo.web.scripts.solr.SOLRSerializer.serializeToJSONString(SOLRSerializer.java:108)
      at org.alfresco.repo.web.scripts.solr.SOLRSerializer.serialize(SOLRSerializer.java:170)
      at org.alfresco.repo.web.scripts.solr.NodesMetaDataGet$FreemarkerNodeMetaData.<init>(NodesMetaDataGet.java:295)
      at org.alfresco.repo.web.scripts.solr.NodesMetaDataGet$1.handleNodeMetaData(NodesMetaDataGet.java:193)
      ... 37 more

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                closedbugs Closed Bugs
                Reporter:
                ecm_jouve ECM Expertise Jouve
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: