Jahia in English > Jahia 6.5.1.0 -...

1 (1 Good)
0 (0 Bad)

Jahia 6.5.1.0 - functions:memberOf('site-administrators') it throw a NullPointerException

by  cachavez »  2012/03/18 22:57

Hello everyone, as the title says, functions:memberOf('site-administrators'),

I'm trying to make something like:

 

<c:if test="${functions:memberOf('site-administrators')}">

    ....

   .....

there is a big thread some of the output is:

 

2012-03-18 16:54:27,171: WARN  [TemplateScriptFilter] - Error including the content of the template 'Path dispatch : /modules/templates-org-unfpa-lac-mee/jnt_page/html/page.project.jsp'. Cause: Problems calling function 'functions:memberOf'
javax.el.ELException: Problems calling function 'functions:memberOf'
        at org.apache.el.parser.AstFunction.getValue(AstFunction.java:115)
        at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
        at org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:938)
        at org.apache.jsp.modules.templates_002dorg_002dunfpa_002dlac_002dmee.jnt_005fpage.html.page_project_jsp._jspService(page_project_jsp.java:117)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

 

another one:

 

Caused by: java.lang.NullPointerException
        at org.jahia.taglibs.functions.Functions.memberOf(Functions.java:99)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.el.parser.AstFunction.getValue(AstFunction.java:110)
 

--

Cheers.

Carlos Chávez.

Quoin Inc.

 

  • Jahia 6.5.1.0 - functions:memberOf('site-administrators') it throw a NullPointerException
    2012/04/03 09:16

    cachavez <p> Hello everyone, as the title says, functions:memberOf(&#39;site-administrators&#39;),</p> <p> I&#39;m trying to make something like:</p> <p> &nbsp;</p> <p> &lt;c:if test=&quot;${functions:memberOf(&#39;site-administrators&#39;)}&quot;&gt;</p> <p> &nbsp;&nbsp;&nbsp; ....</p> <p> &nbsp;&nbsp; .....</p> <p> there is a big thread some of the output is:</p> <p> &nbsp;</p> <p> 2012-03-18 16:54:27,171: WARN&nbsp; [TemplateScriptFilter] - Error including the content of the template &#39;Path dispatch : /modules/templates-org-unfpa-lac-mee/jnt_page/html/page.project.jsp&#39;. Cause: Problems calling function &#39;functions:memberOf&#39;<br /> javax.el.ELException: Problems calling function &#39;functions:memberOf&#39;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.el.parser.AstFunction.getValue(AstFunction.java:115)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:938)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jsp.modules.templates_002dorg_002dunfpa_002dlac_002dmee.jnt_005fpage.html.page_project_jsp._jspService(page_project_jsp.java:117)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)</p> <p> &nbsp;</p> <p> another one:</p> <p> &nbsp;</p> <p> Caused by: java.lang.NullPointerException<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.jahia.taglibs.functions.Functions.memberOf(Functions.java:99)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.lang.reflect.Method.invoke(Method.java:597)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.el.parser.AstFunction.getValue(AstFunction.java:110)<br /> &nbsp;</p> <p> --</p> <p> Cheers.</p> <p> Carlos Ch&aacute;vez.</p> <p> Quoin Inc.</p> <p> &nbsp;</p>

  • Number of messages  32
    Registration date Mar 18, 2012
    0 (0 Good)
    0 (0 Bad)

    Re: Jahia 6.5.1.0 - functions:memberOf('site-administrators') it throw a NullPointerException

    by  pap@commaro.com »  2012/04/27 12:37

    Hello Carlos,

    unfortunately these functions are not used in our codebase, so we did not yet realize that they no longer work as they rely on some context objects in the thread, which are no longer available in Jahia 6.5 (they are only here, when you visit the admin center).

    I opened a JIRA for that: http://jira.jahia.org/browse/QA-3589 and already commited a solution into SVN.

    Regards,
    Benjamin

     

    Benjamin Papez (pap@commaro.com)

    Number of messages  220
    Registration date
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page