AnsweredAssumed Answered

Latest Alfresco + Liferay intergration issues

Question asked by greendevil on Aug 26, 2008
Latest reply on Oct 3, 2010 by hosein
Have beein integrating Liferay 5.1 with Alfresco Labs 3a and had some sucess. At least I get the portlets dispayed in Liferay have been attempting to use SSO, which works fine at the non-portlet level

However it now appears even without CAS/SSO the Alfesco+Liferay portlet integration is now broken. I have users with the same names in both and the intergration with SSO is fine, however most of the alfresco portlets are throwing the following error.

04:09:05,358 WARN  [PortletLocalServiceImpl:155] Portlet not found for 10109 AlfrescoDocumentList
04:09:05,358 ERROR [LayoutTypePortletImpl:320] Portlet Alfresco-DocumentList cannot be added because it is not registered
04:09:05,358 ERROR [LayoutTypePortletImpl:330] java.lang.NullPointerException
04:09:05,358 WARN  [PortletLocalServiceImpl:155] Portlet not found for 10109 AlfrescoDocumentList
04:09:05,514 User:mylesp ERROR [freemarker.runtime]

Error on line 37, column 7 in org/alfresco/portlets/doclist.get.html.ftl
userhome is undefined.
It cannot be assigned to home
The problematic instruction:
———-
==> assignment: home=userhome [on line 37, column 7 in org/alfresco/portlets/doclist.get.html.ftl]
———-

Java backtrace for programmers:
———-
freemarker.core.InvalidReferenceException: Error on line 37, column 7 in org/alfresco/portlets/doclist.get.html.ftl
userhome is undefined.
It cannot be assigned to home
        at freemarker.core.Assignment.accept(Assignment.java:111)
        at freemarker.core.Environment.visit(Environment.java:208)
        at freemarker.core.IfBlock.accept(IfBlock.java:82)
        at freemarker.core.Environment.visit(Environment.java:208)
        at freemarker.core.MixedContent.accept(MixedContent.java:92)
        at freemarker.core.Environment.visit(Environment.java:208)
        at freemarker.core.IfBlock.accept(IfBlock.java:82)
        at freemarker.core.Environment.visit(Environment.java:208)
        at freemarker.core.MixedContent.accept(MixedContent.java:92)
        at freemarker.core.Environment.visit(Environment.java:208)
        at freemarker.core.Environment.process(Environment.java:188)
        at freemarker.template.Template.process(Template.java:237)
        at org.alfresco.repo.template.FreeMarkerProcessor.process(FreeMarkerProcessor.java:201)
        at org.alfresco.web.scripts.AbstractWebScript.renderTemplate(AbstractWebScript.java:360)
        at org.alfresco.web.scripts.DeclarativeWebScript.renderFormatTemplate(DeclarativeWebScript.java:269)
        at org.alfresco.web.scripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:162)
        at org.alfresco.repo.web.scripts.RepositoryContainer$1.execute(RepositoryContainer.java:312)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:242)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:172)
        at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:323)
        at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:267)
        at org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:240)
        at org.alfresco.web.scripts.portlet.WebScriptPortlet$PortletRuntime.executeScript(WebScriptPortlet.java:311)
        at org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:139)
        at org.alfresco.web.scripts.portlet.WebScriptPortlet.doView(WebScriptPortlet.java:210)
        at org.alfresco.web.scripts.portlet.WebScriptPortlet.render(WebScriptPortlet.java:127)
        at com.sun.portal.portletcontainer.appengine.filter.FilterChainImpl.doFilter(FilterChainImpl.java:121)
        at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:69)
        at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:96)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)
        at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:584)
        at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:497)
        at com.liferay.portlet.InvokerPortlet.invoke(InvokerPortlet.java:534)
        at com.liferay.portlet.InvokerPortlet.invokeRender(InvokerPortlet.java:605)
        at com.liferay.portlet.InvokerPortlet.render(InvokerPortlet.java:373)
        at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:1376)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
….
        at java.lang.Thread.run(Thread.java:619)

Outcomes